Eidolon
|
#include <OgreRenderTypes.h>
Public Member Functions | |
OgreRibbonFigure (const std::string &name, const std::string &matname, OgreRenderScene *scene) throw (RenderException) | |
virtual | ~OgreRibbonFigure () |
virtual void | setParent (Figure *fig) |
Set the parent of this figure, if `fig' is transformed then the transformation is applied to this figure as well. More... | |
virtual void | notifyRenderSingleObject (Ogre::Renderable *rend, const Ogre::Pass *pass, const Ogre::AutoParamDataSource *source, const Ogre::LightList *pLightList, bool suppressRenderStateChanges) |
virtual const char * | getName () |
Get the figure's name. More... | |
virtual void | setMaterial (const char *mat) throw (RenderException) |
Set the figure's material, this must name an existing material. More... | |
virtual const char * | getMaterial () const |
Get the figure's material name. More... | |
virtual std::pair< vec3, vec3 > | getAABB () const |
virtual void | commit () |
virtual void | fillData (const VertexBuffer *vb, const IndexBuffer *ib, bool deferFill=false, bool doubleSided=false) throw (RenderException) |
virtual void | setVisible (bool isVisible) |
Sets the figure's visibility. More... | |
virtual void | setCameraVisibility (const Camera *cam, bool isVisible) |
virtual bool | isVisible () const |
Returns the figure's visibility state. More... | |
virtual bool | isTransparent () const |
Returns true if the figure includes transparent elements. More... | |
virtual bool | isOverlay () const |
Returns true if the figure is part of the UI overlay rather than an object in space. More... | |
virtual void | setTransparent (bool isTrans) |
Set the transparency state of the figure, this doesn't actually change data but affects how the renderer treates the object. More... | |
virtual void | setOverlay (bool isOverlay) |
Set the overlay state of the figure, this doesn't actually change data but affects how the renderer treates the object. More... | |
virtual void | setRenderQueue (sval queue) |
Get the render queue of this figure; queues set rendering order such that figures in lower queues are rendered first. More... | |
virtual sval | getRenderQueue () const |
Get the figure's render queue. More... | |
virtual void | setPosition (const vec3 &v) |
Set the figure's position in world space. More... | |
virtual void | setRotation (const rotator &r) |
Set the figure's rotation. More... | |
virtual void | setScale (const vec3 &v) |
Set the figure's scale values. More... | |
virtual vec3 | getPosition (bool isDerived=false) const |
Get the figure's position in world space. More... | |
virtual vec3 | getScale (bool isDerived=false) const |
Get the figure's scale values. More... | |
virtual rotator | getRotation (bool isDerived=false) const |
Get the figure's rotation. More... | |
virtual void | setOrientation (const vec3 &orient) |
virtual bool | isCameraOriented () const |
virtual vec3 | getOrientation () const |
virtual void | setNumRibbons (sval num) |
virtual sval | numRibbons () const |
virtual sval | numNodes (sval ribbon) const throw (IndexException) |
virtual void | setMaxNodes (sval num) |
virtual sval | getMaxNodes () |
virtual void | clearRibbons () |
virtual void | removeRibbon (sval ribbon) throw (IndexException) |
virtual void | removeNode (sval ribbon) throw (IndexException) |
virtual void | addNode (sval ribbon, const vec3 &pos, const color &col, real width, const rotator &rot=rotator(), real tex=0.0) throw (IndexException) |
virtual void | setNode (sval ribbon, sval node, const vec3 &pos, const color &col, real width, const rotator &rot=rotator(), real tex=0.0) throw (IndexException) |
virtual vec3 | getNode (sval ribbon, sval node) throw (IndexException) |
virtual quadruple< color, real, rotator, real > | getNodeProps (sval ribbon, sval node) throw (IndexException) |
![]() | |
virtual | ~RibbonFigure () |
virtual sval | getMaxNodes () const |
![]() | |
virtual | ~Figure () |
virtual void | setTransform (const transform &t) |
Set position, rotation, and scale for this figure simultaneously. More... | |
virtual void | setTransform (const vec3 &trans, const vec3 &scale, const rotator &rot) |
Set position, rotation, and scale for this figure simultaneously. More... | |
virtual transform | getTransform (bool isDerived=false) const |
Get the figure's position, scale, and rotation transform. More... | |
virtual void | setMaterial (const Material *mat) throw (RenderException) |
Set's the figure's material. More... | |
Protected Attributes | |
Ogre::BillboardChain * | bbchain |
Ogre::SceneNode * | node |
OgreRenderScene * | scene |
std::string | matname |
std::string | name |
vec3 | orient |
const VertexBuffer * | tempvb |
const IndexBuffer * | tempib |
bool | deleteTemp |
Mutex | mutex |
OgreRibbonFigure | ( | const std::string & | name, |
const std::string & | matname, | ||
OgreRenderScene * | scene | ||
) | |||
throw | ( | RenderException | |
) |
|
virtual |
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
virtual |
|
virtual |
Fill the vertex information using the given buffers, `ib' may be NULL for point figure types. If `deferFill' is true then the actual hardware buffers are filled during the next render cycle rather than immediately. In either case data is filled into local memory buffers first then copied to hardware buffers. This implies that calling this method is thread-safe if `deferFill' is true or if its implementation does nothing regardless of arguments. If `doubleSided' is true and the index buffer defined triangles, create backfaces for triangles with correct normals.
Reimplemented from Figure.
Reimplemented from Figure.
|
inlinevirtual |
Get the figure's material name.
Reimplemented from Figure.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
inlinevirtual |
Get the figure's position in world space.
Reimplemented from Figure.
|
inlinevirtual |
Get the figure's render queue.
Reimplemented from Figure.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Returns true if the figure is part of the UI overlay rather than an object in space.
Reimplemented from Figure.
|
inlinevirtual |
Returns true if the figure includes transparent elements.
Reimplemented from Figure.
|
inlinevirtual |
Returns the figure's visibility state.
Reimplemented from Figure.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
virtual |
Set the visibility for this figure in the given camera, by default a camera can see all figures unless it has been designated as a secondary camera, in which case figures must make themselves explicitly visible to it using this method. This implies that a figure is by default is visible to all primary cameras. All primary cameras are treated the same, so a figure visible to one is visible to all. If `cam' is NULL then visibility is set for all cameras, both primary and secondary, to be `isVisible'.
Reimplemented from Figure.
|
inlinevirtual |
Set the figure's material, this must name an existing material.
Reimplemented from Figure.
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
inlinevirtual |
Reimplemented from RibbonFigure.
|
inlinevirtual |
|
inlinevirtual |
Set the overlay state of the figure, this doesn't actually change data but affects how the renderer treates the object.
Reimplemented from Figure.
|
inlinevirtual |
Set the parent of this figure, if `fig' is transformed then the transformation is applied to this figure as well.
Reimplemented from Figure.
|
inlinevirtual |
Set the figure's position in world space.
Reimplemented from Figure.
|
inlinevirtual |
Get the render queue of this figure; queues set rendering order such that figures in lower queues are rendered first.
Reimplemented from Figure.
|
inlinevirtual |
Set the figure's rotation.
Reimplemented from Figure.
|
inlinevirtual |
Set the figure's scale values.
Reimplemented from Figure.
|
inlinevirtual |
Set the transparency state of the figure, this doesn't actually change data but affects how the renderer treates the object.
Reimplemented from Figure.
|
inlinevirtual |
Sets the figure's visibility.
Reimplemented from Figure.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |