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

#include <OgreLodCollapseCost.h>

+ Inheritance diagram for Ogre::LodCollapseCost:

Public Member Functions

virtual ~LodCollapseCost ()
 
virtual Real computeEdgeCollapseCost (LodData *data, LodData::Vertex *src, LodData::Edge *dstEdge)=0
 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 Member Functions

bool isBorderVertex (const LodData::Vertex *vertex) const
 

Detailed Description

Definition at line 39 of file OgreLodCollapseCost.h.

Constructor & Destructor Documentation

virtual Ogre::LodCollapseCost::~LodCollapseCost ( )
inlinevirtual

Definition at line 41 of file OgreLodCollapseCost.h.

Member Function Documentation

virtual Real Ogre::LodCollapseCost::computeEdgeCollapseCost ( LodData data,
LodData::Vertex src,
LodData::Edge dstEdge 
)
pure virtual
virtual void Ogre::LodCollapseCost::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 in Ogre::LodCollapseCostProfiler.

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

This is called after the LodInputProvider has initialized LodData.

Reimplemented in Ogre::LodCollapseCostOutside, Ogre::LodCollapseCostProfiler, and Ogre::LodCollapseCostQuadric.

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

Called from initCollapseCosts for every edge.

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

Called when edge cost gets invalid.

Reimplemented in Ogre::LodCollapseCostQuadric.


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