17#ifndef __vtkSegmentationConversionParameters_h
18#define __vtkSegmentationConversionParameters_h
27#include "vtkSegmentationCoreConfigure.h"
39 void PrintSelf(ostream& os, vtkIndent indent)
override;
43 std::string
GetName(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
44 void SetName(
int index,
const std::string& name) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
49 std::string
GetDescription(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
51 void SetDescription(
int index,
const std::string& description) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
52 void SetDescription(
const std::string& name,
const std::string& description);
57 std::string
GetValue(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
61 void SetValue(
int index,
const std::string& value) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
62 void SetValue(
const std::string& name,
const std::string& value);
76 void RemoveParameter(
int index) VTK_EXPECTS(0 <= index && index < GetNumberOfParameters());
79 int SetParameter(
const std::string& name,
const std::string& value,
const std::string& description =
"");
Store a list of conversion parameters.
void DeepCopy(vtkSegmentationConversionParameters *source)
Replace parameters with content of another parameter list.
std::string GetDescription(const std::string &name)
int GetValueAsInt(const std::string &name)
~vtkSegmentationConversionParameters() override
std::vector< ConversionParameterType > ParameterList
int GetIndexFromName(const std::string name)
std::string GetDescription(int index) VTK_EXPECTS(0<
void PrintSelf(ostream &os, vtkIndent indent) override
int GetNumberOfParameters()
Return number of parameters.
void CopyParameter(vtkSegmentationConversionParameters *source, int sourceIndex)
Replace parameters with content of another parameter list.
std::string GetValue(const std::string &name)
vtkSegmentationConversionParameters()
void SetDescription(const std::string &name, const std::string &description)
std::string GetValue(int index) VTK_EXPECTS(0<
std::string GetName(int index) VTK_EXPECTS(0<
void SetName(int index, const std::string &name) VTK_EXPECTS(0<
int SetParameter(const std::string &name, const std::string &value, const std::string &description="")
Set a conversion parameter.
void SetValue(int index, const std::string &value) VTK_EXPECTS(0<
void RemoveAllParameters()
Delete all parameters.
void SetValue(const std::string &name, const std::string &value)
double GetValueAsDouble(const std::string &name)
void RemoveParameter(int index) VTK_EXPECTS(0<
Delete parameter.
static vtkSegmentationConversionParameters * New()
void SetDescription(int index, const std::string &description) VTK_EXPECTS(0<