OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::LodCollapseCostProfiler Class Reference

#include <OgreLodCollapseCostProfiler.h>

+ Inheritance diagram for Ogre::LodCollapseCostProfiler:
+ Collaboration diagram for Ogre::LodCollapseCostProfiler:

Classes

struct  ProfiledEdge
 

Public Member Functions

 LodCollapseCostProfiler (LodProfile &profile, LodCollapseCostPtr &costCalculator)
 
virtual Real computeEdgeCollapseCost (LodData *data, LodData::Vertex *src, LodData::Edge *dstEdge)
 Returns the collapse cost of the given edge. More...
 
virtual void computeVertexCollapseCost (LodData *data, LodData::Vertex *vertex, Real &collapseCost, LodData::Vertex *&collapseTo)
 Called by initVertexCollapseCost and updateVertexCollapseCost, when the vertex minimal cost needs to be updated. More...
 
virtual void initCollapseCosts (LodData *data)
 This is called after the LodInputProvider has initialized LodData. More...
 
virtual void initVertexCollapseCost (LodData *data, LodData::Vertex *vertex)
 Called from initCollapseCosts for every edge. More...
 
virtual void updateVertexCollapseCost (LodData *data, LodData::Vertex *vertex)
 Called when edge cost gets invalid. More...
 

Protected Types

typedef vector< bool >::type HasVertexProfileList
 
typedef HashMultiMap
< LodData::Vertex
*, ProfiledEdge
ProfileLookup
 

Protected Member Functions

void injectProfile (LodData *data)
 
bool isBorderVertex (const LodData::Vertex *vertex) const
 

Protected Attributes

LodCollapseCostPtr mCostCalculator
 
HasVertexProfileList mHasProfile
 
LodProfile mProfile
 
ProfileLookup mProfileLookup
 

Detailed Description

Definition at line 41 of file OgreLodCollapseCostProfiler.h.

Member Typedef Documentation

Definition at line 56 of file OgreLodCollapseCostProfiler.h.

Constructor & Destructor Documentation

Ogre::LodCollapseCostProfiler::LodCollapseCostProfiler ( LodProfile profile,
LodCollapseCostPtr costCalculator 
)
inline

Definition at line 45 of file OgreLodCollapseCostProfiler.h.

Member Function Documentation

virtual Real Ogre::LodCollapseCostProfiler::computeEdgeCollapseCost ( LodData data,
LodData::Vertex src,
LodData::Edge dstEdge 
)
virtual

Returns the collapse cost of the given edge.

Implements Ogre::LodCollapseCost.

virtual void Ogre::LodCollapseCostProfiler::computeVertexCollapseCost ( LodData data,
LodData::Vertex vertex,
Real collapseCost,
LodData::Vertex *&  collapseTo 
)
virtual

Called by initVertexCollapseCost and updateVertexCollapseCost, when the vertex minimal cost needs to be updated.

Reimplemented from Ogre::LodCollapseCost.

virtual void Ogre::LodCollapseCostProfiler::initCollapseCosts ( LodData data)
virtual

This is called after the LodInputProvider has initialized LodData.

Reimplemented from Ogre::LodCollapseCost.

virtual void Ogre::LodCollapseCost::initVertexCollapseCost ( LodData data,
LodData::Vertex vertex 
)
virtualinherited

Called from initCollapseCosts for every edge.

void Ogre::LodCollapseCostProfiler::injectProfile ( LodData data)
protected
bool Ogre::LodCollapseCost::isBorderVertex ( const LodData::Vertex vertex) const
protectedinherited
virtual void Ogre::LodCollapseCost::updateVertexCollapseCost ( LodData data,
LodData::Vertex vertex 
)
virtualinherited

Called when edge cost gets invalid.

Reimplemented in Ogre::LodCollapseCostQuadric.

Member Data Documentation

LodCollapseCostPtr Ogre::LodCollapseCostProfiler::mCostCalculator
protected

Definition at line 65 of file OgreLodCollapseCostProfiler.h.

HasVertexProfileList Ogre::LodCollapseCostProfiler::mHasProfile
protected

Definition at line 58 of file OgreLodCollapseCostProfiler.h.

LodProfile Ogre::LodCollapseCostProfiler::mProfile
protected

Definition at line 62 of file OgreLodCollapseCostProfiler.h.

ProfileLookup Ogre::LodCollapseCostProfiler::mProfileLookup
protected

Definition at line 61 of file OgreLodCollapseCostProfiler.h.


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