VTK
|
abstract class to quickly locate points in 3-space More...
#include <vtkAbstractPointLocator.h>
Public Member Functions | |
virtual vtkIdType | FindClosestPoint (const double x[3])=0 |
vtkIdType | FindClosestPoint (double x, double y, double z) |
virtual vtkIdType | FindClosestPointWithinRadius (double radius, const double x[3], double &dist2)=0 |
virtual void | FindClosestNPoints (int N, const double x[3], vtkIdList *result)=0 |
void | FindClosestNPoints (int N, double x, double y, double z, vtkIdList *result) |
virtual void | FindPointsWithinRadius (double R, const double x[3], vtkIdList *result)=0 |
void | FindPointsWithinRadius (double R, double x, double y, double z, vtkIdList *result) |
virtual double * | GetBounds () |
virtual void | GetBounds (double *) |
virtual vtkIdType | GetNumberOfBuckets () |
virtual void | FreeSearchStructure ()=0 |
virtual void | BuildLocator ()=0 |
virtual void | GenerateRepresentation (int level, vtkPolyData *pd)=0 |
![]() | |
virtual void | Update () |
virtual void | Initialize () |
virtual void | SetDataSet (vtkDataSet *) |
virtual vtkDataSet * | GetDataSet () |
virtual void | SetMaxLevel (int) |
virtual int | GetMaxLevel () |
virtual int | GetLevel () |
virtual void | SetAutomatic (int) |
virtual int | GetAutomatic () |
virtual void | AutomaticOn () |
virtual void | AutomaticOff () |
virtual void | SetTolerance (double) |
virtual double | GetTolerance () |
virtual unsigned long | GetBuildTime () |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
vtkLocator * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
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) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Protected Member Functions | |
vtkAbstractPointLocator () | |
virtual | ~vtkAbstractPointLocator () |
![]() | |
vtkLocator () | |
~vtkLocator () | |
virtual void | ReportReferences (vtkGarbageCollector *) |
![]() | |
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 &) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
double | Bounds [6] |
vtkIdType | NumberOfBuckets |
![]() | |
vtkDataSet * | DataSet |
int | Automatic |
double | Tolerance |
int | MaxLevel |
int | Level |
vtkTimeStamp | BuildTime |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
typedef vtkLocator | Superclass |
static int | IsTypeOf (const char *type) |
static vtkAbstractPointLocator * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkAbstractPointLocator * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkLocator * | SafeDownCast (vtkObjectBase *o) |
![]() | |
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 () |
abstract class to quickly locate points in 3-space
vtkAbstractPointLocator is an abstract spatial search object to quickly locate points in 3D. vtkAbstractPointLocator works by dividing a specified region of space into "rectangular" buckets, and then keeping a list of points that lie in each bucket. Typical operation involves giving a position in 3D and finding the closest point. The points are provided from the specified dataset input.
Definition at line 40 of file vtkAbstractPointLocator.h.
Standard type and print methods.
Definition at line 45 of file vtkAbstractPointLocator.h.
|
protected |
|
protectedvirtual |
|
static |
Standard type and print methods.
|
virtual |
Standard type and print methods.
Reimplemented from vtkLocator.
Reimplemented in vtkStaticPointLocator, vtkIncrementalOctreePointLocator, vtkPointLocator, vtkIncrementalPointLocator, vtkOctreePointLocator, vtkNonMergingPointLocator, vtkSMPMergePoints, vtkKdTreePointLocator, and vtkMergePoints.
|
static |
Standard type and print methods.
|
protectedvirtual |
Standard type and print methods.
Reimplemented from vtkLocator.
Reimplemented in vtkStaticPointLocator, vtkIncrementalOctreePointLocator, vtkPointLocator, vtkIncrementalPointLocator, vtkOctreePointLocator, vtkNonMergingPointLocator, vtkSMPMergePoints, vtkKdTreePointLocator, and vtkMergePoints.
vtkAbstractPointLocator* vtkAbstractPointLocator::NewInstance | ( | ) | const |
Standard type and print methods.
|
virtual |
Standard type and print methods.
Reimplemented from vtkObject.
Reimplemented in vtkStaticPointLocator, vtkIncrementalOctreePointLocator, vtkPointLocator, vtkIncrementalPointLocator, vtkOctreePointLocator, vtkNonMergingPointLocator, vtkSMPMergePoints, vtkKdTreePointLocator, and vtkMergePoints.
Given a position x, return the id of the point closest to it. Alternative method requires separate x-y-z values. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
Implemented in vtkIncrementalOctreePointLocator, vtkOctreePointLocator, vtkStaticPointLocator, vtkPointLocator, and vtkKdTreePointLocator.
Given a position x, return the id of the point closest to it. Alternative method requires separate x-y-z values. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
|
pure virtual |
Given a position x and a radius r, return the id of the point closest to the point in that radius. dist2 returns the squared distance to the point.
Implemented in vtkIncrementalOctreePointLocator, vtkOctreePointLocator, vtkStaticPointLocator, vtkPointLocator, and vtkKdTreePointLocator.
|
pure virtual |
Find the closest N points to a position. This returns the closest N points to a position. A faster method could be created that returned N close points to a position, but necessarily the exact N closest. The returned points are sorted from closest to farthest. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
Implemented in vtkIncrementalOctreePointLocator, vtkPointLocator, vtkOctreePointLocator, vtkStaticPointLocator, and vtkKdTreePointLocator.
void vtkAbstractPointLocator::FindClosestNPoints | ( | int | N, |
double | x, | ||
double | y, | ||
double | z, | ||
vtkIdList * | result | ||
) |
Find the closest N points to a position. This returns the closest N points to a position. A faster method could be created that returned N close points to a position, but necessarily the exact N closest. The returned points are sorted from closest to farthest. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
|
pure virtual |
Find all points within a specified radius R of position x. The result is not sorted in any specific manner. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
Implemented in vtkIncrementalOctreePointLocator, vtkPointLocator, vtkOctreePointLocator, vtkStaticPointLocator, and vtkKdTreePointLocator.
void vtkAbstractPointLocator::FindPointsWithinRadius | ( | double | R, |
double | x, | ||
double | y, | ||
double | z, | ||
vtkIdList * | result | ||
) |
Find all points within a specified radius R of position x. The result is not sorted in any specific manner. These methods are thread safe if BuildLocator() is directly or indirectly called from a single thread first.
|
inlinevirtual |
Provide an accessor to the bounds.
Reimplemented in vtkIncrementalOctreePointLocator, and vtkOctreePointLocator.
Definition at line 92 of file vtkAbstractPointLocator.h.
|
virtual |
Provide an accessor to the bounds.
Reimplemented in vtkIncrementalOctreePointLocator, and vtkOctreePointLocator.
|
virtual |
Return the total number of buckets in the locator. This has meaning only after the locator is constructed.
Reimplemented in vtkSMPMergePoints.
|
pure virtual |
See vtkLocator interface documentation. These methods are not thread safe.
Implements vtkLocator.
Implemented in vtkPointLocator, vtkOctreePointLocator, vtkStaticPointLocator, vtkIncrementalOctreePointLocator, and vtkKdTreePointLocator.
|
pure virtual |
See vtkLocator interface documentation. These methods are not thread safe.
Implements vtkLocator.
Implemented in vtkPointLocator, vtkStaticPointLocator, vtkIncrementalOctreePointLocator, vtkOctreePointLocator, and vtkKdTreePointLocator.
|
pure virtual |
See vtkLocator interface documentation. These methods are not thread safe.
Implements vtkLocator.
Implemented in vtkPointLocator, vtkOctreePointLocator, vtkStaticPointLocator, vtkIncrementalOctreePointLocator, and vtkKdTreePointLocator.
|
protected |
Definition at line 114 of file vtkAbstractPointLocator.h.
|
protected |
Definition at line 115 of file vtkAbstractPointLocator.h.