|
| | PerspectiveCamera (qreal _fov=30.0) |
| |
| | PerspectiveCamera (const Tracker &_tracker, qreal _fov=30.0, qreal _near=0.1, qreal _far=1000.0, const QVector3D &_up=QVector3D(0.0, 0.0, 1.0)) |
| |
| void | setup (qreal _aspect) const |
| | Setup perspective camera in OpenGL. More...
|
| |
| qreal | fov () const |
| | Return field of view value. More...
|
| |
| void | setFov (qreal _fov) |
| | Set new field of view value. More...
|
| |
| void | fromStream (QDataStream &) |
| | Deserialize from stream. More...
|
| |
| void | toStream (QDataStream &) const |
| | Serialize to stream. More...
|
| |
| | CameraInterface () |
| |
| | CameraInterface (const Tracker &_tracker, qreal _near=0.1, qreal _far=1000.0, const QVector3D &_up=QVector3D(0.0, 0.0, 1.0)) |
| |
| QVector3D | right () const |
| | Right vector. More...
|
| |
| void | strafe (qreal _right) |
| | Move camera to the right (or to the left if value is negative) More...
|
| |
| void | lift (qreal _up) |
| | Move camera upwards (or downwards if value is negative) More...
|
| |
| QVector3D | up () const |
| | Camera orientation. More...
|
| |
| void | setUp (QVector3D const &) |
| |
| qreal | near () const |
| | Camera's near plane. More...
|
| |
| void | setNear (qreal) |
| |
| qreal | far () const |
| | Camera's far plane. More...
|
| |
| void | setFar (qreal) |
| |
| | Tracker () |
| |
| | Tracker (const QVector3D &_center, const PolarVec &_direction) |
| |
| void | track (float _longitude, float _latitude, float _radius) |
| |
| QVector3D | eye () const |
| | get tracker position More...
|
| |
| void | setEye (const QVector3D &_pos) |
| | Set eye position. More...
|
| |
| void | setCenter (QVector3D const &) |
| | Set center position. More...
|
| |
| QVector3D & | center () |
| | Return center position. More...
|
| |
| QVector3D const & | center () const |
| | Return center position (const version) More...
|
| |
| void | setDirection (PolarVec const &) |
| | Set direction from polar vector. More...
|
| |
| void | setDistance (float _t) |
| | Set direction with a certain distance. More...
|
| |
| PolarVec & | direction () |
| | Return direction as polar vector. More...
|
| |
| PolarVec const & | direction () const |
| | Return direction as polar vector (const version) More...
|
| |
| void | limitDistance (float _minDist, float _maxDist) |
| | Keep distance in limits. More...
|
| |