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 
70  virtual vtkStdString GetLabel();
71 
73  virtual vtkUnicodeString GetUnicodeLabel();
74 
76  virtual double GetOrientation();
77 
79  virtual vtkIdType GetLabelId() { return -1; }
80 
82 
83  vtkGetObjectMacro(Hierarchy, vtkLabelHierarchy);
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:
116  virtual ~vtkLabelHierarchyIterator();
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
iterator over vtkLabelHierarchy
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
abstract base class for most VTK objects
Definition: vtkObject.h:61
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual void Begin(vtkIdTypeArray *)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGLABEL_EXPORT
contains an octree of labels
String class that stores Unicode text.