#include <vtkLabelHierarchyIterator.h>
Abstract superclass for iterators over vtkLabelHierarchy.
Definition at line 38 of file vtkLabelHierarchyIterator.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Begin (vtkIdTypeArray *) |
virtual void | Next () |
virtual bool | IsAtEnd () |
virtual void | GetPoint (double x[3]) |
virtual void | GetSize (double sz[2]) |
virtual void | GetBoundedSize (double sz[2]) |
virtual int | GetType () |
virtual vtkStdString | GetLabel () |
virtual vtkUnicodeString | GetUnicodeLabel () |
virtual double | GetOrientation () |
virtual vtkIdType | GetLabelId () |
virtual void | SetTraversedBounds (vtkPolyData *) |
virtual void | GetNodeGeometry (double ctr[3], double &size)=0 |
virtual void | BoxNode () |
virtual void | BoxAllNodes (vtkPolyData *) |
virtual vtkLabelHierarchy * | GetHierarchy () |
virtual void | SetAllBounds (int) |
virtual int | GetAllBounds () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkLabelHierarchyIterator * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkLabelHierarchyIterator () | |
virtual | ~vtkLabelHierarchyIterator () |
void | BoxNodeInternal3 (const double *ctr, double sz) |
void | BoxNodeInternal2 (const double *ctr, double sz) |
virtual void | SetHierarchy (vtkLabelHierarchy *h) |
Protected Attributes | |
vtkLabelHierarchy * | Hierarchy |
vtkPolyData * | TraversedBounds |
double | BoundsFactor |
int | AllBounds |
int | AllBoundsRecorded |
Reimplemented from vtkObject.
Reimplemented in vtkLabelHierarchyCompositeIterator.
Definition at line 41 of file vtkLabelHierarchyIterator.h.
vtkLabelHierarchyIterator::vtkLabelHierarchyIterator | ( | ) | [protected] |
virtual vtkLabelHierarchyIterator::~vtkLabelHierarchyIterator | ( | ) | [protected, virtual] |
virtual const char* vtkLabelHierarchyIterator::GetClassName | ( | ) | [virtual] |
static int vtkLabelHierarchyIterator::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type 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.
Reimplemented in vtkLabelHierarchyCompositeIterator.
virtual int vtkLabelHierarchyIterator::IsA | ( | const char * | name | ) | [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.
Reimplemented in vtkLabelHierarchyCompositeIterator.
static vtkLabelHierarchyIterator* vtkLabelHierarchyIterator::SafeDownCast | ( | vtkObject * | o | ) | [static] |
virtual void vtkLabelHierarchyIterator::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkObject.
Reimplemented in vtkLabelHierarchyCompositeIterator.
virtual void vtkLabelHierarchyIterator::Begin | ( | vtkIdTypeArray * | ) | [inline, virtual] |
Initializes the iterator. lastLabels is an array holding labels which should be traversed before any other labels in the hierarchy. This could include labels placed during a previous rendering or a label located under the mouse pointer. You may pass a null pointer.
Reimplemented in vtkLabelHierarchyCompositeIterator.
Definition at line 48 of file vtkLabelHierarchyIterator.h.
virtual void vtkLabelHierarchyIterator::Next | ( | ) | [inline, virtual] |
Advance the iterator.
Reimplemented in vtkLabelHierarchyCompositeIterator.
Definition at line 51 of file vtkLabelHierarchyIterator.h.
virtual bool vtkLabelHierarchyIterator::IsAtEnd | ( | ) | [inline, virtual] |
Returns true if the iterator is at the end.
Reimplemented in vtkLabelHierarchyCompositeIterator.
Definition at line 54 of file vtkLabelHierarchyIterator.h.
virtual void vtkLabelHierarchyIterator::GetPoint | ( | double | x[3] | ) | [virtual] |
Retrieves the current label location.
virtual void vtkLabelHierarchyIterator::GetSize | ( | double | sz[2] | ) | [virtual] |
Retrieves the current label size.
virtual void vtkLabelHierarchyIterator::GetBoundedSize | ( | double | sz[2] | ) | [virtual] |
Retrieves the current label maximum width in world coordinates.
virtual int vtkLabelHierarchyIterator::GetType | ( | ) | [virtual] |
Retrieves the current label type.
virtual vtkStdString vtkLabelHierarchyIterator::GetLabel | ( | ) | [virtual] |
Retrieves the current label string.
virtual vtkUnicodeString vtkLabelHierarchyIterator::GetUnicodeLabel | ( | ) | [virtual] |
Retrieves the current label as a unicode string.
virtual double vtkLabelHierarchyIterator::GetOrientation | ( | ) | [virtual] |
Retrieves the current label orientation.
virtual vtkIdType vtkLabelHierarchyIterator::GetLabelId | ( | ) | [inline, virtual] |
Retrieves the current label id.
Reimplemented in vtkLabelHierarchyCompositeIterator.
Definition at line 78 of file vtkLabelHierarchyIterator.h.
virtual vtkLabelHierarchy* vtkLabelHierarchyIterator::GetHierarchy | ( | ) | [virtual] |
Get the label hierarchy associated with the current label.
Reimplemented in vtkLabelHierarchyCompositeIterator.
virtual void vtkLabelHierarchyIterator::SetTraversedBounds | ( | vtkPolyData * | ) | [virtual] |
Sets a polydata to fill with geometry representing the bounding boxes of the traversed octree nodes.
virtual void vtkLabelHierarchyIterator::GetNodeGeometry | ( | double | ctr[3], | |
double & | size | |||
) | [pure virtual] |
Retrieve the coordinates of the center of the current hierarchy node and the size of the node. Nodes are n-cubes, so the size is the length of any edge of the cube. This is used by BoxNode().
Implemented in vtkLabelHierarchyCompositeIterator.
virtual void vtkLabelHierarchyIterator::BoxNode | ( | ) | [virtual] |
Add a representation to TraversedBounds for the current octree node. This should be called by subclasses inside Next(). Does nothing if TraversedBounds is NULL.
Reimplemented in vtkLabelHierarchyCompositeIterator.
virtual void vtkLabelHierarchyIterator::BoxAllNodes | ( | vtkPolyData * | ) | [virtual] |
Add a representation for all existing octree nodes to the specified polydata. This is equivalent to setting TraversedBounds, iterating over the entire hierarchy, and then resetting TraversedBounds to its original value.
Reimplemented in vtkLabelHierarchyCompositeIterator.
virtual void vtkLabelHierarchyIterator::SetAllBounds | ( | int | ) | [virtual] |
Set/get whether all nodes in the hierarchy should be added to the TraversedBounds polydata or only those traversed. When non-zero, all nodes will be added. By default, AllBounds is 0.
virtual int vtkLabelHierarchyIterator::GetAllBounds | ( | ) | [virtual] |
Set/get whether all nodes in the hierarchy should be added to the TraversedBounds polydata or only those traversed. When non-zero, all nodes will be added. By default, AllBounds is 0.
void vtkLabelHierarchyIterator::BoxNodeInternal3 | ( | const double * | ctr, | |
double | sz | |||
) | [protected] |
void vtkLabelHierarchyIterator::BoxNodeInternal2 | ( | const double * | ctr, | |
double | sz | |||
) | [protected] |
virtual void vtkLabelHierarchyIterator::SetHierarchy | ( | vtkLabelHierarchy * | h | ) | [protected, virtual] |
The hierarchy being traversed by this iterator.
vtkLabelHierarchy* vtkLabelHierarchyIterator::Hierarchy [protected] |
Definition at line 123 of file vtkLabelHierarchyIterator.h.
vtkPolyData* vtkLabelHierarchyIterator::TraversedBounds [protected] |
Definition at line 124 of file vtkLabelHierarchyIterator.h.
double vtkLabelHierarchyIterator::BoundsFactor [protected] |
Definition at line 125 of file vtkLabelHierarchyIterator.h.
int vtkLabelHierarchyIterator::AllBounds [protected] |
Definition at line 126 of file vtkLabelHierarchyIterator.h.
int vtkLabelHierarchyIterator::AllBoundsRecorded [protected] |
Definition at line 127 of file vtkLabelHierarchyIterator.h.