Class that can create vtkSegmentationConverter instances.
More...
#include <Libs/vtkSegmentationCore/vtkSegmentationConverterFactory.h>
Class that can create vtkSegmentationConverter instances.
This singleton class is a repository of all segmentation converter rules. Singleton pattern adopted from vtkEventBroker class.
Definition at line 41 of file vtkSegmentationConverterFactory.h.
◆ RuleListType
◆ Self
◆ Superclass
◆ vtkSegmentationConverterFactory() [1/2]
vtkSegmentationConverterFactory::vtkSegmentationConverterFactory |
( |
| ) |
|
|
protected |
◆ ~vtkSegmentationConverterFactory()
vtkSegmentationConverterFactory::~vtkSegmentationConverterFactory |
( |
| ) |
|
|
protected |
◆ vtkSegmentationConverterFactory() [2/2]
◆ classFinalize()
static void vtkSegmentationConverterFactory::classFinalize |
( |
| ) |
|
|
staticprotected |
◆ classInitialize()
static void vtkSegmentationConverterFactory::classInitialize |
( |
| ) |
|
|
staticprotected |
◆ ConstructRepresentationObjectByClass()
vtkDataObject* vtkSegmentationConverterFactory::ConstructRepresentationObjectByClass |
( |
std::string |
className | ) |
|
Constructs representation object from class name using the ConstructRepresentationObject methods in the registered conversion rules that must be able to instantiate the representation classes they support.
◆ ConstructRepresentationObjectByRepresentation()
vtkDataObject* vtkSegmentationConverterFactory::ConstructRepresentationObjectByRepresentation |
( |
std::string |
representationName | ) |
|
Constructs representation object from representation name using the ConstructRepresentationObject methods in the registered conversion rules that must be able to instantiate the representation classes they support.
◆ CopyConverterRules()
void vtkSegmentationConverterFactory::CopyConverterRules |
( |
RuleListType & |
rules | ) |
|
Create a copy of all registered converter rules. The rule argument is overwritten (any previous content is cleared) with rules copied from the list of all registered rules.
◆ DisableConverterRule()
bool vtkSegmentationConverterFactory::DisableConverterRule |
( |
std::string |
sourceRepresentationName, |
|
|
std::string |
targetRepresentationName |
|
) |
| |
Disable a converter rule, preventing it from being used. Achieved by unregistering the rule that can create the representation.
- Returns
- Success flag indicating whether a rule with the specified representations was found and disabled
◆ DisableRepresentation()
void vtkSegmentationConverterFactory::DisableRepresentation |
( |
std::string |
representationName | ) |
|
Disable a representation, preventing it from being created. Achieved by unregistering the rules that can create the representation.
◆ GetClassName()
virtual const char* vtkSegmentationConverterFactory::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetConverterRules()
const RuleListType& vtkSegmentationConverterFactory::GetConverterRules |
( |
| ) |
|
Get all registered converter rules.
◆ GetInstance()
Return the singleton instance with no reference counting.
◆ IsA()
virtual int vtkSegmentationConverterFactory::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkSegmentationConverterFactory::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ New()
This is a singleton pattern New. There will only be ONE reference to a vtkSegmentationConverterFactory object per process. Clients that call this must call Delete on the object so that the reference counting will work. The single instance will be unreferenced when the program exits.
◆ operator=()
◆ PrintSelf()
void vtkSegmentationConverterFactory::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
◆ RegisterConverterRule()
Add a converter rule. The factory (and all converter classes it creates) will keep a reference to this rule object, and it will not be deleted until all these referring classes are deleted.
◆ SafeDownCast()
◆ UnregisterConverterRule()
Remove a converter rule from the factory. This does not affect converters that have already been created.
◆ vtkSegmentationConverterFactoryInitialize
◆ Rules
The documentation for this class was generated from the following file: