MRPT logo

mrpt::opengl::CAxis Class Reference

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

#include <mrpt/opengl/CAxis.h>

Inheritance diagram for mrpt::opengl::CAxis:

mrpt::opengl::CRenderizable mrpt::utils::CSerializable

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

Static Public Member Functions

static CAxisPtr Create (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)
 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.


Detailed Description

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

See also:
opengl::COpenGLScene

Definition at line 45 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 86 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 99 of file CAxis.h.


Member Function Documentation

static CAxisPtr mrpt::opengl::CAxis::Create ( 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, static]

Class factory.

Definition at line 71 of file CAxis.h.

References mrpt::opengl::CAxis.

void mrpt::opengl::CAxis::enableTickMarks ( bool  v = true  )  [inline]

Definition at line 67 of file CAxis.h.

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

Definition at line 65 of file CAxis.h.

void mrpt::opengl::CAxis::render (  )  const [virtual]

Render.

Implements mrpt::opengl::CRenderizable.

void mrpt::opengl::CAxis::setAxisLimits ( float  xmin,
float  ymin,
float  zmin,
float  xmax,
float  ymax,
float  zmax 
) [inline]

Definition at line 56 of file CAxis.h.

void mrpt::opengl::CAxis::setFrequency ( float  f  )  [inline]

Changes the frequency of the "ticks".

Definition at line 62 of file CAxis.h.

References ASSERT_.

void mrpt::opengl::CAxis::setLineWidth ( float  w  )  [inline]

Definition at line 64 of file CAxis.h.


Member Data Documentation

Definition at line 51 of file CAxis.h.

Definition at line 52 of file CAxis.h.

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

Definition at line 53 of file CAxis.h.

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

Definition at line 50 of file CAxis.h.

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

Definition at line 49 of file CAxis.h.

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

Definition at line 50 of file CAxis.h.

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

Definition at line 49 of file CAxis.h.

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

Definition at line 50 of file CAxis.h.

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

Definition at line 49 of file CAxis.h.




Page generated by Doxygen 1.5.9 for MRPT 0.6.5 SVN:exported at Thu May 21 04:14:55 UTC 2009