qCC_db version 2.13.alpha (Qt) - 31 May 2022
CloudCompare 3D entities
Public Member Functions | Public Attributes | List of all members
ccGLCameraParameters Struct Reference

OpenGL camera parameters. More...

#include <ccGenericGLDisplay.h>

Collaboration diagram for ccGLCameraParameters:
Collaboration graph
[legend]

Public Member Functions

bool project (const CCVector3d &input3D, CCVector3d &output2D, bool *inFrustum=nullptr) const
 Projects a 3D point in 2D (+ normalized 'z' coordinate)
 
bool project (const CCVector3 &input3D, CCVector3d &output2D, bool *inFrustum=nullptr) const
 Projects a 3D point in 2D (+ normalized 'z' coordinate)
 
bool unproject (const CCVector3d &input2D, CCVector3d &output3D) const
 Unprojects a 2D point (+ normalized 'z' coordinate) in 3D.
 
bool unproject (const CCVector3 &input2D, CCVector3d &output3D) const
 Unprojects a 2D point (+ normalized 'z' coordinate) in 3D.
 

Public Attributes

ccGLMatrixd modelViewMat
 Model view matrix (GL_MODELVIEW)
 
ccGLMatrixd projectionMat
 Projection matrix (GL_PROJECTION)
 
int viewport [4]
 Viewport (GL_VIEWPORT)
 
bool perspective
 Perspective mode.
 
float fov_deg
 F.O.V. (in degrees)
 
double pixelSize
 Pixel size (approximate if in perspective mode)
 

Detailed Description

OpenGL camera parameters.


The documentation for this struct was generated from the following file: