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 "vtkLabelHierarchyIterator.h" 00041 00042 class vtkIdTypeArray; 00043 class vtkLabelHierarchy; 00044 class vtkPolyData; 00045 00046 class VTK_RENDERING_EXPORT vtkLabelHierarchyCompositeIterator : public vtkLabelHierarchyIterator 00047 { 00048 public: 00049 vtkTypeMacro(vtkLabelHierarchyCompositeIterator, vtkLabelHierarchyIterator); 00050 virtual void PrintSelf(ostream& os, vtkIndent indent); 00051 static vtkLabelHierarchyCompositeIterator* New(); 00052 00054 00057 virtual void AddIterator(vtkLabelHierarchyIterator* it) 00058 { this->AddIterator(it, 1); } 00059 virtual void AddIterator(vtkLabelHierarchyIterator* it, int count); 00061 00063 virtual void ClearIterators(); 00064 00069 virtual void Begin( vtkIdTypeArray* ); 00070 00072 virtual void Next(); 00073 00075 virtual bool IsAtEnd(); 00076 00078 virtual vtkIdType GetLabelId(); 00079 00081 virtual vtkLabelHierarchy* GetHierarchy(); 00082 00086 virtual void GetNodeGeometry( double ctr[3], double& size ); 00087 00089 virtual void BoxNode() { } 00090 00092 virtual void BoxAllNodes( vtkPolyData* ) { } 00093 00094 protected: 00095 vtkLabelHierarchyCompositeIterator(); 00096 virtual ~vtkLabelHierarchyCompositeIterator(); 00097 00098 //BTX 00099 class Internal; 00100 Internal* Implementation; 00101 //ETX 00102 00103 private: 00104 vtkLabelHierarchyCompositeIterator( const vtkLabelHierarchyCompositeIterator& ); // Not implemented. 00105 void operator = ( const vtkLabelHierarchyCompositeIterator& ); // Not implemented. 00106 }; 00107 00108 #endif // __vtkLabelHierarchyCompositeIterator_h