17 #ifndef __vtkSegmentationConversionPath_h 18 #define __vtkSegmentationConversionPath_h 21 #include <vtkCollection.h> 22 #include <vtkObject.h> 28 #include "vtkSegmentationCoreConfigure.h" 41 void PrintSelf(ostream& os, vtkIndent indent)
override;
46 unsigned int GetCost();
55 int GetNumberOfRules();
61 void RemoveRule(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfRules());
64 void RemoveAllRules();
72 std::vector< vtkSmartPointer<vtkSegmentationConverterRule> >
Rules;
93 void PrintSelf(ostream& os, vtkIndent indent)
override;
120 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
130 this->vtkCollection::AddItem(f);
137 vtkCollectionSimpleIterator it;
138 for (paths->InitTraversal(it); (path = paths->
GetNextPath(it));)
150 #endif // __vtkSegment_h std::vector< vtkSmartPointer< vtkSegmentationConverterRule > > Rules
void AddPath(vtkSegmentationConversionPath *)
Add a path to the list.
Abstract converter rule class. Subclasses perform conversions between specific representation types...
Store multiple segmentation conversion paths.
int GetNumberOfPaths()
Get number of conversion paths stored in the collection.
void AddPaths(vtkSegmentationConversionPaths *)
Add paths to the list.
Store a segmentation conversion path.
vtkSegmentationConversionPath * GetPath(int index)
Get the index-th path the list.
vtkSegmentationConversionPath * GetNextPath()
Get the next path in the list.
static vtkSegmentationConversionPath * SafeDownCast(vtkObject *o)