Class CGridPlaneXY
Defined in File CGridPlaneXY.h
Inheritance Relationships
Base Types
public mrpt::viz::CVisualObject(Class CVisualObject)public mrpt::viz::VisualObjectParams_Lines(Class VisualObjectParams_Lines)
Class Documentation
-
class CGridPlaneXY : public virtual mrpt::viz::CVisualObject, public mrpt::viz::VisualObjectParams_Lines
A grid of lines over the XY plane.

See also
opengl::Scene
Public Functions
-
inline void setPlaneLimits(float xmin, float xmax, float ymin, float ymax)
-
inline void getPlaneLimits(float &xmin, float &xmax, float &ymin, float &ymax) const
-
inline void setPlaneZcoord(float z)
-
inline float getPlaneZcoord() const
-
inline void setGridFrequency(float freq)
-
inline float getGridFrequency() const
-
virtual void updateBuffers() const override
Called by the rendering system to update internal geometry buffers.
Derived classes should override this to populate their data buffers (triangles, points, lines) when the object geometry changes.
This is called automatically when hasToUpdateBuffers() returns true, which happens after notifyChange() was called.
The base implementation does nothing; derived classes should override.
Note
Thread safety: implementations should lock the appropriate mutexes when writing to shared buffers.
-
virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const override
Must be implemented by derived classes to provide the updated bounding box in the object local frame of coordinates. This will be called only once after each time the derived class reports to notifyChange() that the object geometry changed.
See also
getBoundingBox(), getBoundingBoxLocal(), getBoundingBoxLocalf()
-
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
-
~CGridPlaneXY() override = default
Private, virtual destructor: only can be deleted from smart pointers
-
inline void setPlaneLimits(float xmin, float xmax, float ymin, float ymax)