8#ifndef META_OCEAN_RENDERING_GEOMETRY_H
9#define META_OCEAN_RENDERING_GEOMETRY_H
This class is the base class for all rendering geometry nodes.
Definition rendering/Geometry.h:43
std::map< RenderableRef, AttributeSetRef > Renderables
Definition of a map mapping renderable objects to attributes.
Definition rendering/Geometry.h:49
~Geometry() override
Destructs a geometry object.
ObjectType type() const override
Returns the type of this object.
virtual void addRenderable(const RenderableRef &renderable, const AttributeSetRef &attributes)
Adds a new renderable object to this geometry.
virtual RenderableRef renderable(const unsigned int index) const
Returns a specified renderable holds by this geometry object.
Renderables renderables_
Renderables object connected to this geometry.
Definition rendering/Geometry.h:108
virtual void removeRenderable(const RenderableRef &renderable)
Removes a renderable object connected to this geometry.
Geometry()
Creates a new geometry object.
virtual AttributeSetRef attributeSet(const unsigned int index) const
Returns an attribute set connected with a renderable object specified by the index.
virtual unsigned int numberRenderables() const
Returns the number of renderable objects connected to this geometry.
Node()
Creates a new node.
ObjectType
Definition of different object type.
Definition Object.h:62
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
SmartObjectRef< AttributeSet > AttributeSetRef
Definition of a smart object reference holding an attribute set.
Definition AttributeSet.h:32
SmartObjectRef< Renderable > RenderableRef
Definition of a smart object reference holding a renderable node.
Definition Renderable.h:29
SmartObjectRef< Geometry > GeometryRef
Definition of a smart object reference holding a geometry.
Definition rendering/Geometry.h:31
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15