MeVisLab Toolbox Reference
|
Base object representing a list of vectors given as Vector4's. More...
#include <mlVectorList.h>
Public Member Functions | |
VectorList () | |
~VectorList () override | |
MLssize_t | getNum () const |
returns the number of contained points More... | |
void | getValue (MLssize_t index, int &type, Vector3 &p1, Vector3 &p2) const |
get point at given index More... | |
void | getValue (MLssize_t index, int &type, float &x1, float &y1, float &z1, float &x2, float &y2, float &z2) const |
get point at given index More... | |
void | addValue (int type, const Vector3 &p1, const Vector3 &p2) |
add point at end of list More... | |
void | setValue (MLssize_t index, int type, const Vector3 &p1, const Vector3 &p2) |
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 | getPoint (MLssize_t index, int &type, float &x1, float &y1, float &z1) const |
returns point of vectors at given point index (NOTE: (0,1 = first vector , 2,3 = second vector)) More... | |
void | setPoint (MLssize_t index, int type, float x, float y, float z) |
set point of vectors at given point index (NOTE: (0,1 = first vector , 2,3 = second vector)) 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 representing a list of vectors given as Vector4's.
Definition at line 29 of file mlVectorList.h.
|
inline |
Definition at line 32 of file mlVectorList.h.
|
inlineoverride |
Definition at line 33 of file mlVectorList.h.
add point at end of list
void ml::VectorList::clear | ( | ) |
clear all entries
MLssize_t ml::VectorList::getNum | ( | ) | const |
returns the number of contained points
Referenced by ml::PCLMLTools::createPointCloudFromBaseList(), ml::ITKNodeContainerFromBasePointer(), ml::ITKPointSetFromBasePointer(), and ml::ITKPolylineFromBasePointer().
void ml::VectorList::getPoint | ( | MLssize_t | index, |
int & | type, | ||
float & | x1, | ||
float & | y1, | ||
float & | z1 | ||
) | const |
returns point of vectors at given point index (NOTE: (0,1 = first vector , 2,3 = second vector))
Referenced by ml::PCLMLTools::createPointCloudFromBaseList(), ml::ITKNodeContainerFromBasePointer(), ml::ITKPointSetFromBasePointer(), and ml::ITKPolylineFromBasePointer().
void ml::VectorList::getValue | ( | MLssize_t | index, |
int & | type, | ||
float & | x1, | ||
float & | y1, | ||
float & | z1, | ||
float & | x2, | ||
float & | y2, | ||
float & | z2 | ||
) | const |
get point at given index
get point at given index
void ml::VectorList::print | ( | const char * | txt | ) |
debug print
void ml::VectorList::removeValue | ( | MLssize_t | index = -1 | ) |
remove point from list, if index is -1, last element is removed
void ml::VectorList::setPoint | ( | MLssize_t | index, |
int | type, | ||
float | x, | ||
float | y, | ||
float | z | ||
) |
set point of vectors at given point index (NOTE: (0,1 = first vector , 2,3 = second vector))
set value at index