207         float new_cameraPointingX, 
float new_cameraPointingY,
   208         float new_cameraPointingZ, 
float new_cameraZoomDistance,
   209         float new_cameraElevationDeg, 
float new_cameraAzimuthDeg)
   239     virtual void renderError(
const std::string& err_msg) = 0;
   241     virtual double renderCanvas(
int width = -1, 
int height = -1);
   271     virtual void renderError(
const std::string& e) 
override;
 float getCameraPointingX() const
Returns the x pointing of the camera See also setCameraPointing(float, float, float) ...
 
virtual void preRender()=0
 
virtual void preRender() override
 
virtual void setCameraProjective(bool is)
 
float getClearColorR() const
 
void updateOrbitCamera(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the elevation...
 
CamaraParams cameraParams() const
Returns a copy of CamaraParams See also getRefCameraParams(), setCameraParams(const CamaraParams &) ...
 
void setElevationDeg(float deg)
 
virtual void postRender()=0
 
void setMaximumZoom(float zoom)
Sets the maximum of the zoom See also setMinimumZoom(float) 
 
float getZoomDistance() const
Returns a zoom See also setZoomDistance(float) 
 
mrpt::vision::TStereoCalibParams params
 
mrpt::opengl::COpenGLScene::Ptr m_openGLScene
 
virtual void setCameraParams(const CamaraParams ¶ms)
Sets the CamaraParams See also cameraParams(), getRefCameraParams() 
 
virtual void swapBuffers() override
 
virtual void postRender() override
 
virtual void swapBuffers()=0
 
void resizeViewport(int w, int h)
Calls the glViewport function. 
 
const CamaraParams & getRefCameraParams() const
Returns a reference to CamaraParams See also cameraParams(), setCameraParams(const CamaraParams &) ...
 
void setMousePos(int x, int y)
Saves the click position of the mouse See also setMouseClicked(bool) 
 
virtual void setElevationDegrees(float ang)
Saves the degrees of the elevation camera See also getElevationDegrees() 
 
virtual void OnUserManuallyMovesCamera(float new_cameraPointingX, float new_cameraPointingY, float new_cameraPointingZ, float new_cameraZoomDistance, float new_cameraElevationDeg, float new_cameraAzimuthDeg)
Overload this method to limit the capabilities of the user to move the camera using the mouse...
 
virtual void renderError(const std::string &e) override
 
void setOpenGLSceneRef(mrpt::opengl::COpenGLScene::Ptr scene)
 
virtual void setAzimuthDegrees(float ang)
Saves the degrees of the azimuth camera See also getAzimuthDegrees() 
 
virtual double renderCanvas(int width=-1, int height=-1)
 
virtual void setCameraPointing(float pointX, float pointY, float pointZ)
Saves the pointing of the camera See also getCameraPointingX(), getCameraPointingY(), getCameraPointingZ() 
 
CGlCanvasBaseHeadless()=default
 
CamaraParams m_cameraParams
 
void clearColors()
Calls the glClearColor function See also setClearColors(float, float, float, float) ...
 
float getCameraPointingZ() const
Returns the z pointing of the camera See also setCameraPointing(float, float, float) ...
 
virtual void setCameraFOV(float FOV)
 
void setClearColors(float r, float g, float b, float a=1.0f)
Sets the RGBA colors for glClearColor See also clearColors(), getClearColorR(), getClearColorG(),getClearColorB(), getClearColorA() 
 
void getLastMousePosition(int &x, int &y) const
 
float getClearColorB() const
 
virtual void setZoomDistance(float zoom)
Saves camera zooming See also getZoomDistance() 
 
bool getUseCameraFromScene() const
See also void setUseCameraFromScene(bool) 
 
float getAzimuthDegrees() const
Returns a azimuth degrees See also setAzimuthDegrees(float) 
 
virtual ~CGlCanvasBaseHeadless() override=default
 
float getCameraPointingY() const
Returns the y pointing of the camera See also setCameraPointing(float, float, float) ...
 
mrpt::opengl::COpenGLScene::Ptr & getOpenGLSceneRef()
At constructor an empty scene is created. 
 
void setMouseClicked(bool is)
Sets the property mouseClicked By default, this property is false. 
 
void updateLastPos(int x, int y)
Sets the last mouse position. 
 
float getElevationDegrees() const
Returns a elevation degrees See also setElevationDegrees(float) 
 
void updateRotate(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the elevation...
 
void setMinimumZoom(float zoom)
Sets the minimum of the zoom See also setMaximumZoom(float) 
 
The namespace for 3D scene representation and rendering. 
 
virtual void renderError(const std::string &err_msg)=0
 
float getClearColorG() const
 
void setUseCameraFromScene(bool is)
If set to true (default=false), the cameraPointingX,... 
 
static Ptr Create(Args &&... args)
 
Classes for creating GUI windows for 2D and 3D visualization. 
 
bool isCameraProjective() const
 
A headless dummy implementation of CGlCanvasBase: can be used to keep track of user UI mouse events a...
 
This base class implements a working with opengl::Camera and a OpenGL canvas, and it's used in gui::C...
 
A camera: if added to a scene, the viewpoint defined by this camera will be used instead of the camer...
 
static float SENSIBILITY_DEG_PER_PIXEL
 
void updatePan(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the pointing ...
 
mrpt::opengl::CCamera & updateCameraParams(mrpt::opengl::CCamera &cam) const
This function gets a reference to mrpt::opengl::CCamera and updates the camera parameters(pointing, zoom, azimuth, elevation, IsProjective, FOV) 
 
float getClearColorA() const
 
void updateZoom(CamaraParams ¶ms, int x, int y) const
This function for the mouse event It gets a reference to CamaraParams, x, y and updates the zoom of t...