SpatialDomain.h



Classes

SpatialDomain -- Spatial Domain class (full description)

class SpatialDomain

Interface

Public Members
SpatialDomain(const SpatialIndex * idx = 0)
~SpatialDomain()
void setIndex(const SpatialIndex *)
void add(SpatialConvex &)
void simplify()
bool intersect(const SpatialIndex * idx, BitList & partial, BitList & full)
bool intersect(const SpatialIndex * idx, ValVec<uint32> & partial, ValVec<uint32> & full)
void showVertexMarkup(ostream&) const
size_t numConvexes()
SpatialConvex & operator [](size_t i)
void read(istream&)
void write(ostream&) const
char * toPredicateString(char * =0)

Description

Member Description

SpatialDomain(const SpatialIndex * idx = 0)

Constructor

~SpatialDomain()

Destructor

void setIndex(const SpatialIndex *)

Set index pointer and initialize markup if not done with constructor

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<uint32> & partial, ValVec<uint32> & full)

Same intersection, but return vectors of ids instead of bitlists.

void showVertexMarkup(ostream&) const

write out vertex markup to a stream

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

char * toPredicateString(char * =0)

convert the domain to a predicate string (needed by the Science Archive) a prefix string may be given (dereference names)
© Copyright The Johns Hopkins University 1999, All Rights Reserved.
Peter Z. Kunszt,