OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::LodCollapseCostProfiler Class Reference

#include <OgreLodCollapseCostProfiler.h>

+ Inheritance diagram for Ogre::LodCollapseCostProfiler:

Public Member Functions

 LodCollapseCostProfiler (LodProfile &profile, LodCollapseCostPtr &costCalculator)
 
Real computeEdgeCollapseCost (LodData *data, LodData::VertexI srci, LodData::Edge *dstEdge) override
 Returns the collapse cost of the given edge. More...
 
void computeVertexCollapseCost (LodData *data, LodData::VertexI vertexi, Real &collapseCost, LodData::VertexI &collapseToi) override
 Called by initVertexCollapseCost and updateVertexCollapseCost, when the vertex minimal cost needs to be updated. More...
 
void initCollapseCosts (LodData *data) override
 This is called after the LodInputProvider has initialized LodData. More...
 
- Public Member Functions inherited from Ogre::LodCollapseCost
virtual ~LodCollapseCost ()
 
virtual void initVertexCollapseCost (LodData *data, LodData::VertexI vertexi)
 Called from initCollapseCosts for every edge. More...
 
virtual void updateVertexCollapseCost (LodData *data, LodData::VertexI vertexi)
 Called when edge cost gets invalid. More...
 

Constructor & Destructor Documentation

◆ LodCollapseCostProfiler()

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

Member Function Documentation

◆ computeEdgeCollapseCost()

Real Ogre::LodCollapseCostProfiler::computeEdgeCollapseCost ( LodData data,
LodData::VertexI  srci,
LodData::Edge dstEdge 
)
overridevirtual

Returns the collapse cost of the given edge.

Implements Ogre::LodCollapseCost.

◆ computeVertexCollapseCost()

void Ogre::LodCollapseCostProfiler::computeVertexCollapseCost ( LodData data,
LodData::VertexI  vertexi,
Real collapseCost,
LodData::VertexI collapseToi 
)
overridevirtual

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

Reimplemented from Ogre::LodCollapseCost.

◆ initCollapseCosts()

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

This is called after the LodInputProvider has initialized LodData.

Reimplemented from Ogre::LodCollapseCost.


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