RobWorkProject  23.9.11-
Public Member Functions | Friends | List of all members
ReferencedVertice Class Reference

The ReferencedVertice contains a reference to the mesh it has been created from. Therefore any changes to the vertice wil be reflected in the original mesh. More...

#include <ReferencedVertice.hpp>

Public Member Functions

 ReferencedVertice (TriMeshData::Ptr ref, uint32_t vertice)
 Construct a new Referenced Vertice. More...
 
uint32_t & idx ()
 access to the index this mesh is refering to More...
 
uint32_t idx () const
 access to the index this mesh is refering to More...
 
double & operator[] (size_t i) const
 acces the vertice data More...
 
ReferencedVerticeoperator= (rw::math::Vector3D< double > rhs)
 Copy the data of a vector into the vertice. More...
 
ReferencedVerticeoperator= (rw::math::Vector3D< float > rhs)
 Copy the data of a vector into the vertice. More...
 
ReferencedVerticeoperator*= (rw::math::Transform3D< double > rhs)
 apply a transform to this vertice. More...
 
 operator rw::math::Vector3D< double > () const
 implicit convertion to Vector3D
 
 operator rw::math::Vector3D< float > () const
 implicit convertion to Vector3D
 

Friends

class ReferencedTriangle
 
class ReferencedEdge
 
std::ostream & operator<< (std::ostream &os, const ReferencedVertice &v)
 Serilization operator for converting to string. More...
 

Detailed Description

The ReferencedVertice contains a reference to the mesh it has been created from. Therefore any changes to the vertice wil be reflected in the original mesh.

Constructor & Destructor Documentation

◆ ReferencedVertice()

ReferencedVertice ( TriMeshData::Ptr  ref,
uint32_t  vertice 
)

Construct a new Referenced Vertice.

Parameters
refpointer to the referenced mesh
verticeindex of the referenced vertice

Member Function Documentation

◆ idx() [1/2]

uint32_t& idx ( )
inline

access to the index this mesh is refering to

Returns
uint32_t&

◆ idx() [2/2]

uint32_t idx ( ) const
inline

access to the index this mesh is refering to

Returns
uint32_t&

◆ operator*=()

ReferencedVertice& operator*= ( rw::math::Transform3D< double >  rhs)

apply a transform to this vertice.

Parameters
rhsthe transform to apply
Returns
this Vertice

◆ operator=() [1/2]

ReferencedVertice& operator= ( rw::math::Vector3D< double >  rhs)

Copy the data of a vector into the vertice.

Parameters
rhsthe vector to copy
Returns
this Vertice

◆ operator=() [2/2]

ReferencedVertice& operator= ( rw::math::Vector3D< float >  rhs)

Copy the data of a vector into the vertice.

Parameters
rhsthe vector to copy
Returns
this Vertice

◆ operator[]()

double& operator[] ( size_t  i) const

acces the vertice data

Parameters
iindex for the vertix corrdinate x=0 y=1 z=2
Returns
double&

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const ReferencedVertice v 
)
friend

Serilization operator for converting to string.

Parameters
os[in/out] the output stream
v[in] the vertice
Returns
std::ostream&

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