Go to the documentation of this file.
64 #ifndef vtkLabelHierarchy_h
65 #define vtkLabelHierarchy_h
67 #include "vtkRenderingLabelModule.h"
103 vtkSetMacro(TargetLabelCount,
int);
104 vtkGetMacro(TargetLabelCount,
int);
111 vtkSetMacro(MaximumDepth,
int);
112 vtkGetMacro(MaximumDepth,
int);
193 int type,
vtkRenderer* ren,
vtkCamera* cam,
double frustumPlanes[24],
bool positionsAsNormals,
float bucketSize[2] );
272 friend class vtkLabelHierarchyFrustumIterator;
273 friend class vtkLabelHierarchyFullSortIterator;
274 friend class implementation;
281 #endif // vtkLabelHierarchy_h
represent and manipulate 3D points
vtkIdType FindCell(double *, vtkCell *, vtkGenericCell *, vtkIdType, double, int &, double *, double *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAbstractArray * Labels
virtual void ComputeHierarchy()
Fill the hierarchy with the input labels.
contains an octree of labels
void SetPoints(vtkPoints *) override
Override SetPoints so we can reset the hierarchy when the points change.
virtual void SetBoundedSizes(vtkDataArray *arr)
Set/get the array specifying the maximum width and height in world coordinates of each label.
virtual void SetSizes(vtkDataArray *arr)
Set/get the array specifying the size of each label.
vtkDataArray * Priorities
vtkIdType FindCell(double *, vtkCell *, vtkIdType, double, int &, double *, double *) override
virtual void SetPriorities(vtkDataArray *arr)
Set/get the array specifying the importance (priority) of each label.
void GetDiscreteNodeCoordinatesFromWorldPoint(int ijk[3], double pt[3], int level)
Given a depth in the hierarchy (level) and a point pt in world space, compute ijk.
vtkCell * GetCell(vtkIdType) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
iterator over vtkLabelHierarchy
abstract superclass for arrays of numeric data
~vtkLabelHierarchy() override
void GetCellPoints(vtkIdType, vtkIdList *) override
Topological inquiry to get points defining cell.
static vtkLabelHierarchy * New()
contains an octree of labels
vtkLabelHierarchyIterator * NewIterator(int type, vtkRenderer *ren, vtkCamera *cam, double frustumPlanes[24], bool positionsAsNormals, float bucketSize[2])
Returns an iterator for this data object.
vtkCoincidentPoints * CoincidentPoints
static bool GetPathForNodalCoordinates(int *path, int ijk[3], int level)
Given a level of the tree and ijk coordinates in a lattice, compute a path down the tree to reach the...
void GetCell(vtkIdType, vtkGenericCell *) override
Get cell with cellId such that: 0 <= cellId < NumberOfCells.
vtkDataArray * Orientations
int GetCellType(vtkIdType) override
Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
abstract class to specify cell behavior
a simple class to control print indentation
dynamic, self-adjusting array of int
a virtual camera for 3D rendering
list of point or cell ids
vtkIntArray * IconIndices
void GetPointCells(vtkIdType, vtkIdList *) override
Topological inquiry to get cells using point.
Abstract superclass for all arrays.
represent text properties.
virtual void SetLabels(vtkAbstractArray *arr)
Set/get the array specifying the text of each label.
vtkDataArray * BoundedSizes
abstract class for specifying dataset behavior
abstract specification for renderers
concrete dataset represents vertices, lines, polygons, and triangle strips
provides thread-safe access to cells
Implementation * GetImplementation()
virtual void SetIconIndices(vtkIntArray *arr)
Set/get the array specifying the icon index of each label.
virtual void SetTextProperty(vtkTextProperty *tprop)
The default text property assigned to labels in this hierarchy.
vtkTextProperty * TextProperty
vtkIdType GetNumberOfCells() override
Inherited members (from vtkDataSet)
int GetMaxCellSize() override
Convenience method returns largest cell size in dataset.
IteratorType
Enumeration of iterator types.
virtual void SetOrientations(vtkDataArray *arr)
Set/get the array specifying the orientation of each label.
virtual vtkCell * GetCell(vtkIdType cellId)=0
Get cell with cellId such that: 0 <= cellId < NumberOfCells.