struct mrpt::gui::CGlCanvasBase::CamaraParams
Overview
#include <mrpt/gui/CGlCanvasBase.h> struct CamaraParams { // fields float cameraPointingX = .0f; float cameraPointingY = .0f; float cameraPointingZ = .0f; float cameraZoomDistance = 40.f; float cameraElevationDeg = 45.f; float cameraAzimuthDeg = 45.f; bool cameraIsProjective = true; float cameraFOV = 30.f; // construction CamaraParams(); // methods void setElevationDeg(float deg); static CamaraParams FromCamera(const mrpt::opengl::CCamera& c); };
Methods
void setElevationDeg(float deg)
Changes elevation, taking care of not going out of the [-90,90] range.
static CamaraParams FromCamera(const mrpt::opengl::CCamera& c)
Converts from a CCamera objects.
[New in MRPT 2.1.5]