Go to the documentation of this file.
67 float left,
float right,
float bottom,
float top,
float znear,
81 float x,
float y,
float z,
float& proj_u,
float& proj_v,
82 float& proj_z_depth)
const;
87 float x,
float y,
float z,
float& proj_u_px,
float& proj_v_px,
88 float& proj_depth)
const;
mrpt::math::CMatrixFloat44 mv_matrix
Model-view matrix.
void projectPoint(float x, float y, float z, float &proj_u, float &proj_v, float &proj_z_depth) const
Computes the normalized coordinates (range=[0,1]) on the current rendering viewport of a point with l...
size_t viewport_width
In pixels.
double azimuth
Camera elev & azimuth, in radians.
void computeProjectionMatrix(float zmin, float zmax)
Uses is_projective , vw,vh, etc.
void computeOrthoProjectionMatrix(float left, float right, float bottom, float top, float znear, float zfar)
Especial case for custom parameters of Orthographic projection.
void applyLookAt()
Updates the current p_matrix such that it "looks at" pointing, with up vector "up".
TRenderMatrices()=default
double FOV
Vertical FOV in degrees.
mrpt::math::CMatrixFloat44 p_matrix
Projection matrix, computed by renderNormalScene() from all the parameters above.
mrpt::math::TPoint3D eye
The camera is here.
mrpt::math::TPoint3D pointing
The camera points to here.
Rendering state related to the projection and model-view matrices.
mrpt::math::TPoint3D up
Up vector of the camera.
mrpt::math::CMatrixFloat44 pmv_matrix
Result of p_matrix * mv_matrix.
The namespace for 3D scene representation and rendering.
void projectPointPixels(float x, float y, float z, float &proj_u_px, float &proj_v_px, float &proj_depth) const
Projects a point from global world coordinates into (u,v) pixel coordinates.
bool is_projective
true: projective, false: ortho
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Fri May 15 15:49:54 UTC 2020 | |