MeVisLab Toolbox Reference
ml::ITKWrapperBase Class Reference

Helper class to have a common base class for all derived wrapper. More...

#include <mlITKMLBaseWrapper.h>

Inheritance diagram for ml::ITKWrapperBase:
ml::Base

Public Member Functions

 ITKWrapperBase ()
 Private on purpose to avoid instantiations.
 
void setITKPointer (itk::LightObject::Pointer obj)
 
template<class T >
T::Pointer getITKPointer ()
 
- Public Member Functions inherited from ml::Base
 Base ()
 Constructor.
 
virtual ~Base ()
 Destructor.
 
virtual BasedeepCopy () const
 Creates a deep copy of the given object.
 
bool isOfAllowedType (const std::vector< const RuntimeType * > &types) const
 Checks whether this object's type is equal to or derived from one of the types given in the argument.
 
virtual bool isRefCountedBase () const
 Returns whether the instance is derived from RefCountedBase.
 
virtual std::string detailString () const
 Returns a string describing this object.
 
virtual bool implementsPersistence (PersistenceInterface) const
 Override this method to declare which persistence interfaces are implemented by your derived class.
 
virtual std::string persistentState () const
 Returns a string describing the object's internal state.
 
virtual void setPersistentState (const std::string &state)
 Restores the object's internal state from a string that had been previously generated using persistentState().
 
virtual void addStateToTree (TreeNode *) const
 Attaches the object state as children of the given parent node.
 
virtual void readStateFromTree (TreeNode *)
 Reads the object state from the children of the given parent node.
 
virtual void writeTo (AbstractPersistenceOutputStream *) const
 Writes the objects state to the data stream object.
 
virtual void readFrom (AbstractPersistenceInputStream *, int)
 Reads the objects state from the data stream object.
 

Protected Member Functions

 ML_ABSTRACT_CLASS_HEADER (ITKWrapperBase)
 Register this class abstractly.
 

Additional Inherited Members

- Public Types inherited from ml::Base
enum  PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream }
 This enum describes the different persistence interfaces available. More...
 

Detailed Description

Helper class to have a common base class for all derived wrapper.

It is use to distinguish wrappers from other non wrapper base objects.

Definition at line 29 of file mlITKMLBaseWrapper.h.

Constructor & Destructor Documentation

◆ ITKWrapperBase()

ml::ITKWrapperBase::ITKWrapperBase ( )
inline

Private on purpose to avoid instantiations.

Definition at line 33 of file mlITKMLBaseWrapper.h.

Member Function Documentation

◆ getITKPointer()

template<class T >
T::Pointer ml::ITKWrapperBase::getITKPointer ( )
inline

Definition at line 41 of file mlITKMLBaseWrapper.h.

References T.

◆ ML_ABSTRACT_CLASS_HEADER()

ml::ITKWrapperBase::ML_ABSTRACT_CLASS_HEADER ( ITKWrapperBase )
protected

Register this class abstractly.

◆ setITKPointer()

void ml::ITKWrapperBase::setITKPointer ( itk::LightObject::Pointer obj)
inline

Definition at line 35 of file mlITKMLBaseWrapper.h.

References mlrange_cast().


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