17 #ifndef __vtkSegmentationConversionParameters_h 18 #define __vtkSegmentationConversionParameters_h 21 #include <vtkObject.h> 27 #include "vtkSegmentationCoreConfigure.h" 40 void PrintSelf(ostream& os, vtkIndent indent)
override;
44 std::string GetName(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
45 void SetName(
int index,
const std::string& name) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
50 std::string GetDescription(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
51 std::string GetDescription(
const std::string& name);
52 void SetDescription(
int index,
const std::string& description) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
53 void SetDescription(
const std::string& name,
const std::string& description);
58 std::string GetValue(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
59 std::string GetValue(
const std::string& name);
60 double GetValueAsDouble(
const std::string& name);
61 int GetValueAsInt(
const std::string& name);
62 void SetValue(
int index,
const std::string& value) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
63 void SetValue(
const std::string& name,
const std::string& value);
68 int GetIndexFromName(
const std::string name);
71 int GetNumberOfParameters();
74 void RemoveAllParameters();
77 void RemoveParameter(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
80 int SetParameter(
const std::string& name,
const std::string& value,
const std::string& description =
"");
108 #endif // __vtkSegment_h
std::vector< ConversionParameterType > ParameterList
Store a list of conversion parameters.