10 #define opengl_CAxis_H
38 float m_xmin,m_ymin,m_zmin;
39 float m_xmax,m_ymax,m_zmax;
45 void setAxisLimits(
float xmin,
float ymin,
float zmin,
float xmax,
float ymax,
float zmax)
47 m_xmin=xmin; m_ymin=ymin; m_zmin=zmin;
48 m_xmax=xmax; m_ymax=ymax; m_zmax=zmax;
61 static CAxisPtr Create(
62 float xmin,
float ymin,
float zmin,
63 float xmax,
float ymax,
float zmax,
64 float frecuency = 1,
float lineWidth = 3,
bool marks=
false);
68 void render_dl()
const;
77 float xmin=-1.0f,
float ymin=-1.0f,
float zmin=-1.0f,
78 float xmax=1.0f,
float ymax=1.0f,
float zmax=1.0f,
79 float frecuency = 0.25f,
float lineWidth = 3.0f,
bool marks=
false) :
80 m_xmin(xmin),m_ymin(ymin),m_zmin(zmin),
81 m_xmax(xmax),m_ymax(ymax),m_zmax(zmax),
82 m_frecuency(frecuency),
83 m_lineWidth(lineWidth),
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
virtual ~CAxis()
Private, virtual destructor: only can be deleted from smart pointers.
void enableTickMarks(bool v=true)
A renderizable object suitable for rendering with OpenGL's display lists.
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.
#define DEFINE_SERIALIZABLE_PRE_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
This declaration must be inserted in all CSerializable classes definition, before the class declarati...
void setFrequency(float f)
Changes the frequency of the "ticks".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
Draw a 3D world axis, with coordinate marks at some regular interval.
void setLineWidth(float w)
float getLineWidth() const
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)