ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Camera resources define the camera position, perspective parameters, and look at direction. More...

#include <camera.h>

Inheritance diagram for Stark::Resources::Camera:
Collaboration diagram for Stark::Resources::Camera:

List of all members.

Public Member Functions

 Camera (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~Camera ()
void onAllLoaded () override
 Called when the resource sub-tree is entirely loaded.
void onEnterLocation () override
 Called when entering a location.
void setClipPlanes (float near, float far)
 Define the near and far clip planes distances.
Math::Angle getHorizontalAngle () const
 Compute the angle between the X vector and the look at direction in the horizontal plane.

Static Public Attributes

static const Type::ResourceType TYPE = Type::kCamera

Protected Member Functions

void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
void printData () override

Protected Attributes

Math::Vector3d _position
Math::Vector3d _lookDirection
float _f1
float _fov
Common::Rect _viewSize
Math::Vector3d _v4
float _nearClipPlane
float _farClipPlane

Detailed Description

Camera resources define the camera position, perspective parameters, and look at direction.

Definition at line 48 of file camera.h.


Constructor & Destructor Documentation

Stark::Resources::Camera::Camera ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 37 of file camera.cpp.

Stark::Resources::Camera::~Camera (  )  [virtual]

Definition at line 34 of file camera.cpp.


Member Function Documentation

Math::Angle Stark::Resources::Camera::getHorizontalAngle (  )  const

Compute the angle between the X vector and the look at direction in the horizontal plane.

Definition at line 83 of file camera.cpp.

void Stark::Resources::Camera::onAllLoaded (  )  [override, virtual]

Called when the resource sub-tree is entirely loaded.

Allows to load data from other nodes.

Reimplemented from Stark::Resources::Object.

Definition at line 60 of file camera.cpp.

void Stark::Resources::Camera::onEnterLocation (  )  [override, virtual]

Called when entering a location.

Reimplemented from Stark::Resources::Object.

Definition at line 72 of file camera.cpp.

void Stark::Resources::Camera::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::Object.

Definition at line 93 of file camera.cpp.

void Stark::Resources::Camera::readData ( Formats::XRCReadStream stream  )  [override, protected, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::Object.

Definition at line 51 of file camera.cpp.

void Stark::Resources::Camera::setClipPlanes ( float  near,
float  far 
)

Define the near and far clip planes distances.

Definition at line 46 of file camera.cpp.


Member Data Documentation

float Stark::Resources::Camera::_f1 [protected]

Definition at line 71 of file camera.h.

Definition at line 77 of file camera.h.

float Stark::Resources::Camera::_fov [protected]

Definition at line 72 of file camera.h.

Definition at line 70 of file camera.h.

Definition at line 76 of file camera.h.

Definition at line 69 of file camera.h.

Definition at line 74 of file camera.h.

Definition at line 73 of file camera.h.

const Type::ResourceType Stark::Resources::Camera::TYPE = Type::kCamera [static]

Definition at line 50 of file camera.h.


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


Generated on Sat Nov 16 2019 05:03:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge