MeVisLab Toolbox Reference
ml::XMarker Class Reference

Base object class XMarker (derived form baseItem) with 6D pos, 3D vec and type int. More...

#include <mlXMarkerList.h>

Inheritance diagram for ml::XMarker:
ml::BaseItem ml::Base

Public Member Functions

XMarkeroperator= (const XMarker &marker)
 Assignment operator. More...
 
bool operator== (const XMarker &marker) const
 Equal operator. More...
 
Constructors
 XMarker ()
 Default constructor. More...
 
 XMarker (const Vector3 &pos_)
 3D-Position More...
 
 XMarker (const Vector6 &pos_)
 6D-Position More...
 
 XMarker (const Vector6 &pos_, int type_)
 6D-Position and type More...
 
 XMarker (const Vector6 &pos_, int type_, const char *name_)
 6D-Position, type and name More...
 
 XMarker (const Vector6 &pos_, const Vector3 &vec_)
 6D-Position and vector More...
 
 XMarker (const Vector6 &pos_, const Vector3 &vec_, int type_)
 6D-Position, vector and type More...
 
 XMarker (const Vector6 &pos_, const Vector3 &vec_, int type_, const char *name_)
 6D-Position, vector, type and name More...
 
 XMarker (const XMarker &marker)
 Copy constructor. More...
 
Direct coordinate access
double & x ()
 
double & y ()
 
double & z ()
 
double & c ()
 
double & t ()
 
double & u ()
 
const double & x () const
 
const double & y () const
 
const double & z () const
 
const double & c () const
 
const double & t () const
 
const double & u () const
 
double vx () const
 
double vy () const
 
double vz () const
 
- Public Member Functions inherited from ml::BaseItem
void setId (MLssize_t id)
 Sets the id of the item. More...
 
MLssize_t getId () const
 Sets the id of the item. More...
 
 ~BaseItem () override
 Destructor. More...
 
BaseItemoperator= (const BaseItem &item)
 Assignment operator. More...
 
const char * name () const
 Get name. More...
 
void setName (const char *newName)
 Set name, object stores a copy. More...
 
BaseItemdeepCopy () const override
 Create a deep copy of the BaseItem. More...
 
 BaseItem ()
 Default constructor. More...
 
 BaseItem (MLssize_t id, const char *nameStr=nullptr)
 ID and name. More...
 
 BaseItem (const BaseItem &item)
 Copy constructor. More...
 
void clearPersistentState (char *state) const override
 Dispose the string state, which has been previously obtained by getPersistentState() More...
 
 ML_SET_ADDSTATE_VERSION (0)
 Set addState version number. More...
 
void writeTo (AbstractPersistenceOutputStream *stream) const override
 write state to stream More...
 
void readFrom (AbstractPersistenceInputStream *stream, int version) override
 read state from stream More...
 
- Public Member Functions inherited from ml::Base
 Base ()
 Constructor. More...
 
virtual ~Base ()
 Destructor. 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...
 

Public Attributes

Marker properties
Vector6 pos
 Marker position. More...
 
Vector3 vec
 Marker vector, relative to position. More...
 
int type
 Marker type. More...
 

Persistence

Return a string representation of the item object.

std::string persistentState () const override
 Return a string representation of the item object. More...
 
void setPersistentState (const std::string &state) override
 Initialize the item object from the string state. More...
 
void addStateToTree (TreeNode *parent) const override
 Add state to tree. More...
 
 ML_SET_ADDSTATE_VERSION (0)
 Set addState version number. More...
 
void readStateFromTree (TreeNode *parent) override
 Read state from tree. More...
 
char * getPersistentState () const override
 Return a string representation of the item object. More...
 
void setPersistentState (const char *state) override
 Initialize the item object from the string state /deprecated. 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::BaseItem
char * newString (const std::string &str) const
 Convenience method to create a copy of the string str allocated on the heap. More...
 
void deleteString (char *str) const
 Dispose a string allocated with newString() More...
 
- Protected Member Functions inherited from ml::Base

Detailed Description

Base object class XMarker (derived form baseItem) with 6D pos, 3D vec and type int.

General marker class with the following properties:

  • A 6D position
  • A 3D vector (relative to the marker position)
  • An integer type

Definition at line 51 of file mlXMarkerList.h.

Constructor & Destructor Documentation

◆ XMarker() [1/9]

ml::XMarker::XMarker ( )
inline

Default constructor.

Definition at line 69 of file mlXMarkerList.h.

◆ XMarker() [2/9]

ml::XMarker::XMarker ( const Vector3 pos_)
inline

3D-Position

Definition at line 72 of file mlXMarkerList.h.

◆ XMarker() [3/9]

ml::XMarker::XMarker ( const Vector6 pos_)
inline

6D-Position

Definition at line 75 of file mlXMarkerList.h.

◆ XMarker() [4/9]

ml::XMarker::XMarker ( const Vector6 pos_,
int  type_ 
)
inline

6D-Position and type

Definition at line 78 of file mlXMarkerList.h.

◆ XMarker() [5/9]

ml::XMarker::XMarker ( const Vector6 pos_,
int  type_,
const char *  name_ 
)
inline

6D-Position, type and name

Definition at line 81 of file mlXMarkerList.h.

References ml::BaseItem::setName().

◆ XMarker() [6/9]

ml::XMarker::XMarker ( const Vector6 pos_,
const Vector3 vec_ 
)
inline

6D-Position and vector

Definition at line 85 of file mlXMarkerList.h.

◆ XMarker() [7/9]

ml::XMarker::XMarker ( const Vector6 pos_,
const Vector3 vec_,
int  type_ 
)
inline

6D-Position, vector and type

Definition at line 88 of file mlXMarkerList.h.

◆ XMarker() [8/9]

ml::XMarker::XMarker ( const Vector6 pos_,
const Vector3 vec_,
int  type_,
const char *  name_ 
)
inline

6D-Position, vector, type and name

Definition at line 91 of file mlXMarkerList.h.

References ml::BaseItem::setName().

◆ XMarker() [9/9]

ml::XMarker::XMarker ( const XMarker marker)
inline

Copy constructor.

Definition at line 95 of file mlXMarkerList.h.

Member Function Documentation

◆ addStateToTree()

void ml::XMarker::addStateToTree ( TreeNode parent) const
overridevirtual

Add state to tree.

Reimplemented from ml::BaseItem.

◆ c() [1/2]

double& ml::XMarker::c ( )
inline

Definition at line 112 of file mlXMarkerList.h.

References ML_VC.

◆ c() [2/2]

const double& ml::XMarker::c ( ) const
inline

Definition at line 119 of file mlXMarkerList.h.

References ML_VC.

◆ getPersistentState()

char* ml::XMarker::getPersistentState ( ) const
overrideprotectedvirtual

Return a string representation of the item object.

The string is allocated on the heap and is later disposed by clearPersistentState().

Deprecated:

Reimplemented from ml::BaseItem.

◆ ML_SET_ADDSTATE_VERSION()

ml::XMarker::ML_SET_ADDSTATE_VERSION ( )

Set addState version number.

◆ operator=()

XMarker& ml::XMarker::operator= ( const XMarker marker)

Assignment operator.

◆ operator==()

bool ml::XMarker::operator== ( const XMarker marker) const
inline

Equal operator.

Definition at line 104 of file mlXMarkerList.h.

References pos, type, and vec.

◆ persistentState()

std::string ml::XMarker::persistentState ( ) const
overridevirtual

Return a string representation of the item object.

Reimplemented from ml::BaseItem.

◆ readStateFromTree()

void ml::XMarker::readStateFromTree ( TreeNode parent)
overridevirtual

Read state from tree.

Reimplemented from ml::BaseItem.

◆ setPersistentState() [1/2]

void ml::XMarker::setPersistentState ( const char *  state)
overrideprotectedvirtual

Initialize the item object from the string state /deprecated.

Reimplemented from ml::BaseItem.

◆ setPersistentState() [2/2]

void ml::XMarker::setPersistentState ( const std::string &  state)
overridevirtual

Initialize the item object from the string state.

Reimplemented from ml::BaseItem.

◆ t() [1/2]

double& ml::XMarker::t ( )
inline

Definition at line 113 of file mlXMarkerList.h.

References ML_VT.

◆ t() [2/2]

const double& ml::XMarker::t ( ) const
inline

Definition at line 120 of file mlXMarkerList.h.

References ML_VT.

◆ u() [1/2]

double& ml::XMarker::u ( )
inline

Definition at line 114 of file mlXMarkerList.h.

References ML_VU.

◆ u() [2/2]

const double& ml::XMarker::u ( ) const
inline

Definition at line 121 of file mlXMarkerList.h.

References ML_VU.

◆ vx()

double ml::XMarker::vx ( ) const
inline

Definition at line 123 of file mlXMarkerList.h.

References ML_VX.

◆ vy()

double ml::XMarker::vy ( ) const
inline

Definition at line 124 of file mlXMarkerList.h.

References ML_VY.

◆ vz()

double ml::XMarker::vz ( ) const
inline

Definition at line 125 of file mlXMarkerList.h.

References ML_VZ.

◆ x() [1/2]

double& ml::XMarker::x ( )
inline

Definition at line 109 of file mlXMarkerList.h.

References ML_VX.

◆ x() [2/2]

const double& ml::XMarker::x ( ) const
inline

Definition at line 116 of file mlXMarkerList.h.

References ML_VX.

◆ y() [1/2]

double& ml::XMarker::y ( )
inline

Definition at line 110 of file mlXMarkerList.h.

References ML_VY.

◆ y() [2/2]

const double& ml::XMarker::y ( ) const
inline

Definition at line 117 of file mlXMarkerList.h.

References ML_VY.

◆ z() [1/2]

double& ml::XMarker::z ( )
inline

Definition at line 111 of file mlXMarkerList.h.

References ML_VZ.

◆ z() [2/2]

const double& ml::XMarker::z ( ) const
inline

Definition at line 118 of file mlXMarkerList.h.

References ML_VZ.

Member Data Documentation

◆ pos

Vector6 ml::XMarker::pos

◆ type

int ml::XMarker::type

◆ vec

Vector3 ml::XMarker::vec

Marker vector, relative to position.

Definition at line 59 of file mlXMarkerList.h.

Referenced by ml::PCLMLTools::assignPointDataFromXMarker(), ml::PCLMLTools::assignXMarkerFromPointData(), and operator==().


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