Sky Bodies Layer Body. More...
#include <deSkyLayerBody.h>
Public Member Functions | |
Constructors and Destructors | |
| deSkyLayerBody () | |
| Creates a new sky bodies layer body. | |
| ~deSkyLayerBody () | |
| Cleans up the sky bodies layer body. | |
Management | |
| const decQuaternion & | GetOrientation () const |
| Retrieves the orientation. | |
| void | SetOrientation (const decQuaternion &orientation) |
| Sets the orientation. | |
| const decVector2 & | GetSize () const |
| Retrieves the size in radians. | |
| void | SetSize (const decVector2 &size) |
| Sets the size in radians. | |
| const decColor & | GetColor () const |
| Retrieves the blending color. | |
| void | SetColor (const decColor &color) |
| Sets the blending color. | |
| deSkin * | GetSkin () const |
| Retrieves the skin or NULL if not set. | |
| void | SetSkin (deSkin *skin) |
| Sets the skin or NULL if not set. | |
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.
| deSkyLayerBody::deSkyLayerBody | ( | ) |
Creates a new sky bodies layer body.
| deSkyLayerBody::~deSkyLayerBody | ( | ) |
Cleans up the sky bodies layer body.
| 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.
1.7.2