Detailed Description
Draw a 3D world axis, with coordinate marks at some regular interval.
- See also:
- opengl::COpenGLScene
Definition at line 52 of file CAxis.h.
#include <mrpt/opengl/CAxis.h>
List of all members.
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 () |
Member Typedef Documentation
A typedef for the associated smart pointer
Definition at line 54 of file CAxis.h.
Constructor & Destructor Documentation
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] |
Constructor.
Definition at line 94 of file CAxis.h.
virtual mrpt::opengl::CAxis::~CAxis |
( |
) |
[inline, private, virtual] |
Private, virtual destructor: only can be deleted from smart pointers.
Definition at line 107 of file CAxis.h.
Member Function Documentation
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] |
void mrpt::opengl::CAxis::enableTickMarks |
( |
bool |
v = true ) |
[inline] |
float mrpt::opengl::CAxis::getLineWidth |
( |
) |
const [inline] |
void mrpt::opengl::CAxis::render_dl |
( |
) |
const [virtual] |
void mrpt::opengl::CAxis::setAxisLimits |
( |
float |
xmin, |
|
|
float |
ymin, |
|
|
float |
zmin, |
|
|
float |
xmax, |
|
|
float |
ymax, |
|
|
float |
zmax |
|
) |
| [inline] |
void mrpt::opengl::CAxis::setFrequency |
( |
float |
f ) |
[inline] |
void mrpt::opengl::CAxis::setLineWidth |
( |
float |
w ) |
[inline] |
Member Data Documentation