Class camera#
Defined in File camera.h
Class Documentation#

class camera#
Abstract class to control a camera in a window.
A class to control a camera in a window. When modifying the Position/FocalPoint/ViewUp API or the camera movements API, the view up is automatically orthogonalized. All angles are in degrees.
Parameters

virtual camera &setPosition(const point3_t &pos) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual camera &setFocalPoint(const point3_t &foc) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual void getFocalPoint(point3_t &foc) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual camera &setViewUp(const vector3_t &up) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual camera &setViewAngle(const angle_deg_t &angle) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual angle_deg_t getViewAngle() = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual void getViewAngle(angle_deg_t &angle) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual camera &setState(const camera_state_t &state) = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual camera_state_t getState() = 0#
Set/Get the camera parameters. Angles are in degrees.

virtual void getState(camera_state_t &state) = 0#
Set/Get the camera parameters. Angles are in degrees.
Manipulation

virtual camera &roll(angle_deg_t angle) = 0#
Standard camera manipulation methods. Angles are in degrees.

virtual camera &azimuth(angle_deg_t angle) = 0#
Standard camera manipulation methods. Angles are in degrees.

virtual camera &yaw(angle_deg_t angle) = 0#
Standard camera manipulation methods. Angles are in degrees.

virtual camera &elevation(angle_deg_t angle) = 0#
Standard camera manipulation methods. Angles are in degrees.

virtual camera &pitch(angle_deg_t angle) = 0#
Standard camera manipulation methods. Angles are in degrees.
Public Functions

virtual camera &setPosition(const point3_t &pos) = 0#