|
MeVisLab Toolbox Reference
|
Helper class to have a common base class for all derived wrapper. More...
#include <mlVTKMLBaseWrapper.h>
Public Member Functions | |
| VTKObjectWrapper () | |
| VTKObjectWrapper (vtkObject *obj) | |
| vtkObject * | wrappedObject () |
| template<class T > | |
| T * | object () |
| std::string | detailString () const override |
| Returns a string describing this object. | |
Public Member Functions inherited from ml::RefCountedBase | |
| RefCountedBase () | |
| Constructor. | |
| RefCountedBase (const RefCountedBase &) | |
| Explicit copy constructor. | |
| virtual void | incRefCount () const |
| Increases the reference count. | |
| virtual void | decRefCount () const |
| Decreases the reference count (object will be deleted if the reference count is decremented to 0). | |
| bool | isRefCountedBase () const override |
| Returns whether the instance is derived from RefCountedBase. | |
Public Member Functions inherited from ml::EventSource | |
| EventSource () | |
| EventSource (const EventSource &evSource) | |
| ~EventSource () override | |
| void | addEventListener (BaseEventCallback *cb, void *userData) |
| Adds event listener callback to this Base object. | |
| void | removeEventListener (BaseEventCallback *cb, void *userData) |
| Removes event listener callback from this Base object. | |
| bool | hasEventListeners () const |
| Checks whether any event listeners have been added to this Base object; this can be used to skip the sendEvent call and the potentially expensive building of the event object altogether. | |
Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual Base * | deepCopy () 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 | 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 (VTKObjectWrapper) | |
| Register this class abstractly. | |
Protected Member Functions inherited from ml::RefCountedBase | |
| ~RefCountedBase () override | |
| Macro for the declaration of the runtime type system methods, defined in mlRuntimeSubClass.h. | |
Protected Member Functions inherited from ml::EventSource | |
| void | sendEvent (BaseEvent *event, void *skipListener=nullptr) |
| Macro for the declaration of the runtime type system methods, defined in mlRuntimeSubClass.h. | |
Protected Attributes | |
| vtkSmartPointer< vtkObject > | _vtkObject {} |
Protected Attributes inherited from ml::RefCountedBase | |
| std::atomic_int_least32_t | _refCount |
| Reference count. | |
Additional Inherited Members | |
Public Types inherited from ml::Base | |
| enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
| This enum describes the different persistence interfaces available. More... | |
Static Public Member Functions inherited from ml::RefCountedBase | |
| static void | updateReferenceCountingIfSupported (Base *oldValue, Base *newValue, bool &isRefCountedBase) |
| Helper method that handles incrementing/decrementing of the reference count if base instances support it. | |
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 31 of file mlVTKMLBaseWrapper.h.
| ml::VTKObjectWrapper::VTKObjectWrapper | ( | ) |
| ml::VTKObjectWrapper::VTKObjectWrapper | ( | vtkObject * | obj | ) |
|
overridevirtual |
|
protected |
Register this class abstractly.
Definition at line 40 of file mlVTKMLBaseWrapper.h.
| vtkObject * ml::VTKObjectWrapper::wrappedObject | ( | ) |
|
protected |
Definition at line 48 of file mlVTKMLBaseWrapper.h.