Ocean
|
This class implements a node and object factory. More...
Public Member Functions | |
virtual | ~Factory () |
Destructor. More... | |
virtual ObjectRef | createAbsoluteTransform () const |
Creates a new absolute transform. More... | |
virtual ObjectRef | createAttributeSet () const |
Creates a new attribute set object. More... | |
virtual NodeRef | createBillboard () const |
Creates a new billboard object. More... | |
virtual ObjectRef | createBlendAttribute () const |
Creates a new blend attribute object. More... | |
virtual ObjectRef | createBox () const |
Creates a new box object. More... | |
virtual ObjectRef | createCone () const |
Creates a new cone object. More... | |
virtual ObjectRef | createCylinder () const |
Creates a new cylinder object. More... | |
virtual ObjectRef | createDepthAttribute () const |
Creates a new depth attribute object. More... | |
virtual ObjectRef | createDirectionalLight () const |
Creates a new directional light object. More... | |
virtual ObjectRef | createFrameTexture2D () const |
Creates a new frame texture object. More... | |
virtual NodeRef | createGeometry () const |
Creates a new geometry object. More... | |
virtual NodeRef | createGroup () const |
Creates a new group object. More... | |
virtual ObjectRef | createLines () const |
Creates a new lines object. More... | |
virtual ObjectRef | createLineStrips () const |
Creates a new line strips object. More... | |
virtual NodeRef | createLOD () const |
Creates a new LOD object. More... | |
virtual ObjectRef | createMaterial () const |
Creates a new material object. More... | |
virtual ObjectRef | createMediaTexture2D () const |
Creates a new media texture object. More... | |
virtual ObjectRef | createParallelView () const |
Creates a new parallel view object. More... | |
virtual ObjectRef | createPerspectiveView () const |
Creates a new perspective view object. More... | |
virtual ObjectRef | createPhantomAttribute () const |
Creates a new phantom attribute object. More... | |
virtual ObjectRef | createPointLight () const |
Creates a new point light object. More... | |
virtual ObjectRef | createPoints () const |
Creates a new points object. More... | |
virtual ObjectRef | createPrimitiveAttribute () const |
Creates a new primitive attribute object. More... | |
virtual ObjectRef | createQuads () const |
Creates a new quads object. More... | |
virtual ObjectRef | createQuadStrips () const |
Creates a new quad strips object. More... | |
virtual NodeRef | createScene () const |
Creates a new scene object. More... | |
virtual ObjectRef | createShaderProgram () const |
Creates a new shader program object. More... | |
virtual NodeRef | createSkyBackground () const |
Creates a new sky background object. More... | |
virtual ObjectRef | createSphere () const |
Creates a new sphere object. More... | |
virtual ObjectRef | createSpotLight () const |
Creates a new spot light object. More... | |
virtual ObjectRef | createStereoAttribute () const |
Creates a new stereo attribute object. More... | |
virtual ObjectRef | createStereoView () const |
Creates a new stereo view object. More... | |
virtual NodeRef | createSwitch () const |
Creates a new switch object. More... | |
virtual ObjectRef | createText () const |
Creates a new text object. More... | |
virtual ObjectRef | createTextureFramebuffer () const |
Creates a new texture framebuffer object. More... | |
virtual ObjectRef | createTextures () const |
Creates a new texture attribute object. More... | |
virtual NodeRef | createTransform () const |
Creates a new transform object. More... | |
virtual ObjectRef | createTriangles () const |
Creates a new triangles object. More... | |
virtual ObjectRef | createTriangleFans () const |
Creates a new triangle fans object. More... | |
virtual ObjectRef | createTriangleStrips () const |
Creates a new triangle strips object. More... | |
virtual NodeRef | createUndistortedBackground () const |
Creates a new undistorted background node. More... | |
virtual ObjectRef | createVertexSet () const |
Creates a new vertex set object. More... | |
virtual ObjectRef | createObject (const std::string &type) const |
Creates a new object specified by the object type name. More... | |
Protected Member Functions | |
Factory () | |
Protected default constructor creating a new Factory. More... | |
Factory (const Factory &factory)=delete | |
Disabled copy constructor. More... | |
ObjectRef | createReference (Object *object) const |
Creates a new object reference by a given object. More... | |
Factory & | operator= (const Factory &factory)=delete |
Disabled copy operator. More... | |
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new attribute set object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new billboard object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new blend attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new box object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new cone object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new cylinder object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new depth attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new directional light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new group object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new material object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new media texture object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new phantom attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new point light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new points object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new primitive attribute object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new shader program object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new spot light object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new switch object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
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::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new transform object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new triangle fans object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new triangles object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new triangle strips object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new undistorted background node.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
|
virtual |
Creates a new vertex set object.
NotSupportedException | Is thrown if this function is not supported |
Reimplemented in Ocean::Rendering::GlobalIllumination::GIFactory, and Ocean::Rendering::GLESceneGraph::GLESFactory.
Disabled copy operator.
factory | Object which would be copied |