Draw a 3D world axis, with coordinate marks at some regular interval.
#include <mrpt/opengl/CAxis.h>
Public Member Functions | |
void | setAxisLimits (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax) |
void | setFrequency (float f) |
Changes the frequency of the "ticks". | |
void | setLineWidth (float w) |
float | getLineWidth () const |
void | enableTickMarks (bool v=true) |
void | render_dl () const |
Render. | |
Static Public Member Functions | |
static CAxisPtr | Create (float xmin, float ymin, float zmin, float xmax, float ymax, float zmax, float frecuency=1, float lineWidth=3, bool marks=false) |
Class factory. | |
Protected Attributes | |
float | m_xmin |
float | m_ymin |
float | m_zmin |
float | m_xmax |
float | m_ymax |
float | m_zmax |
float | m_frecuency |
float | m_lineWidth |
bool | m_marks |
Private Member Functions | |
CAxis (float xmin=-1.0f, float ymin=-1.0f, float zmin=-1.0f, float xmax=1.0f, float ymax=1.0f, float zmax=1.0f, float frecuency=0.25f, float lineWidth=3.0f, bool marks=false) | |
Constructor. | |
virtual | ~CAxis () |
Private, virtual destructor: only can be deleted from smart pointers. | |
RTTI stuff | |
typedef CAxisPtr | SmartPtr |
static mrpt::utils::CLASSINIT | _init_CAxis |
static mrpt::utils::TRuntimeClassId | classCAxis |
static const mrpt::utils::TRuntimeClassId * | classinfo |
static const mrpt::utils::TRuntimeClassId * | _GetBaseClass () |
virtual const mrpt::utils::TRuntimeClassId * | GetRuntimeClass () const |
Returns information about the class of an object in runtime. | |
virtual mrpt::utils::CObject * | duplicate () const |
Returns a copy of the object, indepently of its class. | |
static mrpt::utils::CObject * | CreateObject () |
static CAxisPtr | Create () |
mrpt::opengl::CAxis::CAxis | ( | float | xmin = -1.0f , |
float | ymin = -1.0f , |
||
float | zmin = -1.0f , |
||
float | xmax = 1.0f , |
||
float | ymax = 1.0f , |
||
float | zmax = 1.0f , |
||
float | frecuency = 0.25f , |
||
float | lineWidth = 3.0f , |
||
bool | marks = false |
||
) | [inline, private] |
virtual mrpt::opengl::CAxis::~CAxis | ( | ) | [inline, private, virtual] |
static const mrpt::utils::TRuntimeClassId* mrpt::opengl::CAxis::_GetBaseClass | ( | ) | [static, protected] |
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
static CAxisPtr mrpt::opengl::CAxis::Create | ( | ) | [static] |
static CAxisPtr mrpt::opengl::CAxis::Create | ( | float | xmin, |
float | ymin, | ||
float | zmin, | ||
float | xmax, | ||
float | ymax, | ||
float | zmax, | ||
float | frecuency = 1 , |
||
float | lineWidth = 3 , |
||
bool | marks = false |
||
) | [inline, static] |
static mrpt::utils::CObject* mrpt::opengl::CAxis::CreateObject | ( | ) | [static] |
virtual mrpt::utils::CObject* mrpt::opengl::CAxis::duplicate | ( | ) | const [virtual] |
Returns a copy of the object, indepently of its class.
Implements mrpt::utils::CObject.
void mrpt::opengl::CAxis::enableTickMarks | ( | bool | v = true | ) | [inline] |
Definition at line 75 of file CAxis.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
virtual const mrpt::utils::TRuntimeClassId* mrpt::opengl::CAxis::GetRuntimeClass | ( | ) | const [virtual] |
Returns information about the class of an object in runtime.
Reimplemented from mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CAxis::render_dl | ( | ) | const [virtual] |
Render.
Implements mrpt::opengl::CRenderizableDisplayList.
void mrpt::opengl::CAxis::setAxisLimits | ( | float | xmin, |
float | ymin, | ||
float | zmin, | ||
float | xmax, | ||
float | ymax, | ||
float | zmax | ||
) | [inline] |
Definition at line 63 of file CAxis.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CAxis::setFrequency | ( | float | f | ) | [inline] |
Changes the frequency of the "ticks".
Definition at line 70 of file CAxis.h.
References ASSERT_, and mrpt::opengl::CRenderizableDisplayList::notifyChange().
void mrpt::opengl::CAxis::setLineWidth | ( | float | w | ) | [inline] |
Definition at line 72 of file CAxis.h.
References mrpt::opengl::CRenderizableDisplayList::notifyChange().
mrpt::utils::CLASSINIT mrpt::opengl::CAxis::_init_CAxis [static, protected] |
const mrpt::utils::TRuntimeClassId* mrpt::opengl::CAxis::classinfo [static] |
float mrpt::opengl::CAxis::m_frecuency [protected] |
float mrpt::opengl::CAxis::m_lineWidth [protected] |
bool mrpt::opengl::CAxis::m_marks [protected] |
float mrpt::opengl::CAxis::m_xmax [protected] |
float mrpt::opengl::CAxis::m_xmin [protected] |
float mrpt::opengl::CAxis::m_ymax [protected] |
float mrpt::opengl::CAxis::m_ymin [protected] |
float mrpt::opengl::CAxis::m_zmax [protected] |
float mrpt::opengl::CAxis::m_zmin [protected] |
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011 |