ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkMetaSceneConverter.h>
Converts between MetaObject and SpaitalObject scenes.
SpatialObject hierarchies are written to disk using the MetaIO library. This class is responsible for converting between MetaIO scenes and SpatialObject scenes
Definition at line 46 of file itkMetaSceneConverter.h.
Public Types | |
typedef std::map< std::string, MetaConverterPointer > | ConverterMapType |
typedef MetaConverterBase < NDimensions > | MetaConverterBaseType |
typedef MetaConverterBaseType::Pointer | MetaConverterPointer |
typedef SceneType::Pointer | ScenePointer |
typedef itk::SceneSpatialObject < NDimensions > | SceneType |
Public Member Functions | |
MetaScene * | CreateMetaScene (SceneType *scene, unsigned int depth=MaximumDepth, char *name=nullptr) |
ScenePointer | CreateSpatialObjectScene (MetaScene *scene) |
const MetaEvent * | GetEvent () const |
MetaSceneConverter () | |
ScenePointer | ReadMeta (const char *name) |
void | RegisterMetaConverter (const char *metaTypeName, const char *spatialObjectTypeName, MetaConverterBaseType *converter) |
void | SetBinaryPoints (bool binary) |
void | SetEvent (MetaEvent *event) |
void | SetWriteImagesInSeparateFile (bool separate) |
bool | WriteMeta (SceneType *scene, const char *fileName, unsigned int depth=MaximumDepth, char *spatialObjectTypeName=nullptr) |
~MetaSceneConverter () | |
void | SetTransformPrecision (unsigned int precision) |
unsigned int | GetTransformPrecision () |
Static Public Attributes | |
static const unsigned int | MaximumDepth = 9999999 |
Private Types | |
typedef std::list< MetaObject * > | MetaObjectListType |
typedef SpatialObjectType::Pointer | SpatialObjectPointer |
typedef itk::SpatialObject < NDimensions > | SpatialObjectType |
typedef SpatialObjectType::TransformType | TransformType |
Private Member Functions | |
template<typename TConverter > | |
SpatialObjectPointer | MetaObjectToSpatialObject (const MetaObject *mo) |
void | SetTransform (MetaObject *obj, TransformType *transform) |
void | SetTransform (SpatialObjectType *so, MetaObject *obj) |
template<typename TConverter > | |
MetaObject * | SpatialObjectToMetaObject (SpatialObjectPointer &so) |
Private Attributes | |
bool | m_BinaryPoints |
double | m_CenterOfRotation [10] |
ConverterMapType | m_ConverterMap |
MetaEvent * | m_Event |
double | m_Orientation [100] |
double | m_Position [10] |
unsigned int | m_TransformPrecision |
bool | m_WriteImagesInSeparateFile |
typedef std::map< std::string, MetaConverterPointer > itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ConverterMapType |
Definition at line 57 of file itkMetaSceneConverter.h.
typedef MetaConverterBase< NDimensions > itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::MetaConverterBaseType |
Typedef for auxiliary conversion classes
Definition at line 55 of file itkMetaSceneConverter.h.
typedef MetaConverterBaseType::Pointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::MetaConverterPointer |
Definition at line 56 of file itkMetaSceneConverter.h.
|
private |
Definition at line 114 of file itkMetaSceneConverter.h.
typedef SceneType::Pointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ScenePointer |
Definition at line 52 of file itkMetaSceneConverter.h.
typedef itk::SceneSpatialObject< NDimensions > itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SceneType |
SpatialObject Scene types
Definition at line 51 of file itkMetaSceneConverter.h.
|
private |
Definition at line 111 of file itkMetaSceneConverter.h.
|
private |
Definition at line 110 of file itkMetaSceneConverter.h.
|
private |
Definition at line 112 of file itkMetaSceneConverter.h.
itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::MetaSceneConverter | ( | ) |
itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::~MetaSceneConverter | ( | ) |
MetaScene* itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::CreateMetaScene | ( | SceneType * | scene, |
unsigned int | depth = MaximumDepth , |
||
char * | name = nullptr |
||
) |
ScenePointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::CreateSpatialObjectScene | ( | MetaScene * | scene | ) |
|
inline |
Definition at line 72 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_Event.
|
inline |
set/get the precision for writing out numbers as plain text
Definition at line 83 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_TransformPrecision.
|
inlineprivate |
Definition at line 125 of file itkMetaSceneConverter.h.
ScenePointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ReadMeta | ( | const char * | name | ) |
Read a MetaFile and create a Scene SpatialObject
void itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::RegisterMetaConverter | ( | const char * | metaTypeName, |
const char * | spatialObjectTypeName, | ||
MetaConverterBaseType * | converter | ||
) |
add new SpatialObject/MetaObject converters at runtime
Every Converter is mapped to both a metaObject type name and a spatialObject type name – these need to match what gets read from & written to the MetaIO file
|
inline |
Set if the points should be saved in binary/ASCII
Definition at line 76 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_BinaryPoints.
|
inline |
Definition at line 73 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_Event.
|
private |
|
private |
|
inline |
set/get the precision for writing out numbers as plain text
Definition at line 79 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_TransformPrecision.
|
inline |
Set if the images should be written in different files
Definition at line 87 of file itkMetaSceneConverter.h.
References itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_WriteImagesInSeparateFile.
|
inlineprivate |
Definition at line 117 of file itkMetaSceneConverter.h.
References itk::SmartPointer< TObjectType >::GetPointer(), and itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::m_WriteImagesInSeparateFile.
bool itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::WriteMeta | ( | SceneType * | scene, |
const char * | fileName, | ||
unsigned int | depth = MaximumDepth , |
||
char * | spatialObjectTypeName = nullptr |
||
) |
write out a Scene SpatialObject
|
private |
Definition at line 139 of file itkMetaSceneConverter.h.
Referenced by itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SetBinaryPoints().
|
private |
Definition at line 136 of file itkMetaSceneConverter.h.
|
private |
Definition at line 142 of file itkMetaSceneConverter.h.
|
private |
Definition at line 138 of file itkMetaSceneConverter.h.
Referenced by itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::GetEvent(), and itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SetEvent().
|
private |
Definition at line 134 of file itkMetaSceneConverter.h.
|
private |
Definition at line 135 of file itkMetaSceneConverter.h.
|
private |
Definition at line 141 of file itkMetaSceneConverter.h.
Referenced by itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::GetTransformPrecision(), and itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SetTransformPrecision().
|
private |
|
static |
Definition at line 62 of file itkMetaSceneConverter.h.