Eidolon
Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | List of all members
OgreGlyphFigure Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for OgreGlyphFigure:
Inheritance graph
Collaboration diagram for OgreGlyphFigure:
Collaboration graph

Public Member Functions

 OgreGlyphFigure (const std::string &name, const std::string &matname, OgreRenderScene *scene) throw (RenderException)
 
virtual ~OgreGlyphFigure ()
 
virtual void fillData (const VertexBuffer *vb, const IndexBuffer *ib, bool deferFill=false, bool doubleSided=false) throw (RenderException)
 
virtual void setGlyphScale (vec3 v)
 
virtual vec3 getGlyphScale () const
 
virtual void setGlyphName (const std::string &name)
 
virtual std::string getGlyphName () const
 
virtual void addGlyphMesh (const std::string &name, const Vec3Matrix *nodes, const Vec3Matrix *norms, const IndexMatrix *inds)
 
- Public Member Functions inherited from OgreBaseFigure< OgreBaseRenderable, GlyphFigure >
 OgreBaseFigure (OgreBaseRenderable *obj, Ogre::SceneNode *node, OgreRenderScene *scene)
 
virtual ~OgreBaseFigure ()
 
OgreBaseRenderablegetRenderable () const
 
virtual const char * getName ()
 
virtual void setPosition (const vec3 &v)
 
virtual void setRotation (const rotator &r)
 
virtual void setScale (const vec3 &v)
 
virtual void setMaterial (const char *mat) throw (RenderException)
 
virtual const char * getMaterial () const
 
virtual std::pair< vec3, vec3getAABB () const
 
virtual void setParent (Figure *fig)
 
void setCameraVisibility (const Camera *cam, bool isVisible)
 
void setVisible (bool isVisible)
 
virtual bool isVisible () const
 
virtual bool isTransparent () const
 
virtual bool isOverlay () const
 
virtual void setTransparent (bool isTrans)
 
virtual void setOverlay (bool isOverlay)
 
virtual void setRenderQueue (sval queue)
 
virtual sval getRenderQueue () const
 
virtual vec3 getPosition (bool isDerived=false) const
 
virtual vec3 getScale (bool isDerived=false) const
 
virtual rotator getRotation (bool isDerived=false) const
 
- Public Member Functions inherited from GlyphFigure
virtual ~GlyphFigure ()
 
- Public Member Functions inherited from Figure
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...
 

Private Types

typedef triple< const Vec3Matrix *, const Vec3Matrix *, const IndexMatrix * > glyphmesh
 
typedef std::map< std::string, glyphmeshglyphmap
 

Static Private Member Functions

static void fillDefaultGlyphs (glyphmap &map)
 

Private Attributes

std::string glyphname
 
glyphmap glyphs
 
vec3 glyphscale
 

Additional Inherited Members

- Protected Attributes inherited from OgreBaseFigure< OgreBaseRenderable, GlyphFigure >
OgreBaseRenderableobj
 
Ogre::SceneNode * node
 The OgreBaseRenderable object which implements the actual rendering operations. More...
 
OgreRenderScenescene
 

Member Typedef Documentation

◆ glyphmap

typedef std::map<std::string,glyphmesh> glyphmap
private

◆ glyphmesh

typedef triple<const Vec3Matrix*, const Vec3Matrix*, const IndexMatrix*> glyphmesh
private

Constructor & Destructor Documentation

◆ OgreGlyphFigure()

OgreGlyphFigure ( const std::string &  name,
const std::string &  matname,
OgreRenderScene scene 
)
throw (RenderException
)
Here is the call graph for this function:

◆ ~OgreGlyphFigure()

virtual ~OgreGlyphFigure ( )
inlinevirtual

Member Function Documentation

◆ addGlyphMesh()

virtual void addGlyphMesh ( const std::string &  name,
const Vec3Matrix nodes,
const Vec3Matrix norms,
const IndexMatrix inds 
)
inlinevirtual

Reimplemented from GlyphFigure.

Here is the call graph for this function:

◆ fillData()

void fillData ( const VertexBuffer vb,
const IndexBuffer ib,
bool  deferFill = false,
bool  doubleSided = false 
)
throw (RenderException
)
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.

Here is the call graph for this function:

◆ fillDefaultGlyphs()

void fillDefaultGlyphs ( glyphmap map)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGlyphName()

virtual std::string getGlyphName ( ) const
inlinevirtual

Reimplemented from GlyphFigure.

◆ getGlyphScale()

virtual vec3 getGlyphScale ( ) const
inlinevirtual

Reimplemented from GlyphFigure.

◆ setGlyphName()

virtual void setGlyphName ( const std::string &  name)
inlinevirtual

Reimplemented from GlyphFigure.

◆ setGlyphScale()

virtual void setGlyphScale ( vec3  v)
inlinevirtual

Reimplemented from GlyphFigure.

Member Data Documentation

◆ glyphname

std::string glyphname
private

◆ glyphs

glyphmap glyphs
private

◆ glyphscale

vec3 glyphscale
private

The documentation for this class was generated from the following files: