VTK
|
organize data according to scalar values (used to accelerate contouring operations) More...
#include <vtkSimpleScalarTree.h>
Public Member Functions | |
virtual void | BuildTree () |
virtual void | Initialize () |
virtual void | InitTraversal (double scalarValue) |
virtual void | SetBranchingFactor (int) |
virtual int | GetBranchingFactor () |
virtual int | GetLevel () |
virtual void | SetMaxLevel (int) |
virtual int | GetMaxLevel () |
virtual vtkCell * | GetNextCell (vtkIdType &cellId, vtkIdList *&ptIds, vtkDataArray *cellScalars) |
![]() | |
vtkScalarTree * | NewInstance () const |
virtual void | SetDataSet (vtkDataSet *) |
virtual vtkDataSet * | GetDataSet () |
![]() | |
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 vtkSimpleScalarTree * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkScalarTree * | 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 () |
Protected Member Functions | |
vtkSimpleScalarTree () | |
~vtkSimpleScalarTree () | |
![]() | |
vtkScalarTree () | |
~vtkScalarTree () | |
![]() | |
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 &) |
Protected Attributes | |
vtkDataArray * | Scalars |
int | MaxLevel |
int | Level |
int | BranchingFactor |
vtkScalarNode * | Tree |
int | TreeSize |
vtkIdType | LeafOffset |
vtkIdType | TreeIndex |
![]() | |
vtkDataSet * | DataSet |
vtkDataArray * | Scalars |
vtkTimeStamp | BuildTime |
double | ScalarValue |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
typedef vtkScalarTree | Superclass |
static int | IsTypeOf (const char *type) |
static vtkSimpleScalarTree * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkSimpleScalarTree * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
organize data according to scalar values (used to accelerate contouring operations)
vtkSimpleScalarTree creates a pointerless binary tree that helps search for cells that lie within a particular scalar range. This object is used to accelerate some contouring (and other scalar-based techniques).
The tree consists of an array of (min,max) scalar range pairs per node in the tree. The (min,max) range is determined from looking at the range of the children of the tree node. If the node is a leaf, then the range is determined by scanning the range of scalar data in n cells in the dataset. The n cells are determined by arbitrary selecting cell ids from id(i) to id(i+n), and where n is specified using the BranchingFactor ivar. Note that leaf node i=0 contains the scalar range computed from cell ids (0,n-1); leaf node i=1 contains the range from cell ids (n,2n-1); and so on. The implication is that there are no direct lists of cell ids per leaf node, instead the cell ids are implicitly known.
Definition at line 44 of file vtkSimpleScalarTree.h.
Standard type related macros and PrintSelf() method.
Definition at line 53 of file vtkSimpleScalarTree.h.
|
protected |
|
protected |
|
static |
Instantiate scalar tree with maximum level of 20 and branching factor of 5.
|
static |
Standard type related macros and PrintSelf() method.
|
virtual |
Standard type related macros and PrintSelf() method.
Reimplemented from vtkScalarTree.
|
static |
Standard type related macros and PrintSelf() method.
|
protectedvirtual |
Standard type related macros and PrintSelf() method.
Reimplemented from vtkScalarTree.
vtkSimpleScalarTree* vtkSimpleScalarTree::NewInstance | ( | ) | const |
Standard type related macros and PrintSelf() method.
|
virtual |
Standard type related macros and PrintSelf() method.
Reimplemented from vtkScalarTree.
|
virtual |
Set the branching factor for the tree. This is the number of children per tree node. Smaller values (minimum is 2) mean deeper trees and more memory overhead. Larger values mean shallower trees, less memory usage, but worse performance.
|
virtual |
Set the branching factor for the tree. This is the number of children per tree node. Smaller values (minimum is 2) mean deeper trees and more memory overhead. Larger values mean shallower trees, less memory usage, but worse performance.
|
virtual |
Get the level of the scalar tree. This value may change each time the scalar tree is built and the branching factor changes.
|
virtual |
Set the maximum allowable level for the tree.
|
virtual |
Set the maximum allowable level for the tree.
|
virtual |
Construct the scalar tree from the dataset provided. Checks build times and modified time from input and reconstructs the tree if necessary.
Implements vtkScalarTree.
|
virtual |
Initialize locator. Frees memory and resets object as appropriate.
Implements vtkScalarTree.
|
virtual |
Begin to traverse the cells based on a scalar value. Returned cells will have scalar values that span the scalar value specified.
Implements vtkScalarTree.
|
virtual |
Return the next cell that may contain scalar value specified to initialize traversal. The value NULL is returned if the list is exhausted. Make sure that InitTraversal() has been invoked first or you'll get erratic behavior.
Implements vtkScalarTree.
|
protected |
Definition at line 103 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 104 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 105 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 106 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 107 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 108 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 109 of file vtkSimpleScalarTree.h.
|
protected |
Definition at line 110 of file vtkSimpleScalarTree.h.