ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccGLCameraParameters Struct Reference

OpenGL camera parameters. More...

#include <ecvGenericDisplayTools.h>

Collaboration diagram for ccGLCameraParameters:

Public Member Functions

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

Public Attributes

ccGLMatrixd modelViewMat
 Model view matrix (GL_MODELVIEW) More...
 
ccGLMatrixd projectionMat
 Projection matrix (GL_PROJECTION) More...
 
int viewport [4]
 Viewport (GL_VIEWPORT) More...
 
bool perspective
 Perspective mode. More...
 
float fov_deg
 F.O.V. (in degrees) - perspective mode only. More...
 
float pixelSize
 Pixel size (i.e. zoom) - non perspective mode only. More...
 

Detailed Description

OpenGL camera parameters.

Definition at line 554 of file ecvGenericDisplayTools.h.

Constructor & Destructor Documentation

◆ ccGLCameraParameters()

ccGLCameraParameters::ccGLCameraParameters ( )
inline

Definition at line 555 of file ecvGenericDisplayTools.h.

Member Function Documentation

◆ project() [1/2]

bool ccGLCameraParameters::project ( const CCVector3 input3D,
CCVector3d output2D,
bool *  inFrustum = nullptr 
) const
inline

Projects a 3D point in 2D (+ normalized 'z' coordinate)

Definition at line 569 of file ecvGenericDisplayTools.h.

References Tuple3Tpl< Type >::data().

◆ project() [2/2]

◆ unproject() [1/2]

bool ccGLCameraParameters::unproject ( const CCVector3 input2D,
CCVector3d output3D 
) const
inline

Unprojects a 2D point (+ normalized 'z' coordinate) in 3D.

Definition at line 585 of file ecvGenericDisplayTools.h.

References Tuple3Tpl< Type >::data().

◆ unproject() [2/2]

bool ccGLCameraParameters::unproject ( const CCVector3d input2D,
CCVector3d output3D 
) const
inline

Member Data Documentation

◆ fov_deg

float ccGLCameraParameters::fov_deg

F.O.V. (in degrees) - perspective mode only.

Definition at line 601 of file ecvGenericDisplayTools.h.

Referenced by define_ccGenericDisplayTools(), and ecvDisplayTools::GetGLCameraParameters().

◆ modelViewMat

◆ perspective

bool ccGLCameraParameters::perspective

◆ pixelSize

float ccGLCameraParameters::pixelSize

Pixel size (i.e. zoom) - non perspective mode only.

Definition at line 603 of file ecvGenericDisplayTools.h.

Referenced by define_ccGenericDisplayTools(), ecvDisplayTools::GetGLCameraParameters(), and ccOctree::pointPicking().

◆ projectionMat

ccGLMatrixd ccGLCameraParameters::projectionMat

Projection matrix (GL_PROJECTION)

Definition at line 595 of file ecvGenericDisplayTools.h.

Referenced by define_ccGenericDisplayTools(), ecvDisplayTools::GetGLCameraParameters(), and ecvDisplayTools::RenderText().

◆ viewport

int ccGLCameraParameters::viewport[4]

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