class ART::ICamera

Camera interface storing reference viewpoints. More...

#include <ARTICamera.h>

Inherits: IREDObject.

Public functions:

virtual doubleGetFocusDistance ( ) const = 0
virtual doubleGetFOV ( ) const = 0
virtual const RED::Matrix &GetMatrix ( ) const = 0
virtual RED::Object *GetParentCelestialBody ( ) const = 0

Public static functions:

static RED::CIDGetClassID ( )

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 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.

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.