MeVisLab Toolbox Reference
|
Base object managing a list of Sphere objects. More...
#include <mlSphereList.h>
Public Member Functions | |
SphereList () | |
~SphereList () override | |
MLssize_t | getNum () const |
returns the number of contained Spheres More... | |
void | getValue (MLssize_t index, Sphere &obj) const |
get Sphere at given index More... | |
Sphere | getValue (MLssize_t index) const |
get Sphere at given index More... | |
Sphere * | getPtr (MLssize_t index=-1) |
get Pointer to Sphere at given index, if index is -1, last element is given More... | |
void | addValue (const Sphere &obj) |
add Sphere at end of list More... | |
void | setValue (MLssize_t index, const Sphere &obj) |
set value at index More... | |
void | removeValue (MLssize_t index=-1) |
remove Sphere from list, if index is -1, last element is removed More... | |
void | clear () |
clear all entries More... | |
void | print (const char *txt) |
debug print More... | |
![]() | |
Base () | |
Constructor. More... | |
virtual | ~Base () |
Destructor. More... | |
virtual Base * | deepCopy () const |
Creates a deep copy of the given object. More... | |
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. More... | |
virtual bool | isRefCountedBase () const |
Returns whether the instance is derived from RefCountedBase. More... | |
virtual std::string | detailString () const |
Returns a string describing this object. More... | |
virtual bool | implementsPersistence (PersistenceInterface) const |
Override this method to declare which persistence interfaces are implemented by your derived class. More... | |
virtual std::string | persistentState () const |
Returns a string describing the object's internal state. More... | |
virtual void | setPersistentState (const std::string &state) |
Restores the object's internal state from a string that had been previously generated using persistentState(). More... | |
virtual void | addStateToTree (TreeNode *) const |
Attaches the object state as children of the given parent node. More... | |
virtual void | readStateFromTree (TreeNode *) |
Reads the object state from the children of the given parent node. More... | |
virtual void | writeTo (AbstractPersistenceOutputStream *) const |
Writes the objects state to the data stream object. More... | |
virtual void | readFrom (AbstractPersistenceInputStream *, int) |
Reads the objects state from the data stream object. More... | |
Additional Inherited Members | |
![]() | |
enum | PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream } |
This enum describes the different persistence interfaces available. More... | |
Base object managing a list of Sphere objects.
Definition at line 29 of file mlSphereList.h.
|
inline |
Definition at line 32 of file mlSphereList.h.
|
inlineoverride |
Definition at line 33 of file mlSphereList.h.
void ml::SphereList::clear | ( | ) |
clear all entries
MLssize_t ml::SphereList::getNum | ( | ) | const |
returns the number of contained Spheres
get Pointer to Sphere at given index, if index is -1, last element is given
void ml::SphereList::print | ( | const char * | txt | ) |
debug print
void ml::SphereList::removeValue | ( | MLssize_t | index = -1 | ) |
remove Sphere from list, if index is -1, last element is removed