Public Member Functions |
| Simplifier (double sampleRatio=1.0, double maximumError=FLT_MAX, double maximumLength=0.0) |
| META_NodeVisitor ("osgUtil","Simplifier") void setSampleRatio(float sampleRatio) |
float | getSampleRatio () const |
void | setMaximumError (float error) |
float | getMaximumError () const |
void | setMaximumLength (float length) |
float | getMaximumLength () const |
void | setDoTriStrip (bool on) |
bool | getDoTriStrip () const |
void | setSmoothing (bool on) |
bool | getSmoothing () 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) |
void | simplify (osg::Geometry &geometry, const IndexList &protectedPoints) |
| a list of point indices
|
| NodeVisitor (TraversalMode tm=TRAVERSE_NONE) |
| NodeVisitor (VisitorType type, TraversalMode tm=TRAVERSE_NONE) |
virtual | ~NodeVisitor () |
virtual const char * | libraryName () const |
virtual const char * | className () const |
virtual void | reset () |
void | setVisitorType (VisitorType type) |
VisitorType | getVisitorType () const |
void | setTraversalNumber (unsigned int fn) |
unsigned int | getTraversalNumber () const |
void | setFrameStamp (FrameStamp *fs) |
const FrameStamp * | getFrameStamp () const |
void | setTraversalMask (Node::NodeMask mask) |
Node::NodeMask | getTraversalMask () const |
void | setNodeMaskOverride (Node::NodeMask mask) |
Node::NodeMask | getNodeMaskOverride () const |
bool | validNodeMask (const osg::Node &node) const |
void | setTraversalMode (TraversalMode mode) |
TraversalMode | getTraversalMode () const |
void | setUserData (Referenced *obj) |
Referenced * | getUserData () |
const Referenced * | getUserData () const |
void | traverse (Node &node) |
void | pushOntoNodePath (Node *node) |
void | popFromNodePath () |
NodePath & | getNodePath () |
const NodePath & | getNodePath () const |
virtual osg::Vec3 | getEyePoint () const |
virtual osg::Vec3 | getViewPoint () const |
virtual float | getDistanceToEyePoint (const Vec3 &, bool) const |
virtual float | getDistanceFromEyePoint (const Vec3 &, bool) const |
virtual float | getDistanceToViewPoint (const Vec3 &, bool) const |
virtual void | apply (Node &node) |
virtual void | apply (Billboard &node) |
virtual void | apply (Group &node) |
virtual void | apply (ProxyNode &node) |
virtual void | apply (Projection &node) |
virtual void | apply (CoordinateSystemNode &node) |
virtual void | apply (ClipNode &node) |
virtual void | apply (TexGenNode &node) |
virtual void | apply (LightSource &node) |
virtual void | apply (Transform &node) |
virtual void | apply (Camera &node) |
virtual void | apply (CameraView &node) |
virtual void | apply (MatrixTransform &node) |
virtual void | apply (PositionAttitudeTransform &node) |
virtual void | apply (Switch &node) |
virtual void | apply (Sequence &node) |
virtual void | apply (LOD &node) |
virtual void | apply (PagedLOD &node) |
virtual void | apply (ClearNode &node) |
virtual void | apply (OccluderNode &node) |
virtual void | apply (OcclusionQueryNode &node) |
void | setDatabaseRequestHandler (DatabaseRequestHandler *handler) |
DatabaseRequestHandler * | getDatabaseRequestHandler () |
const DatabaseRequestHandler * | getDatabaseRequestHandler () const |
void | setImageRequestHandler (ImageRequestHandler *handler) |
ImageRequestHandler * | getImageRequestHandler () |
const ImageRequestHandler * | getImageRequestHandler () const |
| Referenced () |
| Referenced (bool threadSafeRefUnref) |
| Referenced (const Referenced &) |
Referenced & | operator= (const Referenced &) |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
A simplifier for reducing the number of traingles in osg::Geometry.