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

#include <OgreLodCollapseCostOutside.h>

+ Inheritance diagram for Ogre::LodCollapseCostOutside:
+ Collaboration diagram for Ogre::LodCollapseCostOutside:

Public Member Functions

 LodCollapseCostOutside (LodCollapseCostPtr costCalculator, Real outsideWeight, Real outsideWalkAngle)
 
 ~LodCollapseCostOutside ()
 
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 Member Functions

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

Protected Attributes

LodCollapseCostPtr mCostCalculator
 
LodOutsideMarkermOutsideMarker
 
Real mOutsideWalkAngle
 
Real mOutsideWeight
 

Detailed Description

Definition at line 41 of file OgreLodCollapseCostOutside.h.

Constructor & Destructor Documentation

Ogre::LodCollapseCostOutside::LodCollapseCostOutside ( LodCollapseCostPtr  costCalculator,
Real  outsideWeight,
Real  outsideWalkAngle 
)
Ogre::LodCollapseCostOutside::~LodCollapseCostOutside ( )

Member Function Documentation

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

Returns the collapse cost of the given edge.

Implements Ogre::LodCollapseCost.

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

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

Reimplemented in Ogre::LodCollapseCostProfiler.

virtual void Ogre::LodCollapseCostOutside::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.

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::LodCollapseCostOutside::mCostCalculator
protected

Definition at line 55 of file OgreLodCollapseCostOutside.h.

LodOutsideMarker* Ogre::LodCollapseCostOutside::mOutsideMarker
protected

Definition at line 56 of file OgreLodCollapseCostOutside.h.

Real Ogre::LodCollapseCostOutside::mOutsideWalkAngle
protected

Definition at line 52 of file OgreLodCollapseCostOutside.h.

Real Ogre::LodCollapseCostOutside::mOutsideWeight
protected

Definition at line 51 of file OgreLodCollapseCostOutside.h.


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