#include <ViewerCamera.hpp>
|
| | ViewerCamera () |
| |
| | ~ViewerCamera () |
| |
| void | setViewportId (size_t id) |
| |
| void | setViewport (int x, int y, int width, int height) |
| |
| int | width () const |
| |
| int | height () const |
| |
| void | updateProjection () |
| |
| void | setPerspective () |
| |
| void | setOrthographic () |
| |
| void | setPerspective (float fovy, float zNear, float zFar) |
| |
| void | setPerspective (float fovy, float aspect, float zNear, float zFar) |
| |
| void | setLookAt (const QVector3D ¢er, float distance) |
| |
| void | setLookAt (const QVector3D &eye, const QVector3D ¢er, const QVector3D &up) |
| |
| void | setLookAt (const QVector3D &dir, float distance, const QVector3D ¢er, const QVector3D &up) |
| |
| void | setDistance (float distance) |
| |
| float | distance () const |
| |
| const QVector3D & | eye () const |
| |
| const QVector3D & | center () const |
| |
| const QVector3D & | up () const |
| |
| const QVector3D & | right () const |
| |
| const QVector3D & | direction () const |
| |
| QMatrix4x4 | rotation () const |
| |
| Camera | toCamera () const |
| |
| QVector3D | project (const QVector3D &world) const |
| |
| QVector3D | unproject (const QVector3D &window) const |
| |
| void | ray (int x, int y, QVector3D *base, QVector3D *direction) |
| |
| void | mousePressEvent (QMouseEvent *event) |
| |
| void | mouseMoveEvent (QMouseEvent *event) |
| |
| void | wheelEvent (QWheelEvent *event) |
| |
| void | rotate (int dx, int dy) |
| |
| void | pan (int dx, int dy) |
| |
| void | zoom (int dy) |
| |
| const QMatrix4x4 & | modelView () const |
| |
| const QMatrix4x4 & | projection () const |
| |
| const QMatrix4x4 & | modelViewProjection () const |
| |
| const QMatrix4x4 & | modelViewInv () const |
| |
| const QMatrix4x4 & | projectionInv () const |
| |
| const QMatrix4x4 & | modelViewProjectionInv () const |
| |
◆ ViewerCamera()
| ViewerCamera::ViewerCamera |
( |
| ) |
|
◆ ~ViewerCamera()
| ViewerCamera::~ViewerCamera |
( |
| ) |
|
◆ center()
| const QVector3D & ViewerCamera::center |
( |
| ) |
const |
|
inline |
◆ direction()
| const QVector3D & ViewerCamera::direction |
( |
| ) |
const |
|
inline |
◆ distance()
| float ViewerCamera::distance |
( |
| ) |
const |
|
inline |
◆ eye()
| const QVector3D & ViewerCamera::eye |
( |
| ) |
const |
|
inline |
◆ height()
| int ViewerCamera::height |
( |
| ) |
const |
|
inline |
◆ modelView()
| const QMatrix4x4 & ViewerCamera::modelView |
( |
| ) |
const |
|
inline |
◆ modelViewInv()
| const QMatrix4x4 & ViewerCamera::modelViewInv |
( |
| ) |
const |
|
inline |
◆ modelViewProjection()
| const QMatrix4x4 & ViewerCamera::modelViewProjection |
( |
| ) |
const |
|
inline |
◆ modelViewProjectionInv()
| const QMatrix4x4 & ViewerCamera::modelViewProjectionInv |
( |
| ) |
const |
|
inline |
◆ mouseMoveEvent()
| void ViewerCamera::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
◆ mousePressEvent()
| void ViewerCamera::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
◆ pan()
| void ViewerCamera::pan |
( |
int | dx, |
|
|
int | dy ) |
◆ project()
| QVector3D ViewerCamera::project |
( |
const QVector3D & | world | ) |
const |
◆ projection()
| const QMatrix4x4 & ViewerCamera::projection |
( |
| ) |
const |
|
inline |
◆ projectionInv()
| const QMatrix4x4 & ViewerCamera::projectionInv |
( |
| ) |
const |
|
inline |
◆ ray()
| void ViewerCamera::ray |
( |
int | x, |
|
|
int | y, |
|
|
QVector3D * | base, |
|
|
QVector3D * | direction ) |
◆ right()
| const QVector3D & ViewerCamera::right |
( |
| ) |
const |
|
inline |
◆ rotate()
| void ViewerCamera::rotate |
( |
int | dx, |
|
|
int | dy ) |
◆ rotation()
| QMatrix4x4 ViewerCamera::rotation |
( |
| ) |
const |
◆ setDistance()
| void ViewerCamera::setDistance |
( |
float | distance | ) |
|
◆ setLookAt() [1/3]
| void ViewerCamera::setLookAt |
( |
const QVector3D & | center, |
|
|
float | distance ) |
◆ setLookAt() [2/3]
| void ViewerCamera::setLookAt |
( |
const QVector3D & | dir, |
|
|
float | distance, |
|
|
const QVector3D & | center, |
|
|
const QVector3D & | up ) |
◆ setLookAt() [3/3]
| void ViewerCamera::setLookAt |
( |
const QVector3D & | eye, |
|
|
const QVector3D & | center, |
|
|
const QVector3D & | up ) |
◆ setModelView()
| void ViewerCamera::setModelView |
( |
const QMatrix4x4 & | m | ) |
|
|
protected |
◆ setModelViewProjection()
| void ViewerCamera::setModelViewProjection |
( |
const QMatrix4x4 & | m | ) |
|
|
protected |
◆ setOrthographic()
| void ViewerCamera::setOrthographic |
( |
| ) |
|
◆ setPerspective() [1/3]
| void ViewerCamera::setPerspective |
( |
| ) |
|
◆ setPerspective() [2/3]
| void ViewerCamera::setPerspective |
( |
float | fovy, |
|
|
float | aspect, |
|
|
float | zNear, |
|
|
float | zFar ) |
◆ setPerspective() [3/3]
| void ViewerCamera::setPerspective |
( |
float | fovy, |
|
|
float | zNear, |
|
|
float | zFar ) |
◆ setProjection()
| void ViewerCamera::setProjection |
( |
const QMatrix4x4 & | m | ) |
|
|
protected |
◆ setViewport()
| void ViewerCamera::setViewport |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
◆ setViewportId()
| void ViewerCamera::setViewportId |
( |
size_t | id | ) |
|
◆ toCamera()
| Camera ViewerCamera::toCamera |
( |
| ) |
const |
◆ unproject()
| QVector3D ViewerCamera::unproject |
( |
const QVector3D & | window | ) |
const |
◆ up()
| const QVector3D & ViewerCamera::up |
( |
| ) |
const |
|
inline |
◆ updateFrustrum()
| void ViewerCamera::updateFrustrum |
( |
| ) |
|
|
protected |
◆ updateMatrix()
| void ViewerCamera::updateMatrix |
( |
| ) |
|
|
protected |
◆ updateProjection()
| void ViewerCamera::updateProjection |
( |
| ) |
|
◆ wheelEvent()
| void ViewerCamera::wheelEvent |
( |
QWheelEvent * | event | ) |
|
◆ width()
| int ViewerCamera::width |
( |
| ) |
const |
|
inline |
◆ zoom()
| void ViewerCamera::zoom |
( |
int | dy | ) |
|
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const ViewerCamera & | in ) |
|
friend |
◆ toJson
◆ toString
◆ center_
| QVector3D ViewerCamera::center_ |
|
protected |
◆ direction_
| QVector3D ViewerCamera::direction_ |
|
protected |
◆ distance_
| float ViewerCamera::distance_ |
|
protected |
◆ eye_
| QVector3D ViewerCamera::eye_ |
|
protected |
◆ fov_
◆ frustrumPlanes_
| std::vector<float> ViewerCamera::frustrumPlanes_ |
|
protected |
◆ modelView_
| QMatrix4x4 ViewerCamera::modelView_ |
|
protected |
◆ modelViewInv_
| QMatrix4x4 ViewerCamera::modelViewInv_ |
|
protected |
◆ modelViewProjection_
| QMatrix4x4 ViewerCamera::modelViewProjection_ |
|
protected |
◆ modelViewProjectionInv_
| QMatrix4x4 ViewerCamera::modelViewProjectionInv_ |
|
protected |
◆ mouseLastPosition_
| QPoint ViewerCamera::mouseLastPosition_ |
|
protected |
◆ perspective_
| bool ViewerCamera::perspective_ |
|
protected |
◆ projection_
| QMatrix4x4 ViewerCamera::projection_ |
|
protected |
◆ projectionInv_
| QMatrix4x4 ViewerCamera::projectionInv_ |
|
protected |
◆ right_
| QVector3D ViewerCamera::right_ |
|
protected |
◆ rotation_
| QQuaternion ViewerCamera::rotation_ |
|
protected |
◆ sensitivityX_
| float ViewerCamera::sensitivityX_ |
|
protected |
◆ sensitivityY_
| float ViewerCamera::sensitivityY_ |
|
protected |
◆ sensitivityZoom_
| float ViewerCamera::sensitivityZoom_ |
|
protected |
◆ up_
| QVector3D ViewerCamera::up_ |
|
protected |
◆ viewport_
| QRect ViewerCamera::viewport_ |
|
protected |
Referenced by height(), pan(), project(), ray(), rotate(), setOrthographic(), setPerspective(), setViewport(), unproject(), width(), and zoom().
◆ viewportId_
| size_t ViewerCamera::viewportId_ |
|
protected |
◆ zFar_
| float ViewerCamera::zFar_ |
|
protected |
◆ zNear_
| float ViewerCamera::zNear_ |
|
protected |
The documentation for this class was generated from the following files:
- ViewerCamera.hpp
- ViewerCamera.cpp