10 #ifndef opengl_CGridPlaneXY_H 11 #define opengl_CGridPlaneXY_H 65 float& xmin,
float& xmax,
float& ymin,
float& ymax)
const 97 float xMin,
float xMax,
float yMin,
float yMax,
float z = 0,
98 float frequency = 1,
float lineWidth = 1.3f,
bool antiAliasing =
true);
102 float xMin = -10,
float xMax = 10,
float yMin = -10,
float yMax = 10,
103 float z = 0,
float frequency = 1,
float lineWidth = 1.3f,
104 bool antiAliasing =
true);
void enableAntiAliasing(bool enable=true)
A grid of lines over the XY plane.
virtual void render_dl() const override
Render.
EIGEN_STRONG_INLINE void notifyChange() const
Must be called to notify that the object has changed (so, the display list must be updated) ...
void getBoundingBox(mrpt::math::TPoint3D &bb_min, mrpt::math::TPoint3D &bb_max) const override
Evaluates the bounding box of this object (including possible children) in the coordinate frame of th...
GLubyte GLubyte GLubyte GLubyte w
A renderizable object suitable for rendering with OpenGL's display lists.
void setGridFrequency(float freq)
#define ASSERT_(f)
Defines an assertion mechanism.
float getGridFrequency() const
void setPlaneLimits(float xmin, float xmax, float ymin, float ymax)
CGridPlaneXY(float xMin=-10, float xMax=10, float yMin=-10, float yMax=10, float z=0, float frequency=1, float lineWidth=1.3f, bool antiAliasing=true)
Constructor.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void setPlaneZcoord(float z)
bool isAntiAliasingEnabled() const
The namespace for 3D scene representation and rendering.
float getLineWidth() const
void getPlaneLimits(float &xmin, float &xmax, float &ymin, float &ymax) const
virtual ~CGridPlaneXY()
Private, virtual destructor: only can be deleted from smart pointers.
static Ptr Create(Args &&... args)
float getPlaneZcoord() const
void setLineWidth(float w)