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

#include <OgreLodCollapseCostQuadric.h>

+ Inheritance diagram for Ogre::LodCollapseCostQuadric:
+ Collaboration diagram for Ogre::LodCollapseCostQuadric:

Classes

struct  TriangleQuadricPlane
 

Public Member Functions

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

void computeTrianglePlaneQuadric (LodData *data, size_t triangleID)
 
void computeVertexQuadric (LodData *data, size_t vertexID)
 
bool isBorderVertex (const LodData::Vertex *vertex) const
 

Protected Attributes

vector< Matrix4 >::type mTrianglePlaneQuadricList
 
vector< Matrix4 >::type mVertexQuadricList
 

Detailed Description

Definition at line 41 of file OgreLodCollapseCostQuadric.h.

Member Function Documentation

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

Returns the collapse cost of the given edge.

Implements Ogre::LodCollapseCost.

void Ogre::LodCollapseCostQuadric::computeTrianglePlaneQuadric ( LodData data,
size_t  triangleID 
)
protected
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.

void Ogre::LodCollapseCostQuadric::computeVertexQuadric ( LodData data,
size_t  vertexID 
)
protected
virtual void Ogre::LodCollapseCostQuadric::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::LodCollapseCostQuadric::updateVertexCollapseCost ( LodData data,
LodData::Vertex vertex 
)
virtual

Called when edge cost gets invalid.

Reimplemented from Ogre::LodCollapseCost.

Member Data Documentation

vector<Matrix4>::type Ogre::LodCollapseCostQuadric::mTrianglePlaneQuadricList
protected

Definition at line 53 of file OgreLodCollapseCostQuadric.h.

vector<Matrix4>::type Ogre::LodCollapseCostQuadric::mVertexQuadricList
protected

Definition at line 54 of file OgreLodCollapseCostQuadric.h.


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