A simplifier for reducing the number of traingles in osg::Geometry
Inheritance:
Public Classes
-
class ContinueSimplificationCallback: public osg::Referenced
Public Methods
-
Simplifier(float sampleRatio=1.0f, float maximumError=0.0f)
-
void setSampleRatio(float sampleRatio)
-
float getSampleRatio() const
-
void setMaximumError(float error)
-
float getMaximumError() const
-
void setContinueSimplificationCallback(ContinueSimplificationCallback* cb)
-
ContinueSimplificationCallback* getContinueSimplificationCallback()
-
const ContinueSimplificationCallback* getContinueSimplificationCallback() const
-
bool continueSimplification(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
-
virtual bool continueSimplificationImplementation(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
-
virtual void apply(osg::Geode& geode)
-
void simplify(osg::Geometry& geometry)
- simply the geometry
-
void simplify(osg::Geometry& geometry, const IndexList& protectedPoints)
- simply the geometry, whilst protecting key points from being modified
Public
-
typedef std::vector<unsigned int> IndexList
-
a list of point indices
Protected Fields
-
float _sampleRatio
-
float _maximumError
-
osg::ref_ptr<ContinueSimplificationCallback> _continueSimplificationCallback
Documentation
A simplifier for reducing the number of traingles in osg::Geometry
- Simplifier(float sampleRatio=1.0f, float maximumError=0.0f)
- void setSampleRatio(float sampleRatio)
- float getSampleRatio() const
- void setMaximumError(float error)
- float getMaximumError() const
- void setContinueSimplificationCallback(ContinueSimplificationCallback* cb)
- ContinueSimplificationCallback* getContinueSimplificationCallback()
- const ContinueSimplificationCallback* getContinueSimplificationCallback() const
- bool continueSimplification(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
- virtual bool continueSimplificationImplementation(float nextError, unsigned int numOriginalPrimitives, unsigned int numRemainingPrimitives) const
- virtual void apply(osg::Geode& geode)
- void simplify(osg::Geometry& geometry)
- simply the geometry
- typedef std::vector<unsigned int> IndexList
- a list of point indices
- a list of point indices
- void simplify(osg::Geometry& geometry, const IndexList& protectedPoints)
- simply the geometry, whilst protecting key points from being modified
- float _sampleRatio
- float _maximumError
- osg::ref_ptr<ContinueSimplificationCallback> _continueSimplificationCallback
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.