VTK
|
Octree node that has 8 children each of equal size. More...
#include <vtkOctreePointLocatorNode.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOctreePointLocatorNode * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | CreateChildNodes () |
void | DeleteChildNodes () |
vtkOctreePointLocatorNode * | GetChild (int i) |
int | IntersectsRegion (vtkPlanesIntersection *pi, int useDataBounds) |
int | ContainsPoint (double x, double y, double z, int useDataBounds) |
int | GetSubOctantIndex (double *point, int CheckContainment) |
void | SetNumberOfPoints (int numberOfPoints) |
virtual int | GetNumberOfPoints () |
void | SetBounds (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax) |
void | SetBounds (const double b[6]) |
void | GetBounds (double *b) const |
void | SetDataBounds (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax) |
void | GetDataBounds (double *b) const |
virtual double * | GetMinBounds () |
virtual double * | GetMaxBounds () |
void | SetMinBounds (double minBounds[3]) |
void | SetMaxBounds (double maxBounds[3]) |
virtual double * | GetMinDataBounds () |
virtual double * | GetMaxDataBounds () |
void | SetMinDataBounds (double minDataBounds[3]) |
void | SetMaxDataBounds (double maxDataBounds[3]) |
virtual int | GetID () |
virtual int | GetMinID () |
double | GetDistance2ToBoundary (double x, double y, double z, vtkOctreePointLocatorNode *top, int useDataBounds) |
double | GetDistance2ToBoundary (double x, double y, double z, double *boundaryPt, vtkOctreePointLocatorNode *top, int useDataBounds) |
double | GetDistance2ToInnerBoundary (double x, double y, double z, vtkOctreePointLocatorNode *top) |
void | ComputeOctreeNodeInformation (vtkOctreePointLocatorNode *Parent, int &NextLeafId, int &NextMinId, float *coordinates) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkOctreePointLocatorNode * | SafeDownCast (vtkObjectBase *o) |
static vtkOctreePointLocatorNode * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkOctreePointLocatorNode () | |
~vtkOctreePointLocatorNode () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Additional Inherited Members | |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Octree node that has 8 children each of equal size.
This class represents a single spatial region in a 3D axis octant partitioning. It is intended to work efficiently with the vtkOctreePointLocator and is not meant for general use. It is assumed the region bounds some set of points. The ordering of the children is (-x,-y,-z),(+x,-y,-z),(-x,+y,-z),(+x,+y,-z),(-x,-y,+z),(+x,-y,+z), (-x,+y,+z),(+x,+y,+z). The portion of the domain assigned to an octant is Min < x <= Max.
Definition at line 45 of file vtkOctreePointLocatorNode.h.
Definition at line 48 of file vtkOctreePointLocatorNode.h.
|
protected |
|
protected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkOctreePointLocatorNode* vtkOctreePointLocatorNode::NewInstance | ( | ) | const |
|
virtual |
|
static |
|
inline |
Set/Get the number of points contained in this region.
Definition at line 55 of file vtkOctreePointLocatorNode.h.
|
virtual |
Set/Get the number of points contained in this region.
void vtkOctreePointLocatorNode::SetBounds | ( | double | xMin, |
double | xMax, | ||
double | yMin, | ||
double | yMax, | ||
double | zMin, | ||
double | zMax | ||
) |
Set/Get the bounds of the spatial region represented by this node. Caller allocates storage for 6-vector in GetBounds.
|
inline |
Set/Get the bounds of the spatial region represented by this node. Caller allocates storage for 6-vector in GetBounds.
Definition at line 67 of file vtkOctreePointLocatorNode.h.
void vtkOctreePointLocatorNode::GetBounds | ( | double * | b | ) | const |
Set/Get the bounds of the spatial region represented by this node. Caller allocates storage for 6-vector in GetBounds.
void vtkOctreePointLocatorNode::SetDataBounds | ( | double | xMin, |
double | xMax, | ||
double | yMin, | ||
double | yMax, | ||
double | zMin, | ||
double | zMax | ||
) |
Set/Get the bounds of the points contained in this spatial region. This may be smaller than the bounds of the region itself. Caller allocates storage for 6-vector in GetDataBounds.
void vtkOctreePointLocatorNode::GetDataBounds | ( | double * | b | ) | const |
Set/Get the bounds of the points contained in this spatial region. This may be smaller than the bounds of the region itself. Caller allocates storage for 6-vector in GetDataBounds.
|
virtual |
Get a pointer to the 3 bound minima (xmin, ymin and zmin) or the 3 bound maxima (xmax, ymax, zmax). Don't free this pointer.
|
virtual |
Get a pointer to the 3 bound minima (xmin, ymin and zmin) or the 3 bound maxima (xmax, ymax, zmax). Don't free this pointer.
|
inline |
Set the xmin, ymin and zmin value of the bounds of this region
Definition at line 94 of file vtkOctreePointLocatorNode.h.
|
inline |
Set the xmax, ymax and zmax value of the bounds of this region
Definition at line 104 of file vtkOctreePointLocatorNode.h.
|
virtual |
Get a pointer to the 3 data bound minima (xmin, ymin and zmin) or the 3 data bound maxima (xmax, ymax, zmax). Don't free this pointer.
|
virtual |
Get a pointer to the 3 data bound minima (xmin, ymin and zmin) or the 3 data bound maxima (xmax, ymax, zmax). Don't free this pointer.
|
inline |
Set the xmin, ymin and zmin value of the bounds of this data within this region.
Definition at line 124 of file vtkOctreePointLocatorNode.h.
|
inline |
Set the xmax, ymax and zmax value of the bounds of this data within this region.
Definition at line 135 of file vtkOctreePointLocatorNode.h.
|
virtual |
Get the ID associated with the region described by this node. If this is not a leaf node, this value should be -1.
|
virtual |
If this node is not a leaf node, there are leaf nodes below it whose regions represent a partitioning of this region. The IDs of these leaf nodes form a contigous set. Get the first of the first point's ID that is contained in this node.
void vtkOctreePointLocatorNode::CreateChildNodes | ( | ) |
Add the 8 children.
void vtkOctreePointLocatorNode::DeleteChildNodes | ( | ) |
Delete the 8 children.
vtkOctreePointLocatorNode* vtkOctreePointLocatorNode::GetChild | ( | int | i | ) |
Get a pointer to the ith child of this node.
int vtkOctreePointLocatorNode::IntersectsRegion | ( | vtkPlanesIntersection * | pi, |
int | useDataBounds | ||
) |
A vtkPlanesIntersection object represents a convex 3D region bounded by planes, and it is capable of computing intersections of boxes with itself. Return 1 if this spatial region intersects the spatial region described by the vtkPlanesIntersection object. Use the possibly smaller bounds of the points within the region if useDataBounds is non-zero.
Return 1 if this spatial region entirely contains the given point. Use the possibly smaller bounds of the points within the region if useDataBounds is non-zero.
double vtkOctreePointLocatorNode::GetDistance2ToBoundary | ( | double | x, |
double | y, | ||
double | z, | ||
vtkOctreePointLocatorNode * | top, | ||
int | useDataBounds | ||
) |
Calculate the distance squared from any point to the boundary of this region. Use the boundary of the points within the region if useDataBounds is non-zero.
double vtkOctreePointLocatorNode::GetDistance2ToBoundary | ( | double | x, |
double | y, | ||
double | z, | ||
double * | boundaryPt, | ||
vtkOctreePointLocatorNode * | top, | ||
int | useDataBounds | ||
) |
Calculate the distance squared from any point to the boundary of this region. Use the boundary of the points within the region if useDataBounds is non-zero. Set boundaryPt to the point on the boundary.
double vtkOctreePointLocatorNode::GetDistance2ToInnerBoundary | ( | double | x, |
double | y, | ||
double | z, | ||
vtkOctreePointLocatorNode * | top | ||
) |
Calculate the distance from the specified point (which is required to be inside this spatial region) to an interior boundary. An interior boundary is one that is not also an boundary of the entire space partitioned by the tree of vtkOctreePointLocatorNode's.
Return the id of the suboctant that a given point is in. If CheckContainment is non-zero then it checks whether the point is in the actual bounding box of the suboctant, otherwise it only checks which octant the point is in that is created from the axis-aligned partitioning of the domain at this octant's center.
void vtkOctreePointLocatorNode::ComputeOctreeNodeInformation | ( | vtkOctreePointLocatorNode * | Parent, |
int & | NextLeafId, | ||
int & | NextMinId, | ||
float * | coordinates | ||
) |
Recursive function to compute ID, MinVal, MaxVal, and MinID. Parent is used for MinVal and MaxVal in the case that no points are in the leaf node.