21#ifndef __vtkClosedSurfaceToFractionalLabelmapConversionRule_h
22#define __vtkClosedSurfaceToFractionalLabelmapConversionRule_h
27#include <vtkSegmentationCoreConfigure.h>
31#include "vtkSegmentationCoreConfigure.h"
34#include <vtkPolyDataToImageStencil.h>
67 unsigned int GetConversionCost(vtkDataObject* sourceRepresentation=
nullptr, vtkDataObject* targetRepresentation=
nullptr)
override;
70 const char*
GetName()
override {
return "Closed surface to fractional labelmap (simple image stencil)"; };
vtkClosedSurfaceToBinaryLabelmapConversionRule()
const char * GetTargetRepresentationName() override
Human-readable name of the target representation.
const char * GetName() override
Human-readable name of the converter rule.
~vtkClosedSurfaceToFractionalLabelmapConversionRule() override
static vtkClosedSurfaceToFractionalLabelmapConversionRule * New()
vtkDataObject * ConstructRepresentationObjectByClass(std::string className) override
vtkSegmentationConverterRule * CreateRuleInstance() override
bool PostConvert(vtkSegmentation *vtkNotUsed(segmentation)) override
Overridden to prevent vtkClosedSurfaceToBinaryLabelmapConversionRule::PostConvert.
bool Convert(vtkSegment *segment) override
Update the target representation based on the source representation.
unsigned int GetConversionCost(vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
Get the cost of the conversion.
const char * GetSourceRepresentationName() override
Human-readable name of the source representation.
vtkDataObject * ConstructRepresentationObjectByRepresentation(std::string representationName) override
vtkClosedSurfaceToFractionalLabelmapConversionRule()
This class encapsulates a segment that is part of a segmentation.
vtkSegmentationConverterRule()
static const char * GetSegmentationFractionalLabelmapRepresentationName()
static const char * GetSegmentationClosedSurfaceRepresentationName()
This class encapsulates a segmentation that can contain multiple segments and multiple representation...