|
PLATFORM_API | Camera ()=default |
| Default constructor. More...
|
|
virtual PLATFORM_API | ~Camera ()=default |
| Default destructor. More...
|
|
virtual PLATFORM_API void | commit () |
| Commits any changes made to the camera object so that attributes become available to the rendering engine. More...
|
|
PLATFORM_API Camera & | operator= (const Camera &rhs) |
| Copy constructor. More...
|
|
PLATFORM_API void | set (const Vector3d &position, const Quaterniond &orientation, const Vector3d &target=Vector3d(0.0, 0.0, 0.0)) |
| Sets the position, orientation quaternion, and target of the camera. More...
|
|
PLATFORM_API void | setInitialState (const Vector3d &position, const Quaterniond &orientation, const Vector3d &target=Vector3d(0.0, 0.0, 0.0)) |
| Sets the initial state of the camera. More...
|
|
PLATFORM_API void | reset () |
| Resets the camera to its initial values. More...
|
|
PLATFORM_API void | setPosition (const Vector3d &position) |
| Sets the camera position. More...
|
|
PLATFORM_API void | setTarget (const Vector3d &target) |
| Sets the camera target. More...
|
|
PLATFORM_API const Vector3d & | getPosition () const |
| Gets the camera position. More...
|
|
PLATFORM_API const Vector3d & | getTarget () const |
| Gets the camera target. More...
|
|
PLATFORM_API void | setOrientation (Quaterniond orientation) |
| Sets the camera orientation quaternion. More...
|
|
PLATFORM_API const Quaterniond & | getOrientation () const |
| Gets the camera orientation quaternion. More...
|
|
PLATFORM_API void | setBufferTarget (const std::string &target) |
| Sets the name of the current rendered frame buffer. More...
|
|
PLATFORM_API const std::string & | getBufferTarget () const |
| Gets the name of the current rendered frame buffer. More...
|
|
PLATFORM_API void | setEngine (Engine *engine) |
| Set the Engine object. More...
|
|
void | setCurrentType (const std::string &type) |
|
const std::string & | getCurrentType () const |
|
template<typename T > |
void | updateProperty (const std::string &name, const T &value, const bool triggerCallback=true) |
|
bool | hasProperty (const std::string &name) const |
|
template<typename T > |
T | getProperty (const std::string &name) const |
|
template<typename T > |
T | getPropertyOrValue (const std::string &name, T val) const |
|
void | setProperties (const PropertyMap &properties) |
|
void | setProperties (const std::string &type, const PropertyMap &properties) |
|
void | updateProperties (const PropertyMap &properties) |
|
const auto & | getPropertyMap () const |
|
const auto & | getPropertyMap (const std::string &type) const |
|
strings | getTypes () const |
|
void | clonePropertiesFrom (const PropertyObject &obj) |
|
| BaseObject ()=default |
|
virtual | ~BaseObject ()=default |
|
| BaseObject (const BaseObject &) |
|
BaseObject & | operator= (const BaseObject &rhs) |
|
bool | isModified () const |
|
void | resetModified () |
|
void | markModified (const bool triggerCallback=true) |
|
void | onModified (const ModifiedCallback &callback) |
|
void | clearModifiedCallback () |
|
The Camera class is an abstract interface for a camera in a 3D graphics application. It is defined by a position and a quaternion and inherits from the PropertyObject class.
Definition at line 40 of file Camera.h.