MeVisLab Toolbox Reference
ml::PointList Class Reference

Base object class PointList managing a list of points. More...

#include <mlPointList.h>

Inheritance diagram for ml::PointList:
ml::Base

Public Member Functions

 PointList ()
 Constructor creating an empty list.
 ~PointList () override
 Destructor.
MLssize_t getNum () const
 returns the number of contained points
void getValue (MLssize_t index, Vector3 &vec) const
 get point at given index
void getValue (MLssize_t index, float &x, float &y, float &z) const
 get point at given index
void addValue (const Vector3 &vec)
 add point at end of list
void setValue (MLssize_t index, const Vector3 &vec)
 set value at index
void removeValue (MLssize_t index=-1)
 remove point from list, if index is -1, last element is removed
void clear ()
 clear all entries
void print (const char *txt)
 debug print
Public Member Functions inherited from ml::Base
 Base ()
 Constructor.
virtual ~Base ()
 Destructor.
virtual BasedeepCopy () const
bool isOfAllowedType (const std::vector< const RuntimeType * > &types) const
virtual bool isRefCountedBase () const
 Returns whether the instance is derived from RefCountedBase.
virtual std::string detailString () const
virtual bool implementsPersistence (PersistenceInterface) const
virtual std::string persistentState () const
 Returns a string describing the object's internal state.
virtual void setPersistentState (const std::string &state)
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
virtual void readFrom (AbstractPersistenceInputStream *, int)

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

Base object class PointList managing a list of points.

Definition at line 29 of file mlPointList.h.

Constructor & Destructor Documentation

◆ PointList()

ml::PointList::PointList ( )
inline

Constructor creating an empty list.

Definition at line 33 of file mlPointList.h.

Referenced by print().

◆ ~PointList()

ml::PointList::~PointList ( )
inlineoverride

Destructor.

Definition at line 36 of file mlPointList.h.

Member Function Documentation

◆ addValue()

void ml::PointList::addValue ( const Vector3 & vec)

add point at end of list

◆ clear()

void ml::PointList::clear ( )

clear all entries

◆ getNum()

◆ getValue() [1/2]

void ml::PointList::getValue ( MLssize_t index,
float & x,
float & y,
float & z ) const

get point at given index

◆ getValue() [2/2]

◆ print()

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

debug print

References PointList().

◆ removeValue()

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

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

◆ setValue()

void ml::PointList::setValue ( MLssize_t index,
const Vector3 & vec )

set value at index


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