BornAgain
1.19.79
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 &) |
camera position for 3D object More... | |
void | lookAt3DAxes (const Position &) |
camera position for 3D axes More... | |
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 |
GUI::RealSpace::Camera::Camera | ( | ) |
Definition at line 23 of file camera.cpp.
References setAspectRatio().
|
private |
Definition at line 105 of file camera.cpp.
References addRot, GUI::RealSpace::Camera::Position::eye, pos, pos3DAxes, GUI::RealSpace::Camera::Position::rot, set(), and zoom.
Referenced by GUI::RealSpace::Canvas::defaultView(), GUI::RealSpace::Canvas::horizontalCameraTurn(), GUI::RealSpace::Canvas::mouseReleaseEvent(), GUI::RealSpace::Canvas::sideView(), GUI::RealSpace::Canvas::topView(), GUI::RealSpace::Canvas::verticalCameraTurn(), and GUI::RealSpace::Canvas::wheelEvent().
|
inline |
Definition at line 50 of file camera.h.
References pos.
Referenced by GUI::RealSpace::Canvas::horizontalCameraTurn(), GUI::RealSpace::Program::set(), RealSpaceCanvas::updateScene(), and GUI::RealSpace::Canvas::verticalCameraTurn().
|
inline |
Definition at line 51 of file camera.h.
References pos3DAxes.
Referenced by GUI::RealSpace::Canvas::horizontalCameraTurn(), and GUI::RealSpace::Canvas::verticalCameraTurn().
void GUI::RealSpace::Camera::lookAt | ( | const Position & | pos_ | ) |
camera position for 3D object
Definition at line 51 of file camera.cpp.
Referenced by GUI::RealSpace::Canvas::defaultView(), GUI::RealSpace::Canvas::horizontalCameraTurn(), GUI::RealSpace::Canvas::setCamera(), GUI::RealSpace::Canvas::sideView(), GUI::RealSpace::Canvas::topView(), and GUI::RealSpace::Canvas::verticalCameraTurn().
void GUI::RealSpace::Camera::lookAt3DAxes | ( | const Position & | pos3DAxes_ | ) |
camera position for 3D axes
Definition at line 58 of file camera.cpp.
References pos3DAxes, and set().
Referenced by GUI::RealSpace::Canvas::defaultView(), GUI::RealSpace::Canvas::horizontalCameraTurn(), GUI::RealSpace::Canvas::sideView(), GUI::RealSpace::Canvas::topView(), and GUI::RealSpace::Canvas::verticalCameraTurn().
void GUI::RealSpace::Camera::set | ( | ) |
Definition at line 65 of file camera.cpp.
References addRot, GUI::RealSpace::Camera::Position::ctr, GUI::RealSpace::Camera::Position::eye, lightPos1, lightPosRotated1, matModel, matModel3DAxes, pos, pos3DAxes, GUI::RealSpace::Camera::Position::rot, GUI::RealSpace::Camera::Position::up, updated(), and zoom.
Referenced by endTransform(), lookAt(), lookAt3DAxes(), GUI::RealSpace::Canvas::setModel(), turnBy(), and zoomBy().
|
private |
Definition at line 87 of file camera.cpp.
References farPlane, matProj, nearPlane, and vertAngle.
Referenced by Camera(), and GUI::RealSpace::Canvas::setCamera().
|
private |
|
private |
Definition at line 99 of file camera.cpp.
Referenced by GUI::RealSpace::Canvas::mouseMoveEvent(), and GUI::RealSpace::Canvas::wheelEvent().
|
private |
Definition at line 77 of file camera.h.
Referenced by endTransform(), set(), and turnBy().
|
private |
Definition at line 71 of file camera.h.
Referenced by setAspectRatio().
|
private |
|
private |
Definition at line 74 of file camera.h.
Referenced by set(), and GUI::RealSpace::Program::set().
|
private |
Definition at line 78 of file camera.h.
Referenced by GUI::RealSpace::Canvas::mousePressEvent(), set(), and GUI::RealSpace::Program::set().
|
private |
Definition at line 79 of file camera.h.
Referenced by GUI::RealSpace::Canvas::paintGL(), and set().
|
private |
Definition at line 78 of file camera.h.
Referenced by GUI::RealSpace::Canvas::mousePressEvent(), GUI::RealSpace::Program::set(), and setAspectRatio().
|
private |
Definition at line 71 of file camera.h.
Referenced by setAspectRatio().
|
private |
|
private |
Definition at line 68 of file camera.h.
Referenced by endTransform(), getPos3DAxes(), lookAt3DAxes(), and set().
|
private |
Definition at line 71 of file camera.h.
Referenced by setAspectRatio().
|
private |
Definition at line 70 of file camera.h.
Referenced by endTransform(), set(), and zoomBy().