28 Camera(QObject* parent,
float minDist,
float maxDist,
float initDist = .0f,
float initYaw = .0f,
float initPitch = .0f);
73 void move(
const QVector2D& offset);
79 void zoom(
float distance);
void move(const QVector2D &offset)
Offets the camera.
Definition: camera.cpp:37
void setNearFarPlane(float near, float far)
Sets the z values for the near and far plane respectively.
Definition: camera.cpp:20
Class for orbital cameras.
Definition: camera.h:13
void setAspectRatio(float aspectRatio)
Sets the aspect ratio for the perspective transform.
Definition: camera.cpp:15
void rotateX(float angle)
Yaws the camera.
Definition: camera.cpp:26
void zoom(float distance)
Changes the distance of the camera.
Definition: camera.cpp:42
void getViewMatrix(QMatrix4x4 &viewMatrix)
Constructs the view matrix and returns it in viewMatrix.
Definition: camera.cpp:47
void getProjectionMatrix(QMatrix4x4 &projMatrix)
Constructs the projection matrix and returns it in projMatrix.
Definition: camera.cpp:69
void rotateY(float angle)
Pitches the camera.
Definition: camera.cpp:31
Camera(QObject *parent, float minDist, float maxDist, float initDist=.0f, float initYaw=.0f, float initPitch=.0f)
Constructs a new camera.
Definition: camera.cpp:3