10#ifndef opengl_CGridPlaneXZ_H
11#define opengl_CGridPlaneXZ_H
56 m_xMin=xmin; m_xMax = xmax;
57 m_zMin=zmin; m_zMax = zmax;
63 xmin=m_xMin; xmax=m_xMax;
64 zmin=m_zMin; zmax=m_zMax;
83 float lineWidth = 1.3f,
84 bool antiAliasing =
true
102 float lineWidth = 1.3f,
103 bool antiAliasing = true
#define DEFINE_SERIALIZABLE_POST_CUSTOM_BASE_LINKAGE(class_name, base_name, _LINKAGE_)
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
#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...
A grid of lines over the XZ plane.
void setPlaneLimits(float xmin, float xmax, float zmin, float zmax)
void render_dl() const MRPT_OVERRIDE
Render.
void setGridFrequency(float freq)
float getPlaneYcoord() const
static CGridPlaneXZPtr Create(float xMin=-10, float xMax=10, float zMin=-10, float zMax=10, float y=0, float frequency=1, float lineWidth=1.3f, bool antiAliasing=true)
Class factory
void setPlaneYcoord(float y)
float getLineWidth() const
void setLineWidth(float w)
void enableAntiAliasing(bool enable=true)
void getPlaneLimits(float &xmin, float &xmax, float &zmin, float &zmax) const
bool isAntiAliasingEnabled() const
float getGridFrequency() const
A renderizable object suitable for rendering with OpenGL's display lists.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated)
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
struct OPENGL_IMPEXP CGridPlaneXZPtr
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.