class ART::ICamera
Camera interface storing reference viewpoints. More...
#include <ARTICamera.h>
Inherits: IREDObject.
Public functions:
virtual double | GetFocusDistance ( ) const = 0 |
virtual double | GetFOV ( ) const = 0 |
virtual const RED::Matrix & | GetMatrix ( ) const = 0 |
virtual RED::Object * | GetParentCelestialBody ( ) const = 0 |
Public static functions:
static RED::CID | GetClassID ( ) |
Detailed description:
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.
Functions documentation
public static RED::CID ART::ICamera::GetClassID | ( | ) |
public virtual double ART::ICamera::GetFocusDistance | ( | ) const = 0 |
Returns:
The camera focus distance in meters
public virtual double ART::ICamera::GetFOV | ( | ) const = 0 |
Returns:
The camera half horizontal field of view in radians
public virtual const RED::Matrix & ART::ICamera::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.
public virtual RED::Object * ART::ICamera::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.