|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Classes | |
| struct | Position |
Signals | |
| void | updated (Camera const &) |
Public Member Functions | |
| Camera () | |
| const Position & | getPos () const |
| const Position & | getPos3DAxes () const |
| void | lookAt (const Position &) |
| void | lookAt3DAxes (const Position &) |
| void | set () |
Private Member Functions | |
| void | endTransform (bool keep) |
| void | setAspectRatio (float) |
| void | turnBy (QQuaternion const &) |
| void | zoomBy (float) |
Private Attributes | |
| QQuaternion | addRot |
| float | farPlane |
| Vector3D | lightPos1 |
| Vector3D | lightPosRotated1 |
| QMatrix4x4 | matModel |
| QMatrix4x4 | matModel3DAxes |
| QMatrix4x4 | matProj |
| float | nearPlane |
| Position | pos |
| Position | pos3DAxes |
| float | vertAngle |
| float | zoom |
Friends | |
| class | Canvas |
| class | Program |
| RealSpace::Camera::Camera | ( | ) |
Definition at line 23 of file camera.cpp.
References setAspectRatio().
|
private |
Definition at line 104 of file camera.cpp.
References addRot, RealSpace::Camera::Position::eye, pos, pos3DAxes, RealSpace::Camera::Position::rot, set(), and zoom.
Referenced by RealSpace::Canvas::defaultView(), RealSpace::Canvas::horizontalCameraTurn(), RealSpace::Canvas::mouseReleaseEvent(), RealSpace::Canvas::sideView(), RealSpace::Canvas::topView(), RealSpace::Canvas::verticalCameraTurn(), and RealSpace::Canvas::wheelEvent().
|
inline |
Definition at line 51 of file camera.h.
References pos.
Referenced by RealSpace::Canvas::horizontalCameraTurn(), RealSpace::Program::set(), RealSpaceCanvas::updateScene(), and RealSpace::Canvas::verticalCameraTurn().
|
inline |
Definition at line 52 of file camera.h.
References pos3DAxes.
Referenced by RealSpace::Canvas::horizontalCameraTurn(), and RealSpace::Canvas::verticalCameraTurn().
| void RealSpace::Camera::lookAt | ( | const Position & | pos_ | ) |
Definition at line 50 of file camera.cpp.
Referenced by RealSpace::Canvas::defaultView(), RealSpace::Canvas::horizontalCameraTurn(), RealSpace::Canvas::setCamera(), RealSpace::Canvas::sideView(), RealSpace::Canvas::topView(), and RealSpace::Canvas::verticalCameraTurn().
| void RealSpace::Camera::lookAt3DAxes | ( | const Position & | pos3DAxes_ | ) |
Definition at line 57 of file camera.cpp.
References pos3DAxes, and set().
Referenced by RealSpace::Canvas::defaultView(), RealSpace::Canvas::horizontalCameraTurn(), RealSpace::Canvas::sideView(), RealSpace::Canvas::topView(), and RealSpace::Canvas::verticalCameraTurn().
| void RealSpace::Camera::set | ( | ) |
Definition at line 64 of file camera.cpp.
References addRot, RealSpace::Camera::Position::ctr, RealSpace::Camera::Position::eye, lightPos1, lightPosRotated1, matModel, matModel3DAxes, pos, pos3DAxes, RealSpace::Camera::Position::rot, RealSpace::Camera::Position::up, updated(), and zoom.
Referenced by endTransform(), lookAt(), lookAt3DAxes(), RealSpace::Canvas::setModel(), turnBy(), and zoomBy().
|
private |
Definition at line 86 of file camera.cpp.
References farPlane, matProj, nearPlane, and vertAngle.
Referenced by Camera(), and RealSpace::Canvas::setCamera().
|
private |
|
private |
Definition at line 98 of file camera.cpp.
Referenced by RealSpace::Canvas::mouseMoveEvent(), and RealSpace::Canvas::wheelEvent().
|
private |
Definition at line 78 of file camera.h.
Referenced by endTransform(), set(), and turnBy().
|
private |
Definition at line 72 of file camera.h.
Referenced by setAspectRatio().
|
private |
|
private |
Definition at line 75 of file camera.h.
Referenced by set(), and RealSpace::Program::set().
|
private |
Definition at line 79 of file camera.h.
Referenced by RealSpace::Canvas::mousePressEvent(), set(), and RealSpace::Program::set().
|
private |
Definition at line 80 of file camera.h.
Referenced by RealSpace::Canvas::paintGL(), and set().
|
private |
Definition at line 79 of file camera.h.
Referenced by RealSpace::Canvas::mousePressEvent(), RealSpace::Program::set(), and setAspectRatio().
|
private |
Definition at line 72 of file camera.h.
Referenced by setAspectRatio().
|
private |
|
private |
Definition at line 69 of file camera.h.
Referenced by endTransform(), getPos3DAxes(), lookAt3DAxes(), and set().
|
private |
Definition at line 72 of file camera.h.
Referenced by setAspectRatio().
|
private |
Definition at line 71 of file camera.h.
Referenced by endTransform(), set(), and zoomBy().