Ocean
|
This class is the base class for all attribute set objects. More...
Public Member Functions | |
virtual unsigned int | numberAttributes () const |
Returns the number of registered attributes. More... | |
virtual AttributeRef | attribute (const unsigned int index) const |
Returns an attribute specified by the index. More... | |
virtual AttributeRef | attribute (const ObjectType attributeType) const |
Returns the attribute with a specific type. More... | |
virtual bool | hasAttribute (const ObjectType attributeType) const |
Returns wehether an attribute with a specific type exists in this set. More... | |
virtual void | addAttribute (const AttributeRef &attribute) |
Adds a new attribute to this attribute set. More... | |
virtual void | removeAttribute (const AttributeRef &attribute) |
Removes a registered attribute from this attribute ses. More... | |
virtual bool | removeAttribute (const ObjectType attributeType) |
Removes the first registered attribute having a specified attribute type. More... | |
ObjectType | type () const override |
Returns the type of this object. 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 Types | |
typedef std::set< AttributeRef > | Attributes |
Definition of a set holding attribute objects. More... | |
Protected Member Functions | |
AttributeSet () | |
Creates a new attribute set object. More... | |
~AttributeSet () override | |
Destructs an attribute set object. 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... | |
Protected Attributes | |
Attributes | setAttributes |
Set holding registered attributes. More... | |
Protected Attributes inherited from Ocean::Rendering::Object | |
Lock | objectLock |
Lock for the object. More... | |
This class is the base class for all attribute set objects.
An attribute set holds several attributes like material, texture or blend attributes.
The attributes of this set determine the appearance of a geometry node.
Each geometry node can hold at most one attribute set.
|
protected |
Definition of a set holding attribute objects.
|
protected |
Creates a new attribute set object.
|
overrideprotected |
Destructs an attribute set object.
|
virtual |
Adds a new attribute to this attribute set.
attribute | New attribute to add |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIAttributeSet, and Ocean::Rendering::GLESceneGraph::GLESAttributeSet.
|
virtual |
Returns the attribute with a specific type.
attributeType | Attribute type to return |
|
virtual |
Returns an attribute specified by the index.
index | Index of the attribute to return |
|
virtual |
Returns wehether an attribute with a specific type exists in this set.
attributeType | Attribute type to check |
|
virtual |
Returns the number of registered attributes.
|
virtual |
Removes a registered attribute from this attribute ses.
attribute | Attribute to remove |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIAttributeSet, and Ocean::Rendering::GLESceneGraph::GLESAttributeSet.
|
virtual |
Removes the first registered attribute having a specified attribute type.
attributeType | Type of the attribute to be removed |
|
overridevirtual |
Returns the type of this object.
Reimplemented from Ocean::Rendering::Object.
|
protected |
Set holding registered attributes.