ICamera

Functions

SET_CID

Object *

GetParentCelestialBody

const Matrix &

GetMatrix

double

GetFOV

double

GetFocusDistance

Detailed Description

class ICamera : public RED::IREDObject

Camera interface storing reference viewpoints.

The camera is a simple record of parameters that can be used to setup the ART::IObserver singleton. Cameras can be retrieved from the editor after exporting data from it.

Public Functions

SET_CID(CID_class_ARTICamera)
virtual RED::Object *GetParentCelestialBody() const = 0

Gets the camera parent celestial body.

The body can be a ART::Planet, a ART::Star. In this case its coordinates are in the parent referential. Or it can be NULL and its transform will be relative to the world coordinate system.

Returns

The parent celestial body.

virtual const RED::Matrix &GetMatrix() const = 0

Gets the camera transform.

If the camera has a parent body, its transform will be relative to it. Otherwise its transform will be relative to the world coordinates system.

Returns

a reference to the transform matrix.

virtual double GetFOV() const = 0
Returns

The camera half horizontal field of view in radians

virtual double GetFocusDistance() const = 0
Returns

The camera focus distance in meters