A 2D plane in the XY plane with a texture image. More...
#include <mrpt/opengl/CTexturedPlane.h>


Public Member Functions | |
| void | setTextureCornerCoords (float tex_x_min, float tex_x_max, float tex_y_min, float tex_y_max) |
| Set the texture coordinates of the four corners (in the range 0-1). | |
| void | setPlaneCorners (float xMin, float xMax, float yMin, float yMax) |
| Set the coordinates of the four corners that define the plane on the XY plane. | |
| void | render () const |
| Render. | |
| virtual bool | traceRay (const mrpt::poses::CPose3D &o, double &dist) const |
| Ray trace. | |
Static Public Member Functions | |
| static CTexturedPlanePtr | Create (float x_min, float x_max, float y_min, float y_max) |
| Class factory. | |
Protected Member Functions | |
| void | updatePoly () const |
| void | unloadTexture () |
Protected Attributes | |
| float | m_tex_x_min |
| float | m_tex_x_max |
| float | m_tex_y_min |
| float | m_tex_y_max |
| float | m_xMin |
| float | m_xMax |
| float | m_yMin |
| float | m_yMax |
| bool | polygonUpToDate |
| std::vector < mrpt::math::TPolygonWithPlane > | tmpPoly |
| Used for ray-tracing. | |
Private Member Functions | |
| CTexturedPlane (float x_min=-1, float x_max=1, float y_min=-1, float y_max=1) | |
| Constructor. | |
| virtual | ~CTexturedPlane () |
| Private, virtual destructor: only can be deleted from smart pointers. | |
A 2D plane in the XY plane with a texture image.
Definition at line 45 of file CTexturedPlane.h.
| mrpt::opengl::CTexturedPlane::CTexturedPlane | ( | float | x_min = -1, |
|
| float | x_max = 1, |
|||
| float | y_min = -1, |
|||
| float | y_max = 1 | |||
| ) | [private] |
Constructor.
| virtual mrpt::opengl::CTexturedPlane::~CTexturedPlane | ( | ) | [private, virtual] |
Private, virtual destructor: only can be deleted from smart pointers.
| static CTexturedPlanePtr mrpt::opengl::CTexturedPlane::Create | ( | float | x_min, | |
| float | x_max, | |||
| float | y_min, | |||
| float | y_max | |||
| ) | [inline, static] |
Class factory.
Definition at line 83 of file CTexturedPlane.h.
References mrpt::opengl::CTexturedPlane.
| void mrpt::opengl::CTexturedPlane::render | ( | ) | const [virtual] |
Render.
Implements mrpt::opengl::CRenderizable.
| void mrpt::opengl::CTexturedPlane::setPlaneCorners | ( | float | xMin, | |
| float | xMax, | |||
| float | yMin, | |||
| float | yMax | |||
| ) | [inline] |
Set the coordinates of the four corners that define the plane on the XY plane.
Definition at line 71 of file CTexturedPlane.h.
| void mrpt::opengl::CTexturedPlane::setTextureCornerCoords | ( | float | tex_x_min, | |
| float | tex_x_max, | |||
| float | tex_y_min, | |||
| float | tex_y_max | |||
| ) | [inline] |
Set the texture coordinates of the four corners (in the range 0-1).
Definition at line 62 of file CTexturedPlane.h.
| virtual bool mrpt::opengl::CTexturedPlane::traceRay | ( | const mrpt::poses::CPose3D & | o, | |
| double & | dist | |||
| ) | const [virtual] |
Ray trace.
Reimplemented from mrpt::opengl::CRenderizable.
| void mrpt::opengl::CTexturedPlane::unloadTexture | ( | ) | [protected] |
Reimplemented from mrpt::opengl::CTexturedObject.
| void mrpt::opengl::CTexturedPlane::updatePoly | ( | ) | const [protected] |
float mrpt::opengl::CTexturedPlane::m_tex_x_max [mutable, protected] |
Definition at line 49 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_tex_x_min [mutable, protected] |
Definition at line 49 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_tex_y_max [mutable, protected] |
Definition at line 50 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_tex_y_min [mutable, protected] |
Definition at line 50 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_xMax [protected] |
Definition at line 52 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_xMin [protected] |
Definition at line 52 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_yMax [protected] |
Definition at line 53 of file CTexturedPlane.h.
float mrpt::opengl::CTexturedPlane::m_yMin [protected] |
Definition at line 53 of file CTexturedPlane.h.
bool mrpt::opengl::CTexturedPlane::polygonUpToDate [mutable, protected] |
Definition at line 55 of file CTexturedPlane.h.
std::vector<mrpt::math::TPolygonWithPlane> mrpt::opengl::CTexturedPlane::tmpPoly [mutable, protected] |
Used for ray-tracing.
Definition at line 56 of file CTexturedPlane.h.
| Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010 |