VTK
vtkLabelHierarchyIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLabelHierarchyIterator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
27 #ifndef vtkLabelHierarchyIterator_h
28 #define vtkLabelHierarchyIterator_h
29 
30 #include "vtkRenderingLabelModule.h" // For export macro
31 #include "vtkObject.h"
32 #include "vtkStdString.h" // for std string
33 #include "vtkUnicodeString.h" // for unicode string
34 
35 class vtkIdTypeArray;
36 class vtkLabelHierarchy;
37 class vtkPolyData;
38 
40 {
41 public:
43  virtual void PrintSelf( ostream& os, vtkIndent indent );
44 
49  virtual void Begin( vtkIdTypeArray* ) { }
50 
52  virtual void Next() { }
53 
55  virtual bool IsAtEnd() { return true; }
56 
58  virtual void GetPoint( double x[3] );
59 
61  virtual void GetSize( double sz[2] );
62 
64  virtual void GetBoundedSize( double sz[2] );
65 
67  virtual int GetType();
68 
71 
74 
76  virtual double GetOrientation();
77 
79  virtual vtkIdType GetLabelId() { return -1; }
80 
82 
85 
88  virtual void SetTraversedBounds( vtkPolyData* );
89 
93  virtual void GetNodeGeometry( double ctr[3], double& size ) = 0;
94 
98  virtual void BoxNode();
99 
104  virtual void BoxAllNodes( vtkPolyData* );
105 
107 
110  vtkSetMacro(AllBounds,int);
111  vtkGetMacro(AllBounds,int);
113 
114 protected:
117 
118  void BoxNodeInternal3( const double* ctr, double sz );
119  void BoxNodeInternal2( const double* ctr, double sz );
120 
122  virtual void SetHierarchy( vtkLabelHierarchy* h );
123 
126  double BoundsFactor;
129 
130 private:
131  vtkLabelHierarchyIterator( const vtkLabelHierarchyIterator& ); // Not implemented.
132  void operator = ( const vtkLabelHierarchyIterator& ); // Not implemented.
133 };
134 
135 #endif // vtkLabelHierarchyIterator_h
vtkLabelHierarchyIterator::vtkLabelHierarchyIterator
vtkLabelHierarchyIterator()
vtkStdString.h
vtkRenderingLabelModule.h
vtkLabelHierarchyIterator::GetLabelId
virtual vtkIdType GetLabelId()
Definition: vtkLabelHierarchyIterator.h:79
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkLabelHierarchyIterator::TraversedBounds
vtkPolyData * TraversedBounds
Definition: vtkLabelHierarchyIterator.h:125
vtkgl::h
GLfloat GLfloat GLfloat GLfloat h
Definition: vtkgl.h:14364
vtkLabelHierarchyIterator::GetPoint
virtual void GetPoint(double x[3])
vtkLabelHierarchy
contains an octree of labels
Definition: vtkLabelHierarchy.h:81
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkLabelHierarchyIterator::~vtkLabelHierarchyIterator
virtual ~vtkLabelHierarchyIterator()
vtkUnicodeString.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkLabelHierarchyIterator::IsAtEnd
virtual bool IsAtEnd()
Definition: vtkLabelHierarchyIterator.h:55
VTKRENDERINGLABEL_EXPORT
#define VTKRENDERINGLABEL_EXPORT
Definition: vtkRenderingLabelModule.h:15
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkLabelHierarchyIterator::AllBounds
int AllBounds
Definition: vtkLabelHierarchyIterator.h:127
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkLabelHierarchyIterator
iterator over vtkLabelHierarchy
Definition: vtkLabelHierarchyIterator.h:40
vtkLabelHierarchyIterator::SetHierarchy
virtual void SetHierarchy(vtkLabelHierarchy *h)
vtkLabelHierarchyIterator::GetUnicodeLabel
virtual vtkUnicodeString GetUnicodeLabel()
vtkLabelHierarchyIterator::BoundsFactor
double BoundsFactor
Definition: vtkLabelHierarchyIterator.h:126
vtkLabelHierarchyIterator::GetOrientation
virtual double GetOrientation()
vtkLabelHierarchyIterator::Begin
virtual void Begin(vtkIdTypeArray *)
Definition: vtkLabelHierarchyIterator.h:49
vtkLabelHierarchyIterator::SetTraversedBounds
virtual void SetTraversedBounds(vtkPolyData *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnicodeString
String class that stores Unicode text.
Definition: vtkUnicodeString.h:72
vtkLabelHierarchyIterator::GetBoundedSize
virtual void GetBoundedSize(double sz[2])
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkLabelHierarchyIterator::BoxNodeInternal2
void BoxNodeInternal2(const double *ctr, double sz)
vtkLabelHierarchyIterator::BoxNodeInternal3
void BoxNodeInternal3(const double *ctr, double sz)
vtkLabelHierarchyIterator::GetType
virtual int GetType()
vtkObject.h
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkLabelHierarchyIterator::Next
virtual void Next()
Definition: vtkLabelHierarchyIterator.h:52
vtkLabelHierarchyIterator::AllBoundsRecorded
int AllBoundsRecorded
Definition: vtkLabelHierarchyIterator.h:128
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkLabelHierarchyIterator::GetSize
virtual void GetSize(double sz[2])
vtkLabelHierarchyIterator::BoxNode
virtual void BoxNode()
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:48
vtkLabelHierarchyIterator::BoxAllNodes
virtual void BoxAllNodes(vtkPolyData *)
vtkLabelHierarchyIterator::GetNodeGeometry
virtual void GetNodeGeometry(double ctr[3], double &size)=0
vtkLabelHierarchyIterator::Hierarchy
vtkLabelHierarchy * Hierarchy
Definition: vtkLabelHierarchyIterator.h:124
vtkLabelHierarchyIterator::GetLabel
virtual vtkStdString GetLabel()
vtkLabelHierarchyIterator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843