VTK
vtkLabelHierarchyCompositeIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLabelHierarchyCompositeIterator.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 -------------------------------------------------------------------------*/
36 #ifndef vtkLabelHierarchyCompositeIterator_h
37 #define vtkLabelHierarchyCompositeIterator_h
38 
39 
40 #include "vtkRenderingLabelModule.h" // For export macro
42 
43 class vtkIdTypeArray;
44 class vtkLabelHierarchy;
45 class vtkPolyData;
46 
48 {
49 public:
51  virtual void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
59  { this->AddIterator(it, 1); }
60  virtual void AddIterator(vtkLabelHierarchyIterator* it, int count);
62 
64  virtual void ClearIterators();
65 
70  virtual void Begin( vtkIdTypeArray* );
71 
73  virtual void Next();
74 
76  virtual bool IsAtEnd();
77 
79  virtual vtkIdType GetLabelId();
80 
83 
87  virtual void GetNodeGeometry( double ctr[3], double& size );
88 
90  virtual void BoxNode() { }
91 
93  virtual void BoxAllNodes( vtkPolyData* ) { }
94 
95 protected:
98 
99  //BTX
100  class Internal;
101  Internal* Implementation;
102  //ETX
103 
104 private:
106  void operator = ( const vtkLabelHierarchyCompositeIterator& ); // Not implemented.
107 };
108 
109 #endif // vtkLabelHierarchyCompositeIterator_h
iterator over vtkLabelHierarchy
virtual void AddIterator(vtkLabelHierarchyIterator *it)
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:247
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
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
virtual void GetNodeGeometry(double ctr[3], double &size)=0
contains an octree of labels
static vtkObject * New()
virtual vtkLabelHierarchy * GetHierarchy()