ITK
6.0.0
Insight Toolkit
|
#include <itkMetaConverterBase.h>
Base class for MetaObject<->SpatialObject converters.
SpatialObject scenes are written and read using the MetaIO Library. This is managed by the MetaSceneConverter class, which converts MetaObject scenes to SpatialObject scenes and vice versa.
MetaScene walks the scene and uses the converter on each object in the scene.
Definition at line 42 of file itkMetaConverterBase.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | MetaObjectType = MetaObject |
using | Pointer = SmartPointer< Self > |
using | Self = MetaConverterBase |
using | SpatialObjectConstPointer = typename SpatialObjectType::ConstPointer |
using | SpatialObjectPointer = typename SpatialObjectType::Pointer |
using | SpatialObjectType = SpatialObject< VDimension > |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Public Member Functions | |
virtual unsigned int | GetMetaIOVersion () const |
const char * | GetNameOfClass () const override |
virtual SpatialObjectPointer | MetaObjectToSpatialObject (const MetaObjectType *mo)=0 |
void | MetaObjectToSpatialObjectBase (const MetaObjectType *mo, SpatialObjectPointer rval) |
virtual SpatialObjectPointer | ReadMeta (const char *name) |
virtual void | SetMetaIOVersion (unsigned int _arg) |
virtual MetaObjectType * | SpatialObjectToMetaObject (const SpatialObjectType *spatialObject)=0 |
void | SpatialObjectToMetaObjectBase (SpatialObjectConstPointer spatialObject, MetaObjectType *mo) |
virtual bool | WriteMeta (const SpatialObjectType *spatialObject, const char *name) |
virtual void | SetWriteImagesInSeparateFile (bool _arg) |
virtual bool | GetWriteImagesInSeparateFile () const |
virtual void | WriteImagesInSeparateFileOn () |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
LightObject::Pointer | CreateAnother () const override |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
Command * | GetCommand (unsigned long tag) |
bool | GetDebug () const |
MetaDataDictionary & | GetMetaDataDictionary () |
const MetaDataDictionary & | GetMetaDataDictionary () const |
virtual ModifiedTimeType | GetMTime () const |
virtual const TimeStamp & | GetTimeStamp () const |
bool | HasObserver (const EventObject &event) const |
void | InvokeEvent (const EventObject &) |
void | InvokeEvent (const EventObject &) const |
virtual void | Modified () const |
void | Register () const override |
void | RemoveAllObservers () |
void | RemoveObserver (unsigned long tag) const |
void | SetDebug (bool debugFlag) const |
void | SetReferenceCount (int) override |
void | UnRegister () const noexcept override |
void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
virtual void | SetObjectName (std::string _arg) |
virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
Pointer | Clone () const |
virtual void | Delete () |
virtual int | GetReferenceCount () const |
void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
virtual MetaObjectType * | CreateMetaObject ()=0 |
MetaConverterBase ()=default | |
~MetaConverterBase () override=default | |
Protected Member Functions inherited from itk::Object | |
Object () | |
bool | PrintObservers (std::ostream &os, Indent indent) const |
void | PrintSelf (std::ostream &os, Indent indent) const override |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
virtual LightObject::Pointer | InternalClone () const |
LightObject () | |
virtual void | PrintHeader (std::ostream &os, Indent indent) const |
virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
virtual | ~LightObject () |
Private Attributes | |
unsigned int | m_MetaIOVersion { 0 } |
bool | m_WriteImagesInSeparateFile { false } |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount {} |
using itk::MetaConverterBase< VDimension >::ConstPointer = SmartPointer<const Self> |
Definition at line 50 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::MetaObjectType = MetaObject |
Definition at line 58 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::Pointer = SmartPointer<Self> |
Definition at line 49 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::Self = MetaConverterBase |
standard class type alias
Definition at line 47 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::SpatialObjectConstPointer = typename SpatialObjectType::ConstPointer |
Definition at line 57 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::SpatialObjectPointer = typename SpatialObjectType::Pointer |
Definition at line 56 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::SpatialObjectType = SpatialObject<VDimension> |
Definition at line 55 of file itkMetaConverterBase.h.
using itk::MetaConverterBase< VDimension >::Superclass = Object |
Definition at line 48 of file itkMetaConverterBase.h.
|
protecteddefault |
|
overrideprotecteddefault |
|
protectedpure virtual |
Creator for specific metaObject, defined in subclass
Implemented in itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >, itk::MetaImageConverter< VDimension, unsigned char, ImageMaskSpatialObject< VDimension > >, itk::MetaMeshConverter< VDimension, PixelType, TMeshTraits >, itk::MetaBlobConverter< VDimension >, itk::MetaContourConverter< VDimension >, itk::MetaArrowConverter< VDimension >, itk::MetaDTITubeConverter< VDimension >, itk::MetaEllipseConverter< VDimension >, itk::MetaGaussianConverter< VDimension >, itk::MetaGroupConverter< VDimension >, itk::MetaLandmarkConverter< VDimension >, itk::MetaLineConverter< VDimension >, itk::MetaSurfaceConverter< VDimension >, itk::MetaTubeConverter< VDimension >, and itk::MetaVesselTubeConverter< VDimension >.
|
virtual |
|
overridevirtual |
Reimplemented from itk::Object.
Reimplemented in itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >, itk::MetaImageConverter< VDimension, unsigned char, ImageMaskSpatialObject< VDimension > >, itk::MetaImageMaskConverter< VDimension >, itk::MetaMeshConverter< VDimension, PixelType, TMeshTraits >, itk::MetaDTITubeConverter< VDimension >, itk::MetaEllipseConverter< VDimension >, itk::MetaGaussianConverter< VDimension >, itk::MetaGroupConverter< VDimension >, itk::MetaLandmarkConverter< VDimension >, itk::MetaLineConverter< VDimension >, itk::MetaSurfaceConverter< VDimension >, itk::MetaTubeConverter< VDimension >, and itk::MetaVesselTubeConverter< VDimension >.
|
virtual |
Set/Get flag for writing images to separate files in metaImage instances
|
pure virtual |
Convert the MetaObject to Spatial Object
Implemented in itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >, itk::MetaImageConverter< VDimension, unsigned char, ImageMaskSpatialObject< VDimension > >, itk::MetaMeshConverter< VDimension, PixelType, TMeshTraits >, itk::MetaBlobConverter< VDimension >, itk::MetaContourConverter< VDimension >, itk::MetaArrowConverter< VDimension >, itk::MetaDTITubeConverter< VDimension >, itk::MetaEllipseConverter< VDimension >, itk::MetaGaussianConverter< VDimension >, itk::MetaGroupConverter< VDimension >, itk::MetaLandmarkConverter< VDimension >, itk::MetaLineConverter< VDimension >, itk::MetaSurfaceConverter< VDimension >, itk::MetaTubeConverter< VDimension >, and itk::MetaVesselTubeConverter< VDimension >.
void itk::MetaConverterBase< VDimension >::MetaObjectToSpatialObjectBase | ( | const MetaObjectType * | mo, |
SpatialObjectPointer | rval | ||
) |
|
virtual |
Read a MetaIO file, return a SpatialObject
|
virtual |
|
virtual |
Set/Get flag for writing images to separate files in metaImage instances
|
pure virtual |
Convert the SpatialObject to MetaObject
Implemented in itk::MetaBlobConverter< VDimension >, itk::MetaArrowConverter< VDimension >, itk::MetaDTITubeConverter< VDimension >, itk::MetaLineConverter< VDimension >, itk::MetaTubeConverter< VDimension >, itk::MetaImageConverter< VDimension, TPixel, TSpatialObjectType >, itk::MetaImageConverter< VDimension, unsigned char, ImageMaskSpatialObject< VDimension > >, itk::MetaMeshConverter< VDimension, PixelType, TMeshTraits >, itk::MetaContourConverter< VDimension >, itk::MetaEllipseConverter< VDimension >, itk::MetaGaussianConverter< VDimension >, itk::MetaGroupConverter< VDimension >, itk::MetaLandmarkConverter< VDimension >, itk::MetaSurfaceConverter< VDimension >, and itk::MetaVesselTubeConverter< VDimension >.
void itk::MetaConverterBase< VDimension >::SpatialObjectToMetaObjectBase | ( | SpatialObjectConstPointer | spatialObject, |
MetaObjectType * | mo | ||
) |
|
virtual |
Set/Get flag for writing images to separate files in metaImage instances
|
virtual |
Write a MetaIO file based on this SpatialObject
|
private |
Definition at line 104 of file itkMetaConverterBase.h.
|
private |
Definition at line 103 of file itkMetaConverterBase.h.