HTM SpatialIndex Class Reference

class SpatialDomain

A spatial domain is a list of spatial convexes

Public Fields

const SpatialIndex* index
static uint64 topBit_
The vector of convexes

Public Methods

SpatialDomain (const SpatialIndex * idx = 0)
Constructor
~SpatialDomain ()
Destructor
void setIndex (const SpatialIndex *)
Set index pointer
void add (SpatialConvex &)
Add a convex
void simplify ()
Simplify the Domain, remove redundancies
bool intersect (const SpatialIndex * idx, BitList & partial, BitList & full)
Intersect with index
bool intersect (const SpatialIndex * idx, ValVec & partial, ValVec & full)
Same intersection, but return vectors of ids instead of bitlists.
bool intersect (const SpatialIndex * idx, ValVec & idlist)
Same intersection, but return just a list of IDs not level depth
size_t numConvexes ()
numConvexes: give back the number of convexes
SpatialConvex& operator [] (size_t i)
[] operator: give back convex
void read (istream&)
read from stream
void write (ostream&) const
write to stream
static void ignoreCrLf (istream &)
A pointer to the index

Protected Fields

ValVec <SpatialConvex> convexes_

Documentation

A spatial domain is a list of spatial convexes. So we can have really disjoint pieces of the sky defined by a domain.
SpatialDomain(const SpatialIndex * idx = 0)
Constructor

~SpatialDomain()
Destructor

void setIndex(const SpatialIndex *)
Set index pointer

void add(SpatialConvex &)
Add a convex

void simplify()
Simplify the Domain, remove redundancies

bool intersect(const SpatialIndex * idx, BitList & partial, BitList & full)
Intersect with index. Return the bitlist of the leafnodes that are partially and fully intersected by this domain.

bool intersect(const SpatialIndex * idx, ValVec & partial, ValVec & full)
Same intersection, but return vectors of ids instead of bitlists.

bool intersect(const SpatialIndex * idx, ValVec & idlist)
Same intersection, but return just a list of IDs not level depth

size_t numConvexes()
numConvexes: give back the number of convexes

SpatialConvex& operator [](size_t i)
[] operator: give back convex

void read(istream&)
read from stream

void write(ostream&) const
write to stream

const SpatialIndex* index

static void ignoreCrLf(istream &)
A pointer to the index

ValVec <SpatialConvex> convexes_

static uint64 topBit_
The vector of convexes


This class has no child classes.

alphabetic index hierarchy of classes


© Copyright The Johns Hopkins University 1999, All Rights Reserved.
Peter Z. Kunszt,

generated by doc++