Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions

mrpt::opengl::CAxis Class Reference


Detailed Description

Draw a 3D world axis, with coordinate marks at some regular interval.

See also:
opengl::COpenGLScene
mrpt::opengl::CAxis
preview_CAxis.png

Definition at line 52 of file CAxis.h.

#include <mrpt/opengl/CAxis.h>

Inheritance diagram for mrpt::opengl::CAxis:
Inheritance graph
[legend]

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::CObjectduplicate () const
 Returns a copy of the object, indepently of its class.
static mrpt::utils::CObjectCreateObject ()
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 const mrpt::utils::TRuntimeClassId* mrpt::opengl::CAxis::_GetBaseClass ( ) [static, protected]
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]

Class factory.

Definition at line 79 of file CAxis.h.

References mrpt::opengl::CAxis.

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().

float mrpt::opengl::CAxis::getLineWidth ( ) const [inline]

Definition at line 73 of file CAxis.h.

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]
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().


Member Data Documentation

Definition at line 54 of file CAxis.h.

Definition at line 54 of file CAxis.h.

Definition at line 54 of file CAxis.h.

Definition at line 58 of file CAxis.h.

Definition at line 59 of file CAxis.h.

bool mrpt::opengl::CAxis::m_marks [protected]

Definition at line 60 of file CAxis.h.

float mrpt::opengl::CAxis::m_xmax [protected]

Definition at line 57 of file CAxis.h.

float mrpt::opengl::CAxis::m_xmin [protected]

Definition at line 56 of file CAxis.h.

float mrpt::opengl::CAxis::m_ymax [protected]

Definition at line 57 of file CAxis.h.

float mrpt::opengl::CAxis::m_ymin [protected]

Definition at line 56 of file CAxis.h.

float mrpt::opengl::CAxis::m_zmax [protected]

Definition at line 57 of file CAxis.h.

float mrpt::opengl::CAxis::m_zmin [protected]

Definition at line 56 of file CAxis.h.




Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN: at Sat Mar 26 06:40:17 UTC 2011