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);
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
A grid of lines over the XY plane.
void setGridFrequency(float freq)
void getPlaneLimits(float &xmin, float &xmax, float &ymin, float &ymax) const
virtual void render_dl() const override
Render.
void setLineWidth(float w)
float getGridFrequency() const
virtual ~CGridPlaneXY()
Private, virtual destructor: only can be deleted from smart pointers.
void enableAntiAliasing(bool enable=true)
static Ptr Create(Args &&... args)
float getLineWidth() const
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
void setPlaneLimits(float xmin, float xmax, float ymin, float ymax)
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...
std::shared_ptr< CGridPlaneXY > Ptr
bool isAntiAliasingEnabled() const
float getPlaneZcoord() const
void setPlaneZcoord(float z)
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 ASSERT_(f)
Defines an assertion mechanism.
GLubyte GLubyte GLubyte GLubyte w
The namespace for 3D scene representation and rendering.