OGRE  14.2
Object-Oriented Graphics Rendering Engine
Ogre::LodCollapseCost Class Referenceabstract

#include <OgreLodCollapseCost.h>

+ Inheritance diagram for Ogre::LodCollapseCost:

Public Member Functions

 LodCollapseCost ()
 
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...
 
void setPreventBreakingLines (bool prevent)
 Set true to prevent collapsing edges that would result in the destruction of a line. More...
 
void setPreventPunchingHoles (bool prevent)
 Set true to prevent collapsing edges that would result in the destruction of a triangle. More...
 
virtual void updateVertexCollapseCost (LodData *data, LodData::Vertex *vertex)
 Called when edge cost gets invalid. More...
 

Constructor & Destructor Documentation

◆ LodCollapseCost()

Ogre::LodCollapseCost::LodCollapseCost ( )
inline

◆ ~LodCollapseCost()

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

Member Function Documentation

◆ initCollapseCosts()

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

This is called after the LodInputProvider has initialized LodData.

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

◆ initVertexCollapseCost()

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

Called from initCollapseCosts for every edge.

◆ updateVertexCollapseCost()

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

Called when edge cost gets invalid.

Reimplemented in Ogre::LodCollapseCostQuadric.

◆ computeVertexCollapseCost()

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.

◆ computeEdgeCollapseCost()

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

◆ setPreventPunchingHoles()

void Ogre::LodCollapseCost::setPreventPunchingHoles ( bool  prevent)
inline

Set true to prevent collapsing edges that would result in the destruction of a triangle.

◆ setPreventBreakingLines()

void Ogre::LodCollapseCost::setPreventBreakingLines ( bool  prevent)
inline

Set true to prevent collapsing edges that would result in the destruction of a line.


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