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]

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

◆ 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

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

Definition at line 578 of file ecvGenericDisplayTools.h.

References Tuple3Tpl< Type >::data().

Referenced by define_ccGenericDisplayTools(), and qCanupo2DViewDialog::getClickPos().

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

◆ modelViewMat

ccGLMatrixd ccGLCameraParameters::modelViewMat

◆ perspective

bool ccGLCameraParameters::perspective

Perspective mode.

Definition at line 599 of file ecvGenericDisplayTools.h.

Referenced by define_ccGenericDisplayTools().

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

◆ projectionMat

ccGLMatrixd ccGLCameraParameters::projectionMat

Projection matrix (GL_PROJECTION)

Definition at line 595 of file ecvGenericDisplayTools.h.

Referenced by define_ccGenericDisplayTools().

◆ viewport

int ccGLCameraParameters::viewport[4]

Viewport (GL_VIEWPORT)

Definition at line 597 of file ecvGenericDisplayTools.h.

Referenced by ccGraphicalSegmentationTool::doExportSegmentationPolyline().


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