VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkLabelHierarchyCompositeIterator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00036 #ifndef vtkLabelHierarchyCompositeIterator_h 00037 #define vtkLabelHierarchyCompositeIterator_h 00038 00039 00040 #include "vtkRenderingLabelModule.h" // For export macro 00041 #include "vtkLabelHierarchyIterator.h" 00042 00043 class vtkIdTypeArray; 00044 class vtkLabelHierarchy; 00045 class vtkPolyData; 00046 00047 class VTKRENDERINGLABEL_EXPORT vtkLabelHierarchyCompositeIterator : public vtkLabelHierarchyIterator 00048 { 00049 public: 00050 vtkTypeMacro(vtkLabelHierarchyCompositeIterator, vtkLabelHierarchyIterator); 00051 virtual void PrintSelf(ostream& os, vtkIndent indent); 00052 static vtkLabelHierarchyCompositeIterator* New(); 00053 00055 00058 virtual void AddIterator(vtkLabelHierarchyIterator* it) 00059 { this->AddIterator(it, 1); } 00060 virtual void AddIterator(vtkLabelHierarchyIterator* it, int count); 00062 00064 virtual void ClearIterators(); 00065 00070 virtual void Begin( vtkIdTypeArray* ); 00071 00073 virtual void Next(); 00074 00076 virtual bool IsAtEnd(); 00077 00079 virtual vtkIdType GetLabelId(); 00080 00082 virtual vtkLabelHierarchy* GetHierarchy(); 00083 00087 virtual void GetNodeGeometry( double ctr[3], double& size ); 00088 00090 virtual void BoxNode() { } 00091 00093 virtual void BoxAllNodes( vtkPolyData* ) { } 00094 00095 protected: 00096 vtkLabelHierarchyCompositeIterator(); 00097 virtual ~vtkLabelHierarchyCompositeIterator(); 00098 00099 //BTX 00100 class Internal; 00101 Internal* Implementation; 00102 //ETX 00103 00104 private: 00105 vtkLabelHierarchyCompositeIterator( const vtkLabelHierarchyCompositeIterator& ); // Not implemented. 00106 void operator = ( const vtkLabelHierarchyCompositeIterator& ); // Not implemented. 00107 }; 00108 00109 #endif // vtkLabelHierarchyCompositeIterator_h