MeVisLab Toolbox Reference
ml::MarkerList Class Reference

Base object class MarkerList managing a list of markers represented by Vector4's. More...

#include <mlMarkerList.h>

Inheritance diagram for ml::MarkerList:
ml::Base

Public Member Functions

 MarkerList ()
 
 ~MarkerList () override
 
MLssize_t getNum () const
 returns the number of contained points More...
 
void getValue (MLssize_t index, int &type, Vector3 &vec) const
 get marker at given index More...
 
void getValue (MLssize_t index, int &type, float &x, float &y, float &z) const
 get point at given index More...
 
void addValue (int type, const Vector3 &vec)
 add marker at end of list More...
 
void setValue (MLssize_t index, int type, const Vector3 &vec)
 set value at index More...
 
void removeValue (MLssize_t index=-1)
 remove point 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...
 
- Public Member Functions inherited from ml::Base
 Base ()
 Constructor. More...
 
virtual ~Base ()
 Destructor. More...
 
virtual BasedeepCopy () const
 Set addStateToTree version number that can be accessed via getAddStateVersion() More...
 
bool isOfAllowedType (const std::vector< const RuntimeType * > &types) const
 Check if this object's type is equal to or derived from one of the types given in the argument. More...
 
virtual bool isRefCountedBase () const
 Returns if the instance is derived from RefCountedBase. More...
 
virtual std::string detailString () const
 Return 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
 Write the objects state to the data stream object. More...
 
virtual void readFrom (AbstractPersistenceInputStream *, int)
 Read the objects state from the data stream object. More...
 

Additional Inherited Members

- Public Types inherited from ml::Base
enum  PersistenceInterface { PersistenceByString , PersistenceByTreeNode , PersistenceByStream }
 This enum describes the different persistence interfaces available. More...
 
- Protected Member Functions inherited from ml::Base
virtual char * getPersistentState () const
 Returns a C string describing the object's internal state. More...
 
virtual void setPersistentState (const char *)
 Restores the object's internal state from a string that had been previously generated using getPersistentState(). More...
 
virtual void clearPersistentState (char *) const
 Disposes a string previously allocated by getPersistentState(). More...
 

Detailed Description

Base object class MarkerList managing a list of markers represented by Vector4's.

Definition at line 30 of file mlMarkerList.h.

Constructor & Destructor Documentation

◆ MarkerList()

ml::MarkerList::MarkerList ( )
inline

Definition at line 33 of file mlMarkerList.h.

◆ ~MarkerList()

ml::MarkerList::~MarkerList ( )
inlineoverride

Definition at line 34 of file mlMarkerList.h.

Member Function Documentation

◆ addValue()

void ml::MarkerList::addValue ( int  type,
const Vector3 vec 
)

add marker at end of list

◆ clear()

void ml::MarkerList::clear ( )

clear all entries

◆ getNum()

MLssize_t ml::MarkerList::getNum ( ) const

returns the number of contained points

◆ getValue() [1/2]

void ml::MarkerList::getValue ( MLssize_t  index,
int &  type,
float &  x,
float &  y,
float &  z 
) const

get point at given index

◆ getValue() [2/2]

void ml::MarkerList::getValue ( MLssize_t  index,
int &  type,
Vector3 vec 
) const

get marker at given index

◆ print()

void ml::MarkerList::print ( const char *  txt)

debug print

◆ removeValue()

void ml::MarkerList::removeValue ( MLssize_t  index = -1)

remove point from list, if index is -1, last element is removed

◆ setValue()

void ml::MarkerList::setValue ( MLssize_t  index,
int  type,
const Vector3 vec 
)

set value at index


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