deSkyLayerBody Class Reference

Sky Bodies Layer Body. More...

#include <deSkyLayerBody.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deSkyLayerBody ()
 Creates a new sky bodies layer body.
 ~deSkyLayerBody ()
 Cleans up the sky bodies layer body.
Management
const decQuaternionGetOrientation () const
 Retrieves the orientation.
void SetOrientation (const decQuaternion &orientation)
 Sets the orientation.
const decVector2GetSize () const
 Retrieves the size in radians.
void SetSize (const decVector2 &size)
 Sets the size in radians.
const decColorGetColor () const
 Retrieves the blending color.
void SetColor (const decColor &color)
 Sets the blending color.
deSkinGetSkin () const
 Retrieves the skin or NULL if not set.
void SetSkin (deSkin *skin)
 Sets the skin or NULL if not set.

Detailed Description

Sky Bodies Layer Body.

Defines a body in a sky bodies layer. For positioning the body the sky is considered to be a sphere of unit radius. The position of the body is then defined using a quaternion rotation. At identity rotation the body is located at the equator at the 0° meridian which is the same as the body located 1 unit along the Z-Axis. The size of the body is defined using two angles measured in radians. The angles indicate the entire width and height of the body not half the width and height. This angle is comparable to the astronomic angle under which you see a body in the sky. The body is drawn using the given image which can use transparency. Furthermore a color including transparency can be defined which is multiplied component wise with the image pixels.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deSkyLayerBody::deSkyLayerBody (  )

Creates a new sky bodies layer body.

deSkyLayerBody::~deSkyLayerBody (  )

Cleans up the sky bodies layer body.


Member Function Documentation

const decColor& deSkyLayerBody::GetColor (  ) const [inline]

Retrieves the blending color.

const decQuaternion& deSkyLayerBody::GetOrientation (  ) const [inline]

Retrieves the orientation.

const decVector2& deSkyLayerBody::GetSize (  ) const [inline]

Retrieves the size in radians.

deSkin* deSkyLayerBody::GetSkin (  ) const [inline]

Retrieves the skin or NULL if not set.

void deSkyLayerBody::SetColor ( const decColor color )

Sets the blending color.

void deSkyLayerBody::SetOrientation ( const decQuaternion orientation )

Sets the orientation.

void deSkyLayerBody::SetSize ( const decVector2 size )

Sets the size in radians.

void deSkyLayerBody::SetSkin ( deSkin skin )

Sets the skin or NULL if not set.


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