Ocean
|
This class is the base class for all sky backgrounds. More...
Public Member Functions | |
ObjectType | type () const override |
Returns the type of this object. More... | |
virtual ColorPairs | skyColors () const |
Returns the sky angle and color pairs. More... | |
virtual ColorPairs | groundColors () const |
Returns the ground angle and color pairs. More... | |
virtual TexturesRef | frontTextures () const |
Returns the front textures. More... | |
virtual TexturesRef | backTextures () const |
Returns the back textures. More... | |
virtual TexturesRef | leftTextures () const |
Returns the left textures. More... | |
virtual TexturesRef | rightTextures () const |
Returns the right textures. More... | |
virtual TexturesRef | topTextures () const |
Returns the top textures. More... | |
virtual TexturesRef | bottomTextures () const |
Returns the bottom textures. More... | |
virtual bool | setSkyColors (const ColorPairs &colors) |
Sets the sky angle and color pairs for the sky background. More... | |
virtual bool | setGroundColors (const ColorPairs &colors) |
Returns the ground angle and color pairs. More... | |
virtual bool | setFrontTextures (const TexturesRef &textures) |
Sets the textures for the front plane. More... | |
virtual bool | setBackTextures (const TexturesRef &textures) |
Sets the textures for the back plane. More... | |
virtual bool | setLeftTextures (const TexturesRef &textures) |
Sets the textures for the left plane. More... | |
virtual bool | setRightTextures (const TexturesRef &textures) |
Sets the textures for the right plane. More... | |
virtual bool | setTopTextures (const TexturesRef &textures) |
Sets the textures for the top plane. More... | |
virtual bool | setBottomTextures (const TexturesRef &textures) |
Sets the textures for the bottom plane. More... | |
Public Member Functions inherited from Ocean::Rendering::Background | |
virtual Scalar | distance () const |
Returns the distance between the world coordinate system and the background object. More... | |
virtual Vector3 | position () const |
Returns the position used for this background. More... | |
virtual Quaternion | orientation () const |
Returns the orientation used for this background. More... | |
virtual bool | setDistance (const Scalar distance) |
Sets the distance between world coordinate system and the background object. More... | |
virtual void | setPosition (const Vector3 &position) |
Sets the position used for this background. More... | |
virtual void | setOrientation (const Quaternion &orientation) |
Sets the orientation used for this background. More... | |
Public Member Functions inherited from Ocean::Rendering::Node | |
virtual bool | visible () const |
Returns whether the node is visible. More... | |
virtual BoundingBox | boundingBox (const bool involveLocalTransformation=true) const |
Returns the bounding box of this node. More... | |
virtual BoundingSphere | boundingSphere (const bool involveLocalTransformation=true) const |
Returns the bounding sphere of this node. More... | |
virtual HomogenousMatrix4 | worldTransformation () const |
Returns the first possible transformation transforming this node into world coordinates. More... | |
virtual HomogenousMatrices4 | worldTransformations () const |
Returns all possible transformations transforming this node into world coordinates. More... | |
virtual void | setVisible (const bool visible) |
Sets whether the node is visible. More... | |
Public Member Functions inherited from Ocean::Rendering::Object | |
ObjectId | id () const |
Returns the unique object id of this object. More... | |
const std::string & | name () const |
Returns the name of this object. More... | |
virtual void | setName (const std::string &name) |
Sets or changes the name of this object. More... | |
virtual const std::string & | engineName () const =0 |
Returns the name of the owner engine. More... | |
ObjectRefs | parentObjects () const |
Returns all parent objects. More... | |
ObjectRefSet | parentNodes () const |
Returns all parent nodes. More... | |
virtual std::string | descriptiveInformation () const |
Returns descriptive information about the object as string. More... | |
Protected Member Functions | |
SkyBackground () | |
Creates a new sky background object. More... | |
~SkyBackground () override | |
Destructs a Sky background object. More... | |
Protected Member Functions inherited from Ocean::Rendering::Background | |
Background () | |
Creates a new background object. More... | |
~Background () override | |
Destructs a background object. More... | |
Protected Member Functions inherited from Ocean::Rendering::Node | |
Node () | |
Creates a new node. More... | |
~Node () override | |
Destructs a node. More... | |
Protected Member Functions inherited from Ocean::Rendering::Object | |
Object () | |
Creates a new object. More... | |
Object (const Object &object)=delete | |
Disabled copy constructor. More... | |
virtual | ~Object () |
Destructs an object. More... | |
Engine & | engine () const |
Returns the render engine which is owner of this object. More... | |
void | registerParent (const ObjectId parentId) |
Registers a parent node for this (child) node. More... | |
void | unregisterParent (const ObjectId parentId) |
Unregisters a parent node for this (child) node. More... | |
void | registerThisObjectAsParent (const ObjectRef &child) |
Registers this object at a child as parent object. More... | |
void | unregisterThisObjectAsParent (const ObjectRef &child) |
Unregisters this object from a child as parent. More... | |
Object & | operator= (const Object &object)=delete |
Disabled copy operator. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Ocean::Rendering::Object | |
static std::string | translateObjectType (const ObjectType objectType) |
Translates an object type to a readable string. More... | |
Protected Attributes inherited from Ocean::Rendering::Background | |
Scalar | backgroundDistance |
Background distance;. More... | |
Protected Attributes inherited from Ocean::Rendering::Object | |
Lock | objectLock |
Lock for the object. More... | |
This class is the base class for all sky backgrounds.
typedef std::pair<Scalar, RGBAColor> Ocean::Rendering::SkyBackground::ColorPair |
Definition of a pair holding an angle and a color value.
All angles must be defined as radian.
typedef std::vector<ColorPair> Ocean::Rendering::SkyBackground::ColorPairs |
Definition of a vector holding color values.
|
protected |
Creates a new sky background object.
|
overrideprotected |
Destructs a Sky background object.
|
virtual |
Returns the back textures.
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the bottom textures.
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the front textures.
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the ground angle and color pairs.
If any color values are defined the first pair must specified the color for the nadir (angle 0).
The angle values are defined as radian with range [0, PI/2], 0 for the nadir and PI/2 for the standard horizon
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the left textures.
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the right textures.
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the back plane.
textures | Textures object to be used for the back plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the bottom plane.
textures | Textures object to be used for the bottom plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the front plane.
textures | Textures object to be used for the front plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the ground angle and color pairs.
If any color values are defined the first pair must specified the color for the nadir (angle 0).
The angle values are defined as radian with range [0, PI/2], 0 for the nadir and PI/2 for the standard horizon
colors | Ground color pairs to set |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the left plane.
textures | Textures object to be used for the left plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the right plane.
textures | Textures object to be uesed for the right plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the sky angle and color pairs for the sky background.
If any color values are defined the first pair must specified the color for the zenith (angle 0).
The angle values are defined as radian with range [0, PI], 0 for the zenith, PI/2 for the standard horizon and PI for the nadir
colors | Sky color pairs to set |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Sets the textures for the top plane.
textures | Textures object to be used for the top plane |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the sky angle and color pairs.
If any color values are defined the first pair must specified the color for the zenith (angle 0).
The angle values are defined as radian with range [0, PI], 0 for the zenith, PI/2 for the standard horizon and PI for the nadir
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Returns the top textures.
NotSupportedException | Is thrown if this function is not supported |
|
overridevirtual |
Returns the type of this object.
Reimplemented from Ocean::Rendering::Background.