Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkClosedSurfaceToFractionalLabelmapConversionRule Class Reference

Convert closed surface representation (vtkPolyData type) to fractional labelmap representation (vtkOrientedImageData type). The conversion algorithm is based on image stencil. More...

#include <Libs/vtkSegmentationCore/vtkClosedSurfaceToFractionalLabelmapConversionRule.h>

Inheritance diagram for vtkClosedSurfaceToFractionalLabelmapConversionRule:
Inheritance graph
[legend]
Collaboration diagram for vtkClosedSurfaceToFractionalLabelmapConversionRule:
Collaboration graph
[legend]

Public Types

typedef vtkClosedSurfaceToBinaryLabelmapConversionRule Superclass
 
- Public Types inherited from vtkClosedSurfaceToBinaryLabelmapConversionRule
typedef vtkSegmentationConverterRule Superclass
 
- Public Types inherited from vtkSegmentationConverterRule
typedef vtkObject Superclass
 

Public Member Functions

vtkDataObject * ConstructRepresentationObjectByClass (std::string className) override
 
vtkDataObject * ConstructRepresentationObjectByRepresentation (std::string representationName) override
 
bool Convert (vtkSegment *segment) override
 Update the target representation based on the source representation. More...
 
vtkSegmentationConverterRuleCreateRuleInstance () override
 
virtual const char * GetClassName ()
 
unsigned int GetConversionCost (vtkDataObject *sourceRepresentation=nullptr, vtkDataObject *targetRepresentation=nullptr) override
 Get the cost of the conversion. More...
 
const char * GetName () override
 Human-readable name of the converter rule. More...
 
const char * GetSourceRepresentationName () override
 Human-readable name of the source representation. More...
 
const char * GetTargetRepresentationName () override
 Human-readable name of the target representation. More...
 
virtual int IsA (const char *type)
 
bool PostConvert (vtkSegmentation *vtkNotUsed(segmentation)) override
 Overridden to prevent vtkClosedSurfaceToBinaryLabelmapConversionRule::PostConvert. More...
 
- Public Member Functions inherited from vtkClosedSurfaceToBinaryLabelmapConversionRule
bool PostConvert (vtkSegmentation *segmentation) override
 
virtual void SetUseOutputImageDataGeometry (bool)
 
- Public Member Functions inherited from vtkSegmentationConverterRule
virtual vtkSegmentationConverterRuleClone ()
 Create a new instance of this rule and copy its contents. More...
 
virtual std::string GetConversionParameter (const std::string &name)
 Get a conversion parameter value. More...
 
virtual std::string GetConversionParameterDescription (const std::string &name)
 Get a conversion parameter description. More...
 
virtual void GetRuleConversionParameters (vtkSegmentationConversionParameters *conversionParameters) VTK_EXPECTS(conversionParameters !
 
bool HasConversionParameter (const std::string &name)
 Determine if the rule has a parameter with a certain name. More...
 
virtual bool PreConvert (vtkSegmentation *vtkNotUsed(segmentation))
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetConversionParameter (const std::string &name, const std::string &value, const std::string &description="")
 Set a conversion parameter. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkClosedSurfaceToFractionalLabelmapConversionRuleNew ()
 
static vtkClosedSurfaceToFractionalLabelmapConversionRuleSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkClosedSurfaceToBinaryLabelmapConversionRule
static const std::string GetCollapseLabelmapsParameterName ()
 
static const std::string GetCropToReferenceImageGeometryParameterName ()
 
static const std::string GetOversamplingFactorParameterName ()
 
static int IsTypeOf (const char *type)
 
static vtkClosedSurfaceToBinaryLabelmapConversionRuleNew ()
 
static vtkClosedSurfaceToBinaryLabelmapConversionRuleSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSegmentationConverterRule
static unsigned int GetConversionInfiniteCost ()
 
static int IsTypeOf (const char *type)
 
static vtkSegmentationConverterRuleSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkClosedSurfaceToFractionalLabelmapConversionRule ()
 
 ~vtkClosedSurfaceToFractionalLabelmapConversionRule () override
 
- Protected Member Functions inherited from vtkClosedSurfaceToBinaryLabelmapConversionRule
bool CalculateOutputGeometry (vtkPolyData *closedSurfacePolyData, vtkOrientedImageData *geometryImageData)
 
std::string GetDefaultImageGeometryStringForPolyData (vtkPolyData *polyData)
 
 vtkClosedSurfaceToBinaryLabelmapConversionRule ()
 
 ~vtkClosedSurfaceToBinaryLabelmapConversionRule () override
 
- Protected Member Functions inherited from vtkSegmentationConverterRule
virtual bool CreateTargetRepresentation (vtkSegment *segment)
 Update the target representation based on the source representation. More...
 
void operator= (const vtkSegmentationConverterRule &)
 
 vtkSegmentationConverterRule ()
 
 ~vtkSegmentationConverterRule () override
 

Protected Attributes

int NumberOfOffsets
 
- Protected Attributes inherited from vtkClosedSurfaceToBinaryLabelmapConversionRule
bool UseOutputImageDataGeometry {false}
 
- Protected Attributes inherited from vtkSegmentationConverterRule
vtkNew< vtkSegmentationConversionParametersConversionParameters
 
bool ReplaceTargetRepresentation {false}
 

Detailed Description

Convert closed surface representation (vtkPolyData type) to fractional labelmap representation (vtkOrientedImageData type). The conversion algorithm is based on image stencil.

Definition at line 42 of file vtkClosedSurfaceToFractionalLabelmapConversionRule.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkClosedSurfaceToFractionalLabelmapConversionRule()

vtkClosedSurfaceToFractionalLabelmapConversionRule::vtkClosedSurfaceToFractionalLabelmapConversionRule ( )
protected

◆ ~vtkClosedSurfaceToFractionalLabelmapConversionRule()

vtkClosedSurfaceToFractionalLabelmapConversionRule::~vtkClosedSurfaceToFractionalLabelmapConversionRule ( )
overrideprotected

Member Function Documentation

◆ ConstructRepresentationObjectByClass()

vtkDataObject* vtkClosedSurfaceToFractionalLabelmapConversionRule::ConstructRepresentationObjectByClass ( std::string  className)
overridevirtual

Constructs representation object from class name for the supported representation classes (typically source and target representation VTK classes, subclasses of vtkDataObject) Note: Need to take ownership of the created object! For example using vtkSmartPointer<vtkDataObject>::Take

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

◆ ConstructRepresentationObjectByRepresentation()

vtkDataObject* vtkClosedSurfaceToFractionalLabelmapConversionRule::ConstructRepresentationObjectByRepresentation ( std::string  representationName)
overridevirtual

Constructs representation object from representation name for the supported representation classes (typically source and target representation VTK classes, subclasses of vtkDataObject) Note: Need to take ownership of the created object! For example using vtkSmartPointer<vtkDataObject>::Take

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

◆ Convert()

bool vtkClosedSurfaceToFractionalLabelmapConversionRule::Convert ( vtkSegment segment)
overridevirtual

Update the target representation based on the source representation.

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

◆ CreateRuleInstance()

vtkSegmentationConverterRule* vtkClosedSurfaceToFractionalLabelmapConversionRule::CreateRuleInstance ( )
overridevirtual

Create instance of the default node. Similar to New but virtual method. Subclasses should implement this method by

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

◆ GetClassName()

virtual const char* vtkClosedSurfaceToFractionalLabelmapConversionRule::GetClassName ( )
virtual

◆ GetConversionCost()

unsigned int vtkClosedSurfaceToFractionalLabelmapConversionRule::GetConversionCost ( vtkDataObject *  sourceRepresentation = nullptr,
vtkDataObject *  targetRepresentation = nullptr 
)
overridevirtual

Get the cost of the conversion.

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

◆ GetName()

const char* vtkClosedSurfaceToFractionalLabelmapConversionRule::GetName ( )
inlineoverridevirtual

Human-readable name of the converter rule.

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

Definition at line 71 of file vtkClosedSurfaceToFractionalLabelmapConversionRule.h.

◆ GetSourceRepresentationName()

const char* vtkClosedSurfaceToFractionalLabelmapConversionRule::GetSourceRepresentationName ( )
inlineoverridevirtual

Human-readable name of the source representation.

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

Definition at line 74 of file vtkClosedSurfaceToFractionalLabelmapConversionRule.h.

◆ GetTargetRepresentationName()

const char* vtkClosedSurfaceToFractionalLabelmapConversionRule::GetTargetRepresentationName ( )
inlineoverridevirtual

Human-readable name of the target representation.

Reimplemented from vtkClosedSurfaceToBinaryLabelmapConversionRule.

Definition at line 77 of file vtkClosedSurfaceToFractionalLabelmapConversionRule.h.

◆ IsA()

virtual int vtkClosedSurfaceToFractionalLabelmapConversionRule::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkClosedSurfaceToFractionalLabelmapConversionRule::IsTypeOf ( const char *  type)
static

◆ New()

static vtkClosedSurfaceToFractionalLabelmapConversionRule* vtkClosedSurfaceToFractionalLabelmapConversionRule::New ( )
static

◆ PostConvert()

bool vtkClosedSurfaceToFractionalLabelmapConversionRule::PostConvert ( vtkSegmentation vtkNotUsedsegmentation)
inlineoverridevirtual

◆ SafeDownCast()

static vtkClosedSurfaceToFractionalLabelmapConversionRule* vtkClosedSurfaceToFractionalLabelmapConversionRule::SafeDownCast ( vtkObject *  o)
static

Member Data Documentation

◆ NumberOfOffsets

int vtkClosedSurfaceToFractionalLabelmapConversionRule::NumberOfOffsets
protected

The documentation for this class was generated from the following file: