17#ifndef __vtkSegmentationConversionPath_h
18#define __vtkSegmentationConversionPath_h
21#include <vtkCollection.h>
28#include "vtkSegmentationCoreConfigure.h"
40 void PrintSelf(ostream& os, vtkIndent indent)
override;
71 std::vector< vtkSmartPointer<vtkSegmentationConverterRule> >
Rules;
91 void PrintSelf(ostream& os, vtkIndent indent)
override;
118 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
128 this->vtkCollection::AddItem(f);
135 vtkCollectionSimpleIterator it;
136 for (paths->InitTraversal(it); (path = paths->
GetNextPath(it));)
Store a segmentation conversion path.
vtkSegmentationConverterRule * GetRule(int index) VTK_EXPECTS(0<
Get index-th rule.
void Copy(vtkSegmentationConversionPath *source)
vtkSegmentationConversionPath()
int AddRule(vtkSegmentationConverterRule *rule)
Add a rule to the end of the rule list. Return the index of this rule.
void PrintSelf(ostream &os, vtkIndent indent) override
~vtkSegmentationConversionPath() override
void RemoveAllRules()
Remove all rules from this path.
void AddRules(vtkSegmentationConversionPath *path)
Concatenate all rules in "path" and to this conversion path.
std::vector< vtkSmartPointer< vtkSegmentationConverterRule > > Rules
static vtkSegmentationConversionPath * New()
void RemoveRule(int index) VTK_EXPECTS(0<
Remove index-th rule.
int GetNumberOfRules()
Return number of rules that make up this conversion path.
static vtkSegmentationConversionPath * SafeDownCast(vtkObject *o)
Store multiple segmentation conversion paths.
void AddPath(vtkSegmentationConversionPath *)
Add a path to the list.
int GetNumberOfPaths()
Get number of conversion paths stored in the collection.
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSegmentationConversionPath * GetNextPath()
Get the next path in the list.
static vtkSegmentationConversionPaths * New()
void AddPaths(vtkSegmentationConversionPaths *)
Add paths to the list.
vtkSegmentationConversionPath * GetNextPath(vtkCollectionSimpleIterator &cookie)
vtkSegmentationConversionPaths()=default
vtkSegmentationConversionPath * GetPath(int index)
Get the index-th path the list.
~vtkSegmentationConversionPaths() override=default
Abstract converter rule class. Subclasses perform conversions between specific representation types....