Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Public Attributes
mrpt::opengl::gl_utils::TRenderInfo Struct Reference

Detailed Description

Information about the rendering process being issued.

See also
See getCurrentRenderingInfo for more details

Definition at line 34 of file gl_utils.h.

#include <mrpt/opengl/gl_utils.h>

Public Member Functions

void projectPoint (float x, float y, float z, float &proj_x, float &proj_y, float &proj_z_depth) const
 Computes the normalized coordinates (range=[0,1]) on the current rendering viewport of a point with local coordinates (wrt to the current model matrix) of (x,y,z). More...
 
void projectPointPixels (float x, float y, float z, float &proj_x_px, float &proj_y_px, float &proj_z_depth) const
 Exactly like projectPoint but the (x,y) projected coordinates are given in pixels instead of normalized coordinates. More...
 

Public Attributes

int vp_x
 Rendering viewport geometry (in pixels) More...
 
int vp_y
 
int vp_width
 
int vp_height
 
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > proj_matrix
 The 4x4 projection matrix. More...
 
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > model_matrix
 The 4x4 model transformation matrix. More...
 
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > full_matrix
 PROJ * MODEL. More...
 
mrpt::math::TPoint3Df camera_position
 The 3D location of the camera. More...
 

Member Function Documentation

◆ projectPoint()

void mrpt::opengl::gl_utils::TRenderInfo::projectPoint ( float  x,
float  y,
float  z,
float &  proj_x,
float &  proj_y,
float &  proj_z_depth 
) const
inline

Computes the normalized coordinates (range=[0,1]) on the current rendering viewport of a point with local coordinates (wrt to the current model matrix) of (x,y,z).

The output proj_z_depth is the real distance from the eye to the point.

Definition at line 53 of file gl_utils.h.

References full_matrix.

Referenced by projectPointPixels().

Here is the caller graph for this function:

◆ projectPointPixels()

void mrpt::opengl::gl_utils::TRenderInfo::projectPointPixels ( float  x,
float  y,
float  z,
float &  proj_x_px,
float &  proj_y_px,
float &  proj_z_depth 
) const
inline

Exactly like projectPoint but the (x,y) projected coordinates are given in pixels instead of normalized coordinates.

Definition at line 67 of file gl_utils.h.

References projectPoint(), vp_height, and vp_width.

Referenced by mrpt::opengl::COctreePointRenderer< CPointCloudColoured >::octree_recursive_render().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ camera_position

mrpt::math::TPoint3Df mrpt::opengl::gl_utils::TRenderInfo::camera_position

The 3D location of the camera.

Definition at line 45 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo().

◆ full_matrix

Eigen::Matrix<float, 4, 4, Eigen::ColMajor> mrpt::opengl::gl_utils::TRenderInfo::full_matrix

PROJ * MODEL.

Definition at line 43 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo(), and projectPoint().

◆ model_matrix

Eigen::Matrix<float, 4, 4, Eigen::ColMajor> mrpt::opengl::gl_utils::TRenderInfo::model_matrix

The 4x4 model transformation matrix.

Definition at line 41 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo().

◆ proj_matrix

Eigen::Matrix<float, 4, 4, Eigen::ColMajor> mrpt::opengl::gl_utils::TRenderInfo::proj_matrix

The 4x4 projection matrix.

Definition at line 39 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo().

◆ vp_height

int mrpt::opengl::gl_utils::TRenderInfo::vp_height

◆ vp_width

int mrpt::opengl::gl_utils::TRenderInfo::vp_width

◆ vp_x

int mrpt::opengl::gl_utils::TRenderInfo::vp_x

Rendering viewport geometry (in pixels)

Definition at line 37 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo().

◆ vp_y

int mrpt::opengl::gl_utils::TRenderInfo::vp_y

Definition at line 37 of file gl_utils.h.

Referenced by mrpt::opengl::gl_utils::getCurrentRenderingInfo().




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019