ITK
5.2.0
Insight Toolkit
|
#include <itkMetaSceneConverter.h>
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | ConverterMapType = std::map< std::string, MetaConverterPointer > |
using | MetaConverterBaseType = MetaConverterBase< NDimensions > |
using | MetaConverterPointer = typename MetaConverterBaseType::Pointer |
using | Pointer = SmartPointer< Self > |
using | Self = MetaSceneConverter |
using | SpatialObjectPointer = typename SpatialObjectType::Pointer |
using | SpatialObjectType = itk::SpatialObject< NDimensions > |
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 ::itk::LightObject::Pointer | CreateAnother () const |
virtual MetaEvent * | GetEvent () |
virtual const char * | GetNameOfClass () const |
SpatialObjectPointer | ReadMeta (const std::string &name) |
virtual void | SetEvent (MetaEvent *_arg) |
bool | WriteMeta (SpatialObjectType *soScene, const std::string &fileName, unsigned int depth=SpatialObjectType::MaximumDepth, const std::string &soName="") |
Public Member Functions inherited from itk::Object | |
unsigned long | AddObserver (const EventObject &event, Command *) |
unsigned long | AddObserver (const EventObject &event, Command *) const |
unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
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) |
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 |
Static Public Member Functions | |
static Pointer | New () |
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 () |
using | TransformType = typename SpatialObjectType::TransformType |
using | MetaObjectListType = std::list< MetaObject * > |
double | m_Orientation [100] |
double | m_Position [10] |
double | m_CenterOfRotation [10] |
MetaEvent * | m_Event |
bool | m_BinaryPoints |
bool | m_WriteImagesInSeparateFile |
unsigned int | m_TransformPrecision |
ConverterMapType | m_ConverterMap |
virtual void | SetBinaryPoints (bool _arg) |
virtual bool | GetBinaryPoints () const |
virtual void | BinaryPointsOn () |
virtual void | BinaryPointsOff () |
virtual void | SetTransformPrecision (unsigned int _arg) |
virtual unsigned int | GetTransformPrecision () |
virtual void | SetWriteImagesInSeparateFile (bool _arg) |
virtual bool | GetWriteImagesInSeparateFile () const |
virtual void | WriteImagesInSeparateFileOn () |
virtual void | WriteImagesInSeparateFileOff () |
void | RegisterMetaConverter (const std::string &metaTypeName, const std::string &spatialObjectTypeName, MetaConverterBaseType *converter) |
MetaScene * | CreateMetaScene (SpatialObjectType *soScene, unsigned int depth=SpatialObjectType::MaximumDepth, const std::string &name="") |
SpatialObjectPointer | CreateSpatialObjectScene (MetaScene *mScene) |
MetaSceneConverter () | |
~MetaSceneConverter () override=default | |
template<typename TConverter > | |
MetaObject * | SpatialObjectToMetaObject (SpatialObjectPointer &so) |
template<typename TConverter > | |
SpatialObjectPointer | MetaObjectToSpatialObject (const MetaObject *mo) |
void | SetTransform (MetaObject *obj, const TransformType *transform) |
void | SetTransform (SpatialObjectType *so, const MetaObject *meta) |
Additional Inherited Members | |
Protected Member Functions inherited from itk::Object | |
Object () | |
~Object () override | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
bool | PrintObservers (std::ostream &os, Indent indent) const |
virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
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 () |
Protected Attributes inherited from itk::LightObject | |
std::atomic< int > | m_ReferenceCount |
Converts between MetaObject and SpaitalObject group.
SpatialObject hierarchies are written to disk using the MetaIO library. This class is responsible for converting between MetaIO group and SpatialObject group
Definition at line 48 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ConstPointer = SmartPointer<const Self> |
Definition at line 56 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ConverterMapType = std::map<std::string, MetaConverterPointer> |
Definition at line 70 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::MetaConverterBaseType = MetaConverterBase<NDimensions> |
Typedef for auxiliary conversion classes
Definition at line 68 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::MetaConverterPointer = typename MetaConverterBaseType::Pointer |
Definition at line 69 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 129 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::Pointer = SmartPointer<Self> |
Definition at line 55 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::Self = MetaSceneConverter |
standard class type alias
Definition at line 53 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SpatialObjectPointer = typename SpatialObjectType::Pointer |
Definition at line 65 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::SpatialObjectType = itk::SpatialObject<NDimensions> |
SpatialObject Scene types
Definition at line 64 of file itkMetaSceneConverter.h.
using itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::Superclass = Object |
Definition at line 54 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 127 of file itkMetaSceneConverter.h.
|
protected |
Set if the points should be saved in binary/ASCII
|
overrideprotecteddefault |
Set if the points should be saved in binary/ASCII
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
MetaScene* itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::CreateMetaScene | ( | SpatialObjectType * | soScene, |
unsigned int | depth = SpatialObjectType::MaximumDepth , |
||
const std::string & | name = "" |
||
) |
Set if the points should be saved in binary/ASCII
SpatialObjectPointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::CreateSpatialObjectScene | ( | MetaScene * | mScene | ) |
Set if the points should be saved in binary/ASCII
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::Object.
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
Set if the points should be saved in binary/ASCII
|
inlineprivate |
Set if the points should be saved in binary/ASCII
Definition at line 142 of file itkMetaSceneConverter.h.
|
static |
SpatialObjectPointer itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::ReadMeta | ( | const std::string & | name | ) |
Read a MetaFile and create a Scene SpatialObject
void itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::RegisterMetaConverter | ( | const std::string & | metaTypeName, |
const std::string & | 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
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
|
private |
Set if the points should be saved in binary/ASCII
|
private |
Set if the points should be saved in binary/ASCII
|
virtual |
set/get the precision for writing out numbers as plain text
|
virtual |
Set if the images should be written in different files
|
inlineprivate |
Set if the points should be saved in binary/ASCII
Definition at line 133 of file itkMetaSceneConverter.h.
|
virtual |
Set if the points should be saved in binary/ASCII
|
virtual |
Set if the points should be saved in binary/ASCII
bool itk::MetaSceneConverter< NDimensions, PixelType, TMeshTraits >::WriteMeta | ( | SpatialObjectType * | soScene, |
const std::string & | fileName, | ||
unsigned int | depth = SpatialObjectType::MaximumDepth , |
||
const std::string & | soName = "" |
||
) |
write out a SpatialObject
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 158 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 155 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 161 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 157 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 153 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 154 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 160 of file itkMetaSceneConverter.h.
|
private |
Set if the points should be saved in binary/ASCII
Definition at line 159 of file itkMetaSceneConverter.h.