Carna Version 3.3.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Carna::base::CameraControl Class Referenceabstract

Defines interface for intuitive Camera control. More...

#include <CameraControl.h>

+ Inheritance diagram for Carna::base::CameraControl:

Public Member Functions

virtual ~CameraControl ()
 Does nothing.
 
virtual void setCamera (Spatial &camera)=0
 Sets the camera that this object should control.
 
virtual void rotateHorizontally (float radians)=0
 Rotates the previously set camera horizontally. The rotation axis depends on the implementation.
 
virtual void rotateVertically (float radians)=0
 Rotates the previously set camera vertically. The rotation axis depends on the implementation.
 
virtual void moveAxially (float distance)=0
 Moves the camera along its z-axis. The parameters of this movement depend on the implementation.
 
virtual void moveLaterally (float distanceX, float distanceY)=0
 Moves the camera along its x-/y-axis. The parameters of this movement depend on the implementation.
 

Detailed Description

Defines interface for intuitive Camera control.

Author
Leonid Kostrykin
Date
22.2.15 - 16.3.15

Definition at line 39 of file CameraControl.h.

Member Function Documentation

◆ moveAxially()

virtual void Carna::base::CameraControl::moveAxially ( float  distance)
pure virtual

Moves the camera along its z-axis. The parameters of this movement depend on the implementation.

Implemented in Carna::presets::CameraNavigationControl, Carna::presets::CameraShowcaseControl, and Carna::presets::OrthogonalControl.

◆ moveLaterally()

virtual void Carna::base::CameraControl::moveLaterally ( float  distanceX,
float  distanceY 
)
pure virtual

Moves the camera along its x-/y-axis. The parameters of this movement depend on the implementation.

Implemented in Carna::presets::CameraNavigationControl, Carna::presets::CameraShowcaseControl, and Carna::presets::OrthogonalControl.

◆ rotateHorizontally()

virtual void Carna::base::CameraControl::rotateHorizontally ( float  radians)
pure virtual

Rotates the previously set camera horizontally. The rotation axis depends on the implementation.

Implemented in Carna::presets::CameraNavigationControl, Carna::presets::CameraShowcaseControl, and Carna::presets::OrthogonalControl.

◆ rotateVertically()

virtual void Carna::base::CameraControl::rotateVertically ( float  radians)
pure virtual

Rotates the previously set camera vertically. The rotation axis depends on the implementation.

Implemented in Carna::presets::CameraNavigationControl, Carna::presets::CameraShowcaseControl, and Carna::presets::OrthogonalControl.

◆ setCamera()

virtual void Carna::base::CameraControl::setCamera ( Spatial camera)
pure virtual

Sets the camera that this object should control.

Implemented in Carna::presets::CameraNavigationControl, Carna::presets::CameraShowcaseControl, and Carna::presets::OrthogonalControl.


The documentation for this class was generated from the following file: