Main MRPT website > C++ reference
MRPT logo
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

#include <mrpt/opengl/gl_utils.h>

List of all members.

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).
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.

Public Attributes

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

Member Function Documentation

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 66 of file gl_utils.h.

References Eigen::internal::y.

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 75 of file gl_utils.h.

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


Member Data Documentation

The 3D location of the camera.

Definition at line 60 of file gl_utils.h.

PROJ * MODEL.

Definition at line 59 of file gl_utils.h.

The 4x4 model transformation matrix.

Definition at line 58 of file gl_utils.h.

The 4x4 projection matrix.

Definition at line 57 of file gl_utils.h.

Rendering viewport geometry (in pixels)

Definition at line 56 of file gl_utils.h.

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

Definition at line 56 of file gl_utils.h.

Definition at line 56 of file gl_utils.h.




Page generated by Doxygen 1.7.5 for MRPT 0.9.5 SVN: at Thu Oct 13 21:25:36 UTC 2011