|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
#include <OGLCamera.h>
Public Member Functions | |
| OGLCamera (const QVector3D &_from, const QVector3D &_to, const QVector3D &_up, int w, int h, CameraType eCameraType) | |
| CameraType | cameraType () const |
| void | setCameraType (CameraType eCameraType) |
| void | moveFront () |
| void | moveBack () |
| void | moveUp () |
| void | moveDown () |
| void | moveLeft () |
| void | moveRight () |
| void | move (const QVector3D &_direction) |
| void | moveFront (NxReal _distance) |
| void | moveBack (NxReal _distance) |
| void | moveUp (NxReal _distance) |
| void | moveDown (NxReal _distance) |
| void | moveLeft (NxReal _distance) |
| void | moveRight (NxReal _distance) |
| void | setDistanceStep (NxReal _magnitudeStepUp, NxReal _magnitudeStepFront, NxReal _magnitudeStepLeft) |
| void | setAllAngleStep (NxReal _angle) |
| void | setAngleStep (NxReal _stepAngleUpDown, NxReal _stepAngleLeftRight, NxReal _stepAngleSide) |
| const QVector3D & | from () const |
| void | setFrom (const QVector3D &_from) |
| const QVector3D & | to () const |
| void | setTo (const QVector3D &_to) |
| void | setUp (const QVector3D &_up) |
| void | setFromToUp (const QVector3D &_from, const QVector3D &_to, const QVector3D &_up) |
| const QVector3D & | front () const |
| void | setDistanceFromToLockFrom (NxReal _distanceFromTo) |
| void | setDistanceFromToLockTo (NxReal _distanceFromTo) |
| void | setModeLock (bool _modeLockUpDown, bool _modeLockLeftRight, bool _modeLockSide) |
| void | setSize (int w, int h) |
| void | calculateStepVectors () |
| void | zoom (double zoomFactor) |
| void | azimuth (NxReal _angle) |
| void | elevation (NxReal _angle) |
| void | roll (NxReal _angle) |
| void | resetZoom (int w=-1, int h=-1) |
| void | resetTranslation () |
| void | setTranslation (double x, double y, double z) |
| void | getTranslation (double &x, double &y, double &z) |
| void | resetRotations () |
| void | setDefaultZoomFactor (double defaultZoomFactor) |
| void | getPosition (double &x, double &y, double &z) const |
| const QMatrix4x4 & | viewMatrix () const |
| const QMatrix4x4 & | projectionMatrix () const |
Private Member Functions | |
| void | invalidateProjectionMatrix () const |
| void | invalidateViewMatrix () const |
| void | updateProjectionMatrix () const |
| void | updateViewMatrix () const |
Private Attributes | |
| QVector3D | _from |
| QVector3D | _to |
| QVector3D | _up |
| QVector3D | _left |
| QVector3D | _front |
| QVector3D | stepUp |
| QVector3D | stepLeft |
| QVector3D | stepFront |
| QVector3D | flyTo |
| QVector3D | flyFrom |
| QVector3D | flyFromTo |
| QVector3D | flyUp |
| QVector3D | flyLeft |
| QVector3D | flyFront |
| NxReal | stepAngleUpDown |
| NxReal | stepAngleLeftRight |
| NxReal | stepAngleSide |
| NxReal | distanceFromTo |
| QVector3D | fromTo |
| bool | modeLockUpDown |
| bool | modeLockLeftRight |
| bool | modeLockSide |
| NxReal | magnitudeStepUp |
| NxReal | magnitudeStepFront |
| NxReal | magnitudeStepLeft |
| int | m_w |
| int | m_h |
| double | m_zoomFactor |
| double | m_defaultZoomFactor |
| double | m_angleAz |
| double | m_angleEl |
| double | m_angleRo |
| CameraType | m_eCameraType |
| QVector3D | m_translate |
| bool | _viewMatrixDirty |
| bool | _projectionMatrixDirty |
| QMatrix4x4 | _viewMatrix |
| QMatrix4x4 | _projectionMatrix |
Definition at line 46 of file OGLCamera.h.
| OGLCamera::OGLCamera | ( | const QVector3D & | _from, |
| const QVector3D & | _to, | ||
| const QVector3D & | _up, | ||
| int | w, | ||
| int | h, | ||
| CameraType | eCameraType | ||
| ) |
| void OGLCamera::azimuth | ( | NxReal | _angle | ) |
Definition at line 396 of file OGLCamera.cpp.


| void OGLCamera::calculateStepVectors | ( | ) |
| CameraType OGLCamera::cameraType | ( | ) | const |
| void OGLCamera::elevation | ( | NxReal | _angle | ) |
Definition at line 403 of file OGLCamera.cpp.


| const QVector3D & OGLCamera::from | ( | ) | const |
| const QVector3D & OGLCamera::front | ( | ) | const |
| void OGLCamera::getPosition | ( | double & | x, |
| double & | y, | ||
| double & | z | ||
| ) | const |
| void OGLCamera::getTranslation | ( | double & | x, |
| double & | y, | ||
| double & | z | ||
| ) |
|
inlineprivate |
|
inlineprivate |
| void OGLCamera::move | ( | const QVector3D & | _direction | ) |
Definition at line 97 of file OGLCamera.cpp.


| void OGLCamera::moveBack | ( | ) |
Definition at line 120 of file OGLCamera.cpp.


| void OGLCamera::moveBack | ( | NxReal | _distance | ) |
| void OGLCamera::moveDown | ( | ) |
Definition at line 150 of file OGLCamera.cpp.


| void OGLCamera::moveDown | ( | NxReal | _distance | ) |
| void OGLCamera::moveFront | ( | ) |
Definition at line 105 of file OGLCamera.cpp.


| void OGLCamera::moveFront | ( | NxReal | _distance | ) |
| void OGLCamera::moveLeft | ( | ) |
Definition at line 165 of file OGLCamera.cpp.


| void OGLCamera::moveLeft | ( | NxReal | _distance | ) |
| void OGLCamera::moveRight | ( | ) |
Definition at line 180 of file OGLCamera.cpp.


| void OGLCamera::moveRight | ( | NxReal | _distance | ) |
| void OGLCamera::moveUp | ( | ) |
Definition at line 135 of file OGLCamera.cpp.


| void OGLCamera::moveUp | ( | NxReal | _distance | ) |
| const QMatrix4x4 & OGLCamera::projectionMatrix | ( | ) | const |
Definition at line 567 of file OGLCamera.cpp.


| void OGLCamera::resetRotations | ( | ) |
Definition at line 458 of file OGLCamera.cpp.


| void OGLCamera::resetTranslation | ( | ) |
| void OGLCamera::resetZoom | ( | int | w = -1, |
| int | h = -1 |
||
| ) |
Definition at line 417 of file OGLCamera.cpp.


| void OGLCamera::roll | ( | NxReal | _angle | ) |
Definition at line 410 of file OGLCamera.cpp.


| void OGLCamera::setAllAngleStep | ( | NxReal | _angle | ) |
| void OGLCamera::setAngleStep | ( | NxReal | _stepAngleUpDown, |
| NxReal | _stepAngleLeftRight, | ||
| NxReal | _stepAngleSide | ||
| ) |
Definition at line 256 of file OGLCamera.cpp.
| void OGLCamera::setCameraType | ( | CameraType | eCameraType | ) |
| void OGLCamera::setDefaultZoomFactor | ( | double | defaultZoomFactor | ) |
| void OGLCamera::setDistanceFromToLockFrom | ( | NxReal | _distanceFromTo | ) |
| void OGLCamera::setDistanceFromToLockTo | ( | NxReal | _distanceFromTo | ) |
| void OGLCamera::setFrom | ( | const QVector3D & | _from | ) |
| void OGLCamera::setFromToUp | ( | const QVector3D & | _from, |
| const QVector3D & | _to, | ||
| const QVector3D & | _up | ||
| ) |
Definition at line 296 of file OGLCamera.cpp.


| void OGLCamera::setModeLock | ( | bool | _modeLockUpDown, |
| bool | _modeLockLeftRight, | ||
| bool | _modeLockSide | ||
| ) |
| void OGLCamera::setSize | ( | int | w, |
| int | h | ||
| ) |
Definition at line 78 of file OGLCamera.cpp.


| void OGLCamera::setTo | ( | const QVector3D & | _to | ) |
Definition at line 281 of file OGLCamera.cpp.


| void OGLCamera::setTranslation | ( | double | x, |
| double | y, | ||
| double | z | ||
| ) |
Definition at line 467 of file OGLCamera.cpp.


| void OGLCamera::setUp | ( | const QVector3D & | _up | ) |
| const QVector3D & OGLCamera::to | ( | ) | const |
|
private |
|
private |
| const QMatrix4x4 & OGLCamera::viewMatrix | ( | ) | const |
Definition at line 558 of file OGLCamera.cpp.


| void OGLCamera::zoom | ( | double | zoomFactor | ) |
Definition at line 373 of file OGLCamera.cpp.


|
private |
Definition at line 99 of file OGLCamera.h.
|
private |
Definition at line 103 of file OGLCamera.h.
|
private |
Definition at line 103 of file OGLCamera.h.
|
mutableprivate |
Definition at line 124 of file OGLCamera.h.
|
mutableprivate |
Definition at line 122 of file OGLCamera.h.
|
private |
Definition at line 100 of file OGLCamera.h.
|
private |
Definition at line 103 of file OGLCamera.h.
|
mutableprivate |
Definition at line 123 of file OGLCamera.h.
|
mutableprivate |
Definition at line 121 of file OGLCamera.h.
|
private |
Definition at line 108 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 109 of file OGLCamera.h.
|
private |
Definition at line 116 of file OGLCamera.h.
|
private |
Definition at line 116 of file OGLCamera.h.
|
private |
Definition at line 116 of file OGLCamera.h.
|
private |
Definition at line 116 of file OGLCamera.h.
|
private |
Definition at line 117 of file OGLCamera.h.
|
private |
Definition at line 115 of file OGLCamera.h.
|
private |
Definition at line 118 of file OGLCamera.h.
|
private |
Definition at line 115 of file OGLCamera.h.
|
private |
Definition at line 116 of file OGLCamera.h.
|
private |
Definition at line 113 of file OGLCamera.h.
|
private |
Definition at line 113 of file OGLCamera.h.
|
private |
Definition at line 113 of file OGLCamera.h.
|
private |
Definition at line 111 of file OGLCamera.h.
|
private |
Definition at line 111 of file OGLCamera.h.
|
private |
Definition at line 111 of file OGLCamera.h.
|
private |
Definition at line 106 of file OGLCamera.h.
|
private |
Definition at line 106 of file OGLCamera.h.
|
private |
Definition at line 106 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.
|
private |
Definition at line 105 of file OGLCamera.h.