#include <mrpt/opengl/CGeneralizedCylinder.h>
Classes | |
struct | TQuadrilateral |
Public Member Functions | |
void | render () const |
This virtual method in the base class performs common tasks like coordinates transformation,color,. | |
virtual bool | traceRay (const mrpt::poses::CPose3D &o, float &dist) const |
Simulation of ray-trace, given a pose. | |
void | getAxis (std::vector< CPoint3D > &a) const |
void | setAxis (const std::vector< CPoint3D > &a) |
void | getGeneratrix (std::vector< CPoint3D > &g) const |
void | setGeneratrix (const std::vector< CPoint3D > g) |
bool | isClosed () const |
void | setClosed (bool c=true) |
void | getOrigin (CPolyhedronPtr &poly) const |
void | getEnd (CPolyhedronPtr &poly) const |
Static Public Member Functions | |
static CGeneralizedCylinderPtr | Create (const std::vector< CPoint3D > &a, const std::vector< CPoint3D > &g) |
Protected Attributes | |
vector_serializable< CPoint3D > | axis |
vector_serializable< CPoint3D > | generatrix |
std::vector< TQuadrilateral > | mesh |
bool | meshUpToDate |
bool | closed |
Private Member Functions | |
void | updateMesh () const |
CGeneralizedCylinder () | |
CGeneralizedCylinder (const std::vector< CPoint3D > &a, const std::vector< CPoint3D > &g) | |
virtual | ~CGeneralizedCylinder () |
Definition at line 41 of file CGeneralizedCylinder.h.
mrpt::opengl::CGeneralizedCylinder::CGeneralizedCylinder | ( | ) | [inline, private] |
Definition at line 100 of file CGeneralizedCylinder.h.
mrpt::opengl::CGeneralizedCylinder::CGeneralizedCylinder | ( | const std::vector< CPoint3D > & | a, | |
const std::vector< CPoint3D > & | g | |||
) | [inline, private] |
Definition at line 101 of file CGeneralizedCylinder.h.
virtual mrpt::opengl::CGeneralizedCylinder::~CGeneralizedCylinder | ( | ) | [inline, private, virtual] |
Definition at line 102 of file CGeneralizedCylinder.h.
static CGeneralizedCylinderPtr mrpt::opengl::CGeneralizedCylinder::Create | ( | const std::vector< CPoint3D > & | a, | |
const std::vector< CPoint3D > & | g | |||
) | [inline, static] |
Definition at line 70 of file CGeneralizedCylinder.h.
References mrpt::opengl::CGeneralizedCylinder.
void mrpt::opengl::CGeneralizedCylinder::getAxis | ( | std::vector< CPoint3D > & | a | ) | const [inline] |
Definition at line 75 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::getEnd | ( | CPolyhedronPtr & | poly | ) | const |
void mrpt::opengl::CGeneralizedCylinder::getGeneratrix | ( | std::vector< CPoint3D > & | g | ) | const [inline] |
Definition at line 82 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::getOrigin | ( | CPolyhedronPtr & | poly | ) | const |
bool mrpt::opengl::CGeneralizedCylinder::isClosed | ( | ) | const [inline] |
Definition at line 89 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::render | ( | ) | const [virtual] |
This virtual method in the base class performs common tasks like coordinates transformation,color,.
..
Implements mrpt::opengl::CRenderizable.
void mrpt::opengl::CGeneralizedCylinder::setAxis | ( | const std::vector< CPoint3D > & | a | ) | [inline] |
Definition at line 78 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::setClosed | ( | bool | c = true |
) | [inline] |
Definition at line 92 of file CGeneralizedCylinder.h.
void mrpt::opengl::CGeneralizedCylinder::setGeneratrix | ( | const std::vector< CPoint3D > | g | ) | [inline] |
Definition at line 85 of file CGeneralizedCylinder.h.
virtual bool mrpt::opengl::CGeneralizedCylinder::traceRay | ( | const mrpt::poses::CPose3D & | o, | |
float & | dist | |||
) | const [virtual] |
Simulation of ray-trace, given a pose.
Returns true if the ray effectively collisions with the object (returning the distance to the origin of the ray in "dist"), or false in other case. "dist" variable yields undefined behaviour when false is returned
Reimplemented from mrpt::opengl::CRenderizable.
void mrpt::opengl::CGeneralizedCylinder::updateMesh | ( | ) | const [private] |
Definition at line 64 of file CGeneralizedCylinder.h.
bool mrpt::opengl::CGeneralizedCylinder::closed [protected] |
Definition at line 68 of file CGeneralizedCylinder.h.
Definition at line 65 of file CGeneralizedCylinder.h.
std::vector<TQuadrilateral> mrpt::opengl::CGeneralizedCylinder::mesh [mutable, protected] |
Definition at line 66 of file CGeneralizedCylinder.h.
bool mrpt::opengl::CGeneralizedCylinder::meshUpToDate [mutable, protected] |
Definition at line 67 of file CGeneralizedCylinder.h.
Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN:exported at Thu May 21 04:14:55 UTC 2009 |