Eidolon
Public Member Functions | Private Attributes | List of all members
TextureVolumeRenderable Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for TextureVolumeRenderable:
Inheritance graph
Collaboration diagram for TextureVolumeRenderable:
Collaboration graph

Public Member Functions

 TextureVolumeRenderable (const std::string &name, const std::string &matname, OgreTextureVolumeFigure *fig, Ogre::SceneManager *mgr)
 
virtual ~TextureVolumeRenderable ()
 
virtual void _updateRenderQueue (Ogre::RenderQueue *queue)
 
virtual void _notifyCurrentCamera (Ogre::Camera *cam)
 
std::pair< sval, planevert * > getPlaneIntersects (vec3 planept, vec3 planenorm)
 
- Public Member Functions inherited from OgreBaseRenderable
 OgreBaseRenderable (const std::string &name, const std::string &matname, Ogre::RenderOperation::OperationType opType, Ogre::SceneManager *mgr) throw (RenderException)
 
virtual ~OgreBaseRenderable ()
 
void setParentObjects (Figure *parent, OgreRenderScene *scene)
 
void setDepthSorting (bool val)
 
MutexgetMutex ()
 
virtual void createBuffers (size_t numVerts, size_t numInds, bool deferCreate=false)
 Create the hardware buffers with the given number of vertices and indices (NOTE: must be executed in renderer thread) More...
 
virtual void destroyBuffers ()
 Delete the hardware and local buffers (NOTE: must be executed in renderer thread) More...
 
virtual void getRenderOperation (Ogre::RenderOperation &op)
 
VertexgetLocalVertBuff ()
 Get (and allocate if needed) the local memory vertex buffer of the same size as the hardware buffer. More...
 
indexvalgetLocalIndBuff ()
 Get (and allocate if needed) the local memory index buffer of the same size as the hardware buffer. More...
 
void commitBuffers (bool commitVert=true, bool commitInd=true)
 Copy the local buffers to the hardware buffers (NOTE: must be executed in renderer thread) More...
 
void commitMatrices (const Matrix< Vertex > *verts, const IndexMatrix *inds)
 Copy the data from matrices to the hardware buffers (NOTE: must be executed in renderer thread) More...
 
void deleteLocalVertBuff ()
 
void deleteLocalIndBuff ()
 
void fillDefaultData (bool deferFill=false)
 
size_t numVertices () const
 
size_t numIndices () const
 
Ogre::RenderOperation::OperationType opType () const
 
Ogre::HardwareVertexBufferSharedPtr getVertexBuffer () const
 
Ogre::HardwareIndexBufferSharedPtr getIndexBuffer () const
 
virtual const Ogre::MaterialPtr & getMaterial () const
 
virtual void setMaterial (const Ogre::MaterialPtr &m)
 
virtual void setMaterial (const std::string &m) throw (RenderException)
 
virtual void getWorldTransforms (Ogre::Matrix4 *xform) const
 
virtual Ogre::Real getSquaredViewDepth (const Ogre::Camera *cam) const
 
virtual const Ogre::LightList & getLights () const
 
virtual const Ogre::String & getMovableType () const
 
virtual const Ogre::AxisAlignedBox & getBoundingBox () const
 
virtual Ogre::Real getBoundingRadius () const
 
virtual void setBoundingBox (vec3 minv, vec3 maxv)
 
virtual void visitRenderables (Ogre::Renderable::Visitor *visitor, bool debugRenderables)
 

Private Attributes

OgreTextureVolumeFigurefig
 
rotator lastCamRot
 
bool cameraMoved
 
real heights [8]
 
intersect bbintersects [6]
 
planevert interpts [6]
 
Matrix< OgreBaseRenderable::Vertexvertices
 
IndexMatrix indices
 

Additional Inherited Members

- Protected Attributes inherited from OgreBaseRenderable
Figureparent
 Parent figure this renderable is used by. More...
 
OgreRenderScenescene
 The root scene which renders this object. More...
 
Ogre::VertexData * vertexData
 
Ogre::HardwareVertexBufferSharedPtr vertBuf
 
Ogre::IndexData * indexData
 
Ogre::RenderOperation::OperationType _opType
 
bool deferFillOp
 
size_t _numVertices
 
size_t _numIndices
 
VertexlocalVertBuff
 Vertex buffer in main memory used to stage data before being committed to video memory. More...
 
indexvallocalIndBuff
 Index buffer in main memory used to stage data before being committed to video memory. More...
 
Ogre::MaterialPtr mat
 
Ogre::AxisAlignedBox aabb
 
Ogre::Real boundRad
 
Ogre::String movableType
 
vec3 lastCamPos
 
bool depthSorting
 
Mutex mutex
 
- Static Protected Attributes inherited from OgreBaseRenderable
static Ogre::HardwareBuffer::Usage vertexBufferUsage =Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY
 Sets vertex buffer to be write only. More...
 
static Ogre::HardwareBuffer::Usage indexBufferUsage =Ogre::HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY
 Sets index buffer to be write only. More...
 

Constructor & Destructor Documentation

◆ TextureVolumeRenderable()

TextureVolumeRenderable ( const std::string &  name,
const std::string &  matname,
OgreTextureVolumeFigure fig,
Ogre::SceneManager *  mgr 
)
inline

◆ ~TextureVolumeRenderable()

virtual ~TextureVolumeRenderable ( )
inlinevirtual

Member Function Documentation

◆ _notifyCurrentCamera()

void _notifyCurrentCamera ( Ogre::Camera *  cam)
virtual

Reimplemented from OgreBaseRenderable.

Here is the call graph for this function:

◆ _updateRenderQueue()

void _updateRenderQueue ( Ogre::RenderQueue *  queue)
virtual

Reimplemented from OgreBaseRenderable.

Here is the call graph for this function:

◆ getPlaneIntersects()

std::pair< sval, planevert * > getPlaneIntersects ( vec3  planept,
vec3  planenorm 
)
Here is the call graph for this function:

Member Data Documentation

◆ bbintersects

intersect bbintersects[6]
private

◆ cameraMoved

bool cameraMoved
private

◆ fig

◆ heights

real heights[8]
private

◆ indices

IndexMatrix indices
private

◆ interpts

planevert interpts[6]
private

◆ lastCamRot

rotator lastCamRot
private

◆ vertices


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