class mrpt::opengl::CGridPlaneXY
A grid of lines over the XY plane.
See also:
#include <mrpt/opengl/CGridPlaneXY.h> class CGridPlaneXY: public mrpt::opengl::CRenderizableShaderWireFrame { public: // construction 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 ); // methods void setPlaneLimits( float xmin, float xmax, float ymin, float ymax ); void getPlaneLimits( float& xmin, float& xmax, float& ymin, float& ymax ) const; void setPlaneZcoord(float z); float getPlaneZcoord() const; void setGridFrequency(float freq); float getGridFrequency() const; virtual void onUpdateBuffers_Wireframe(); virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const; virtual void render(const RenderContext& rc) const; };
Inherited Members
public: // structs struct RenderContext; struct State; // methods virtual void render(const RenderContext& rc) const = 0; virtual void renderUpdateBuffers() const = 0; virtual shader_list_t requiredShaders() const; virtual void freeOpenGLResources() = 0; virtual void onUpdateBuffers_Wireframe() = 0;
Construction
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.
Methods
virtual void onUpdateBuffers_Wireframe()
Must be implemented in derived classes to update the geometric entities to be drawn in “m_*_buffer” fields.
virtual mrpt::math::TBoundingBoxf internalBoundingBoxLocal() const
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()
virtual void render(const RenderContext& rc) const
Implements the rendering of 3D objects in each class derived from CRenderizable.
This can be called more than once (one per required shader program) if the object registered several shaders.
See also: