Ocean
|
This class implements a node and object factory. More...
#include <Factory.h>
Public Member Functions | |
virtual | ~Factory () |
Destructor. | |
virtual ObjectRef | createAbsoluteTransform () const |
Creates a new absolute transform. | |
virtual ObjectRef | createAttributeSet () const |
Creates a new attribute set object. | |
virtual NodeRef | createBillboard () const |
Creates a new billboard object. | |
virtual ObjectRef | createBlendAttribute () const |
Creates a new blend attribute object. | |
virtual ObjectRef | createBox () const |
Creates a new box object. | |
virtual ObjectRef | createCone () const |
Creates a new cone object. | |
virtual ObjectRef | createCylinder () const |
Creates a new cylinder object. | |
virtual ObjectRef | createDepthAttribute () const |
Creates a new depth attribute object. | |
virtual ObjectRef | createDirectionalLight () const |
Creates a new directional light object. | |
virtual ObjectRef | createFrameTexture2D () const |
Creates a new frame texture object. | |
virtual NodeRef | createGeometry () const |
Creates a new geometry object. | |
virtual NodeRef | createGroup () const |
Creates a new group object. | |
virtual ObjectRef | createLines () const |
Creates a new lines object. | |
virtual ObjectRef | createLineStrips () const |
Creates a new line strips object. | |
virtual NodeRef | createLOD () const |
Creates a new LOD object. | |
virtual ObjectRef | createMaterial () const |
Creates a new material object. | |
virtual ObjectRef | createMediaTexture2D () const |
Creates a new media texture object. | |
virtual ObjectRef | createParallelView () const |
Creates a new parallel view object. | |
virtual ObjectRef | createPerspectiveView () const |
Creates a new perspective view object. | |
virtual ObjectRef | createPhantomAttribute () const |
Creates a new phantom attribute object. | |
virtual ObjectRef | createPointLight () const |
Creates a new point light object. | |
virtual ObjectRef | createPoints () const |
Creates a new points object. | |
virtual ObjectRef | createPrimitiveAttribute () const |
Creates a new primitive attribute object. | |
virtual ObjectRef | createQuads () const |
Creates a new quads object. | |
virtual ObjectRef | createQuadStrips () const |
Creates a new quad strips object. | |
virtual NodeRef | createScene () const |
Creates a new scene object. | |
virtual ObjectRef | createShaderProgram () const |
Creates a new shader program object. | |
virtual NodeRef | createSkyBackground () const |
Creates a new sky background object. | |
virtual ObjectRef | createSphere () const |
Creates a new sphere object. | |
virtual ObjectRef | createSpotLight () const |
Creates a new spot light object. | |
virtual ObjectRef | createStereoAttribute () const |
Creates a new stereo attribute object. | |
virtual ObjectRef | createStereoView () const |
Creates a new stereo view object. | |
virtual NodeRef | createSwitch () const |
Creates a new switch object. | |
virtual ObjectRef | createText () const |
Creates a new text object. | |
virtual ObjectRef | createTextureFramebuffer () const |
Creates a new texture framebuffer object. | |
virtual ObjectRef | createTextures () const |
Creates a new texture attribute object. | |
virtual NodeRef | createTransform () const |
Creates a new transform object. | |
virtual ObjectRef | createTriangles () const |
Creates a new triangles object. | |
virtual ObjectRef | createTriangleFans () const |
Creates a new triangle fans object. | |
virtual ObjectRef | createTriangleStrips () const |
Creates a new triangle strips object. | |
virtual NodeRef | createUndistortedBackground () const |
Creates a new undistorted background node. | |
virtual ObjectRef | createVertexSet () const |
Creates a new vertex set object. | |
virtual ObjectRef | createObject (const std::string &type) const |
Creates a new object specified by the object type name. | |
Protected Member Functions | |
Factory () | |
Protected default constructor creating a new Factory. | |
Factory (const Factory &factory)=delete | |
Disabled copy constructor. | |
ObjectRef | createReference (Object *object) const |
Creates a new object reference by a given object. | |
Factory & | operator= (const Factory &factory)=delete |
Disabled copy operator. | |
This class implements a node and object factory.
A factory instance can be received from the associated engine instance.
However, there is no guarantee that all objects are supported for a specific render engine.
Therefore, all factory functions will throw an exception if the selected object is not supported.
|
inlinevirtual |
Destructor.
|
protected |
Protected default constructor creating a new Factory.
|
protecteddelete |
Disabled copy constructor.
factory | Object which would be copied |
|
virtual |
Creates a new absolute transform.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new attribute set object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new billboard object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new blend attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new box object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new cone object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new cylinder object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new depth attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new directional light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new frame texture object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new geometry object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new group object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new lines object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new line strips object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new LOD object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new material object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new media texture object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new object specified by the object type name.
This function may be overloaded if a rendering plugin supports more than the standard objects.
type | The type of the object to be created, must be valid |
NotSupportedException | Is thrown if this function is not supported |
|
virtual |
Creates a new parallel view object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new perspective view object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new phantom attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new point light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new points object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new primitive attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new quads object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new quad strips object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory.
Creates a new object reference by a given object.
object | The object to create a object reference from, must be valid |
|
virtual |
Creates a new scene object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new shader program object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new sky background object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new sphere object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new spot light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new stereo attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new stereo view object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new switch object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new text object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new texture framebuffer object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new texture attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new transform object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new triangle fans object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new triangles object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new triangle strips object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new undistorted background node.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
|
virtual |
Creates a new vertex set object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GLESceneGraph::GLESFactory, and Ocean::Rendering::GlobalIllumination::GIFactory.
Disabled copy operator.
factory | Object which would be copied |