Code_TYMPAN
4.2.0
Industrial site acoustic simulation
|
#include <OGLCamera.h>
Public Member Functions | |
OGLCamera (NxReal *_from, NxReal *_to, NxReal *_up, int w, int h, CameraType eCameraType) | |
void | setCameraType (CameraType eCameraType) |
void | lookAt () |
void | moveFront () |
void | moveBack () |
void | moveUp () |
void | moveDown () |
void | moveLeft () |
void | moveRight () |
void | rotateUpLockSrc () |
void | rotateDownLockSrc () |
void | rotateUpLockSrcKeepUpAndFront () |
void | rotateDownLockSrcKeepUpAndFront () |
void | rotateLeftLockSrc () |
void | rotateRightLockSrc () |
void | rotateUpLockDst () |
void | rotateDownLockDst () |
void | rotateLeftLockDst () |
void | rotateRightLockDst () |
void | rotateSideLeft () |
void | rotateSideRight () |
void | move (NxReal *_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 | rotateUpLockSrc (NxReal _angle) |
void | rotateDownLockSrc (NxReal _angle) |
void | rotateUpLockSrcKeepUpAndFront (NxReal _angle) |
void | rotateDownLockSrcKeepUpAndFront (NxReal _angle) |
void | rotateLeftLockSrc (NxReal _angle) |
void | rotateRightLockSrc (NxReal _angle) |
void | rotateUpLockDst (NxReal _angle) |
void | rotateDownLockDst (NxReal _angle) |
void | rotateLeftLockDst (NxReal _angle) |
void | rotateRightLockDst (NxReal _angle) |
void | rotateSideLeft (NxReal _angle) |
void | rotateSideRight (NxReal _angle) |
void | setDistanceStep (NxReal _magnitudeStepUp, NxReal _magnitudeStepFront, NxReal _magnitudeStepLeft) |
void | setAllAngleStep (NxReal _angle) |
void | setAngleStep (NxReal _stepAngleUpDown, NxReal _stepAngleLeftRight, NxReal _stepAngleSide) |
void | setFrom (NxReal *_from) |
void | setTo (NxReal *_to) |
void | setUp (NxReal *_up) |
void | setFromToUp (NxReal *_from, NxReal *_to, NxReal *_up) |
void | setFromToUp () |
void | setDistanceFromToLockFrom (NxReal _distanceFromTo) |
void | setDistanceFromToLockTo (NxReal _distanceFromTo) |
void | setModeLock (bool _modeLockUpDown, bool _modeLockLeftRight, bool _modeLockSide) |
void | setMinMaxCurrentUpDown (NxReal _minUpDown, NxReal _maxUpDown, NxReal _currentUpDown) |
void | setMinMaxCurrentLeftRight (NxReal _minLeftRight, NxReal _maxLeftRight, NxReal _currentLeftRight) |
void | setMinMaxCurrentSide (NxReal _minSide, NxReal _maxSide, NxReal _currentSide) |
void | setAllMinMaxCurrent (NxReal _angle) |
void | setSize (int w, int h) |
void | calculateStepVectors () |
NxVec3 | getCenter (int sizeX, int sizeY) |
void | getViewPort (double *vp) |
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) |
Static Public Member Functions | |
static NxVec3 | displayToWorld (NxVec3 display) |
static NxVec3 | worldToDisplay (NxVec3 world) |
Definition at line 39 of file OGLCamera.h.
OGLCamera::OGLCamera | ( | NxReal * | _from, |
NxReal * | _to, | ||
NxReal * | _up, | ||
int | w, | ||
int | h, | ||
CameraType | eCameraType | ||
) |
void OGLCamera::azimuth | ( | NxReal | _angle | ) |
Definition at line 768 of file OGLCamera.cpp.
void OGLCamera::calculateStepVectors | ( | ) |
Definition at line 657 of file OGLCamera.cpp.
void OGLCamera::elevation | ( | NxReal | _angle | ) |
Definition at line 774 of file OGLCamera.cpp.
NxVec3 OGLCamera::getCenter | ( | int | sizeX, |
int | sizeY | ||
) |
void OGLCamera::getPosition | ( | double & | x, |
double & | y, | ||
double & | z | ||
) |
void OGLCamera::getTranslation | ( | double & | x, |
double & | y, | ||
double & | z | ||
) |
void OGLCamera::getViewPort | ( | double * | vp | ) |
void OGLCamera::lookAt | ( | ) |
Definition at line 78 of file OGLCamera.cpp.
void OGLCamera::move | ( | NxReal * | _direction | ) |
Definition at line 136 of file OGLCamera.cpp.
void OGLCamera::moveBack | ( | ) |
Definition at line 156 of file OGLCamera.cpp.
void OGLCamera::moveBack | ( | NxReal | _distance | ) |
Definition at line 374 of file OGLCamera.cpp.
void OGLCamera::moveDown | ( | ) |
Definition at line 184 of file OGLCamera.cpp.
void OGLCamera::moveDown | ( | NxReal | _distance | ) |
Definition at line 362 of file OGLCamera.cpp.
void OGLCamera::moveFront | ( | ) |
Definition at line 142 of file OGLCamera.cpp.
void OGLCamera::moveFront | ( | NxReal | _distance | ) |
Definition at line 368 of file OGLCamera.cpp.
void OGLCamera::moveLeft | ( | ) |
Definition at line 198 of file OGLCamera.cpp.
void OGLCamera::moveLeft | ( | NxReal | _distance | ) |
Definition at line 380 of file OGLCamera.cpp.
void OGLCamera::moveRight | ( | ) |
Definition at line 212 of file OGLCamera.cpp.
void OGLCamera::moveRight | ( | NxReal | _distance | ) |
Definition at line 386 of file OGLCamera.cpp.
void OGLCamera::moveUp | ( | ) |
Definition at line 170 of file OGLCamera.cpp.
void OGLCamera::moveUp | ( | NxReal | _distance | ) |
Definition at line 356 of file OGLCamera.cpp.
void OGLCamera::resetRotations | ( | ) |
Definition at line 824 of file OGLCamera.cpp.
void OGLCamera::resetTranslation | ( | ) |
void OGLCamera::resetZoom | ( | int | w = -1 , |
int | h = -1 |
||
) |
Definition at line 786 of file OGLCamera.cpp.
void OGLCamera::roll | ( | NxReal | _angle | ) |
Definition at line 780 of file OGLCamera.cpp.
void OGLCamera::rotateDownLockDst | ( | ) |
void OGLCamera::rotateDownLockDst | ( | NxReal | _angle | ) |
void OGLCamera::rotateDownLockSrc | ( | ) |
void OGLCamera::rotateDownLockSrc | ( | NxReal | _angle | ) |
void OGLCamera::rotateDownLockSrcKeepUpAndFront | ( | ) |
void OGLCamera::rotateDownLockSrcKeepUpAndFront | ( | NxReal | _angle | ) |
void OGLCamera::rotateLeftLockDst | ( | ) |
void OGLCamera::rotateLeftLockDst | ( | NxReal | _angle | ) |
void OGLCamera::rotateLeftLockSrc | ( | ) |
void OGLCamera::rotateLeftLockSrc | ( | NxReal | _angle | ) |
void OGLCamera::rotateRightLockDst | ( | ) |
void OGLCamera::rotateRightLockDst | ( | NxReal | _angle | ) |
void OGLCamera::rotateRightLockSrc | ( | ) |
void OGLCamera::rotateRightLockSrc | ( | NxReal | _angle | ) |
void OGLCamera::rotateSideLeft | ( | ) |
void OGLCamera::rotateSideLeft | ( | NxReal | _angle | ) |
void OGLCamera::rotateSideRight | ( | ) |
void OGLCamera::rotateSideRight | ( | NxReal | _angle | ) |
void OGLCamera::rotateUpLockDst | ( | ) |
void OGLCamera::rotateUpLockDst | ( | NxReal | _angle | ) |
void OGLCamera::rotateUpLockSrc | ( | ) |
void OGLCamera::rotateUpLockSrc | ( | NxReal | _angle | ) |
void OGLCamera::rotateUpLockSrcKeepUpAndFront | ( | ) |
void OGLCamera::rotateUpLockSrcKeepUpAndFront | ( | NxReal | _angle | ) |
void OGLCamera::setAllAngleStep | ( | NxReal | _angle | ) |
void OGLCamera::setAllMinMaxCurrent | ( | NxReal | _angle | ) |
Definition at line 643 of file OGLCamera.cpp.
void OGLCamera::setAngleStep | ( | NxReal | _stepAngleUpDown, |
NxReal | _stepAngleLeftRight, | ||
NxReal | _stepAngleSide | ||
) |
Definition at line 547 of file OGLCamera.cpp.
void OGLCamera::setCameraType | ( | CameraType | eCameraType | ) |
Definition at line 131 of file OGLCamera.cpp.
void OGLCamera::setDefaultZoomFactor | ( | double | defaultZoomFactor | ) |
void OGLCamera::setDistanceFromToLockFrom | ( | NxReal | _distanceFromTo | ) |
Definition at line 601 of file OGLCamera.cpp.
void OGLCamera::setDistanceFromToLockTo | ( | NxReal | _distanceFromTo | ) |
Definition at line 608 of file OGLCamera.cpp.
void OGLCamera::setFrom | ( | NxReal * | _from | ) |
Definition at line 580 of file OGLCamera.cpp.
void OGLCamera::setFromToUp | ( | ) |
Definition at line 596 of file OGLCamera.cpp.
void OGLCamera::setMinMaxCurrentLeftRight | ( | NxReal | _minLeftRight, |
NxReal | _maxLeftRight, | ||
NxReal | _currentLeftRight | ||
) |
Definition at line 629 of file OGLCamera.cpp.
Definition at line 636 of file OGLCamera.cpp.
void OGLCamera::setMinMaxCurrentUpDown | ( | NxReal | _minUpDown, |
NxReal | _maxUpDown, | ||
NxReal | _currentUpDown | ||
) |
Definition at line 622 of file OGLCamera.cpp.
void OGLCamera::setModeLock | ( | bool | _modeLockUpDown, |
bool | _modeLockLeftRight, | ||
bool | _modeLockSide | ||
) |
void OGLCamera::setSize | ( | int | w, |
int | h | ||
) |
void OGLCamera::setTo | ( | NxReal * | _to | ) |
Definition at line 567 of file OGLCamera.cpp.
void OGLCamera::setTranslation | ( | double | x, |
double | y, | ||
double | z | ||
) |
Definition at line 832 of file OGLCamera.cpp.
void OGLCamera::setUp | ( | NxReal * | _up | ) |
void OGLCamera::zoom | ( | double | zoomFactor | ) |
Definition at line 747 of file OGLCamera.cpp.
NxReal OGLCamera::cosLeftRight |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::cosSide |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::cosUpDown |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::currentLeftRight |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::currentSide |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::currentUpDown |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::distanceFromTo |
Definition at line 144 of file OGLCamera.h.
NxVec3 OGLCamera::flyFrom |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::flyFromTo |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::flyFront |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::flyLeft |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::flyTo |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::flyUp |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::from |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::fromTo |
Definition at line 145 of file OGLCamera.h.
NxVec3 OGLCamera::front |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::left |
Definition at line 117 of file OGLCamera.h.
double OGLCamera::m_angleAz |
Definition at line 165 of file OGLCamera.h.
double OGLCamera::m_angleEl |
Definition at line 165 of file OGLCamera.h.
double OGLCamera::m_angleRo |
Definition at line 165 of file OGLCamera.h.
double OGLCamera::m_defaultZoomFactor |
Definition at line 165 of file OGLCamera.h.
CameraType OGLCamera::m_eCameraType |
Definition at line 166 of file OGLCamera.h.
int OGLCamera::m_h |
Definition at line 164 of file OGLCamera.h.
NxVec3 OGLCamera::m_translate |
Definition at line 167 of file OGLCamera.h.
int OGLCamera::m_w |
Definition at line 164 of file OGLCamera.h.
double OGLCamera::m_zoomFactor |
Definition at line 165 of file OGLCamera.h.
NxReal OGLCamera::magnitudeStepFront |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::magnitudeStepLeft |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::magnitudeStepUp |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::maxLeftRight |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::maxSide |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::maxUpDown |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::minLeftRight |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::minSide |
Definition at line 151 of file OGLCamera.h.
NxReal OGLCamera::minUpDown |
Definition at line 151 of file OGLCamera.h.
bool OGLCamera::modeLockLeftRight |
Definition at line 147 of file OGLCamera.h.
bool OGLCamera::modeLockSide |
Definition at line 147 of file OGLCamera.h.
bool OGLCamera::modeLockUpDown |
Definition at line 147 of file OGLCamera.h.
NxReal OGLCamera::sinLeftRight |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::sinSide |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::sinUpDown |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::stepAngleLeftRight |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::stepAngleSide |
Definition at line 134 of file OGLCamera.h.
NxReal OGLCamera::stepAngleUpDown |
Definition at line 134 of file OGLCamera.h.
NxVec3 OGLCamera::stepFront |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::stepLeft |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::stepUp |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::to |
Definition at line 117 of file OGLCamera.h.
NxVec3 OGLCamera::up |
Definition at line 117 of file OGLCamera.h.