21 #ifndef __vtkClosedSurfaceToBinaryLabelmapConversionRule_h 22 #define __vtkClosedSurfaceToBinaryLabelmapConversionRule_h 28 #include "vtkSegmentationCoreConfigure.h" 55 virtual vtkDataObject* ConstructRepresentationObjectByRepresentation(
std::
string representationName) VTK_OVERRIDE;
60 virtual vtkDataObject* ConstructRepresentationObjectByClass(
std::
string className) VTK_OVERRIDE;
63 virtual
bool Convert(vtkDataObject* sourceRepresentation, vtkDataObject* targetRepresentation) VTK_OVERRIDE;
66 virtual
unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=NULL, vtkDataObject* targetRepresentation=NULL) VTK_OVERRIDE;
69 virtual const
char* GetName() VTK_OVERRIDE {
return "Closed surface to binary labelmap (simple image stencil)"; };
77 vtkSetMacro(UseOutputImageDataGeometry,
bool);
85 bool CalculateOutputGeometry(vtkPolyData* closedSurfacePolyData,
vtkOrientedImageData* geometryImageData);
92 std::string GetDefaultImageGeometryStringForPolyData(vtkPolyData* polyData);
108 #endif // __vtkClosedSurfaceToBinaryLabelmapConversionRule_h virtual const char * GetTargetRepresentationName() VTK_OVERRIDE
Human-readable name of the target representation.
void operator=(const vtkSegmentationConverterRule &)
static const char * GetSegmentationBinaryLabelmapRepresentationName()
static const std::string GetOversamplingFactorParameterName()
Abstract converter rule class. Subclasses perform conversions between specific representation types...
Image data containing orientation information.
bool UseOutputImageDataGeometry
Convert closed surface representation (vtkPolyData type) to binary labelmap representation (vtkOrient...
static const char * GetSegmentationClosedSurfaceRepresentationName()
static const std::string GetCropToReferenceImageGeometryParameterName()
virtual vtkSegmentationConverterRule * CreateRuleInstance()=0
virtual const char * GetSourceRepresentationName() VTK_OVERRIDE
Human-readable name of the source representation.