OGRE 1.12.10
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::LodCollapseCostProfiler Class Reference

#include <OgreLodCollapseCostProfiler.h>

Inheritance diagram for Ogre::LodCollapseCostProfiler:

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.
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.
virtual void initCollapseCosts (LodData *data)
 This is called after the LodInputProvider has initialized LodData.
Public Member Functions inherited from Ogre::LodCollapseCost
virtual ~LodCollapseCost ()
virtual void initVertexCollapseCost (LodData *data, LodData::Vertex *vertex)
 Called from initCollapseCosts for every edge.
virtual void updateVertexCollapseCost (LodData *data, LodData::Vertex *vertex)
 Called when edge cost gets invalid.

Constructor & Destructor Documentation

◆ LodCollapseCostProfiler()

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

Member Function Documentation

◆ initCollapseCosts()

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

This is called after the LodInputProvider has initialized LodData.

Reimplemented from Ogre::LodCollapseCost.

◆ computeVertexCollapseCost()

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.

◆ computeEdgeCollapseCost()

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.


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