Public Member Functions |
| CullVisitor () |
| CullVisitor (const CullVisitor &) |
| Copy constructor that does a shallow copy.
|
| META_NodeVisitor ("osgUtil","CullVisitor") virtual CullVisitor *clone() const |
virtual void | reset () |
void | setIdentifier (Identifier *identifier) |
Identifier * | getIdentifier () |
const Identifier * | getIdentifier () const |
virtual osg::Vec3 | getEyePoint () const |
virtual osg::Vec3 | getViewPoint () const |
virtual float | getDistanceToEyePoint (const osg::Vec3 &pos, bool withLODScale) const |
virtual float | getDistanceFromEyePoint (const osg::Vec3 &pos, bool withLODScale) const |
virtual float | getDistanceToViewPoint (const osg::Vec3 &pos, bool withLODScale) const |
virtual void | apply (osg::Node &) |
virtual void | apply (osg::Geode &node) |
virtual void | apply (osg::Billboard &node) |
virtual void | apply (osg::LightSource &node) |
virtual void | apply (osg::ClipNode &node) |
virtual void | apply (osg::TexGenNode &node) |
virtual void | apply (osg::Group &node) |
virtual void | apply (osg::Transform &node) |
virtual void | apply (osg::Projection &node) |
virtual void | apply (osg::Switch &node) |
virtual void | apply (osg::LOD &node) |
virtual void | apply (osg::ClearNode &node) |
virtual void | apply (osg::Camera &node) |
virtual void | apply (osg::OccluderNode &node) |
virtual void | apply (osg::OcclusionQueryNode &node) |
void | pushStateSet (const osg::StateSet *ss) |
void | popStateSet () |
void | setStateGraph (StateGraph *rg) |
StateGraph * | getRootStateGraph () |
StateGraph * | getCurrentStateGraph () |
void | setRenderStage (RenderStage *rg) |
RenderStage * | getRenderStage () |
RenderStage * | getCurrentRenderStage () |
osg::Camera * | getCurrentCamera () |
RenderBin * | getCurrentRenderBin () |
void | setCurrentRenderBin (RenderBin *rb) |
void | setCalculatedNearPlane (value_type value) |
value_type | getCalculatedNearPlane () const |
void | setCalculatedFarPlane (value_type value) |
value_type | getCalculatedFarPlane () const |
value_type | computeNearestPointInFrustum (const osg::Matrix &matrix, const osg::Polytope::PlaneList &planes, const osg::Drawable &drawable) |
bool | updateCalculatedNearFar (const osg::Matrix &matrix, const osg::BoundingBox &bb) |
bool | updateCalculatedNearFar (const osg::Matrix &matrix, const osg::Drawable &drawable, bool isBillboard=false) |
void | updateCalculatedNearFar (const osg::Vec3 &pos) |
void | addDrawable (osg::Drawable *drawable, osg::RefMatrix *matrix) |
void | addDrawableAndDepth (osg::Drawable *drawable, osg::RefMatrix *matrix, float depth) |
void | addPositionedAttribute (osg::RefMatrix *matrix, const osg::StateAttribute *attr) |
void | addPositionedTextureAttribute (unsigned int textureUnit, osg::RefMatrix *matrix, const osg::StateAttribute *attr) |
void | computeNearPlane () |
virtual void | popProjectionMatrix () |
virtual bool | clampProjectionMatrixImplementation (osg::Matrixf &projection, double &znear, double &zfar) const |
virtual bool | clampProjectionMatrixImplementation (osg::Matrixd &projection, double &znear, double &zfar) const |
bool | clampProjectionMatrix (osg::Matrixf &projection, value_type &znear, value_type &zfar) const |
bool | clampProjectionMatrix (osg::Matrixd &projection, value_type &znear, value_type &zfar) const |
void | setState (osg::State *state) |
osg::State * | getState () |
const osg::State * | getState () const |
void | setRenderInfo (osg::RenderInfo &renderInfo) |
osg::RenderInfo & | getRenderInfo () |
const osg::RenderInfo & | getRenderInfo () const |
| NodeVisitor (TraversalMode tm=TRAVERSE_NONE) |
| NodeVisitor (VisitorType type, TraversalMode tm=TRAVERSE_NONE) |
virtual | ~NodeVisitor () |
virtual const char * | libraryName () const |
virtual const char * | className () const |
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 void | apply (ProxyNode &node) |
virtual void | apply (CoordinateSystemNode &node) |
virtual void | apply (CameraView &node) |
virtual void | apply (MatrixTransform &node) |
virtual void | apply (PositionAttitudeTransform &node) |
virtual void | apply (Sequence &node) |
virtual void | apply (PagedLOD &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 |
| CullStack () |
| CullStack (const CullStack &cs) |
| ~CullStack () |
void | pushCullingSet () |
void | popCullingSet () |
void | setOccluderList (const ShadowVolumeOccluderList &svol) |
ShadowVolumeOccluderList & | getOccluderList () |
const ShadowVolumeOccluderList & | getOccluderList () const |
void | pushViewport (osg::Viewport *viewport) |
void | popViewport () |
void | pushProjectionMatrix (osg::RefMatrix *matrix) |
void | pushModelViewMatrix (osg::RefMatrix *matrix, Transform::ReferenceFrame referenceFrame) |
void | popModelViewMatrix () |
float | getFrustumVolume () |
float | pixelSize (const Vec3 &v, float radius) const |
float | pixelSize (const BoundingSphere &bs) const |
float | clampedPixelSize (const Vec3 &v, float radius) const |
float | clampedPixelSize (const BoundingSphere &bs) const |
void | disableAndPushOccludersCurrentMask (NodePath &nodePath) |
void | popOccludersCurrentMask (NodePath &nodePath) |
bool | isCulled (const std::vector< Vec3 > &vertices) |
bool | isCulled (const BoundingBox &bb) |
bool | isCulled (const BoundingSphere &bs) |
bool | isCulled (const osg::Node &node) |
void | pushCurrentMask () |
void | popCurrentMask () |
CullingStack & | getClipSpaceCullingStack () |
CullingStack & | getProjectionCullingStack () |
CullingStack & | getModelViewCullingStack () |
CullingSet & | getCurrentCullingSet () |
const CullingSet & | getCurrentCullingSet () const |
osg::Viewport * | getViewport () |
osg::RefMatrix * | getModelViewMatrix () |
osg::RefMatrix * | getProjectionMatrix () |
osg::Matrix | getWindowMatrix () |
const osg::RefMatrix * | getMVPW () |
const osg::Vec3 & | getReferenceViewPoint () const |
void | pushReferenceViewPoint (const osg::Vec3 &viewPoint) |
void | popReferenceViewPoint () |
const osg::Vec3 & | getEyeLocal () const |
const osg::Vec3 & | getViewPointLocal () const |
const osg::Vec3 | getUpLocal () const |
const osg::Vec3 | getLookVectorLocal () const |
| CullSettings () |
| CullSettings (ArgumentParser &arguments) |
| CullSettings (const CullSettings &cs) |
virtual | ~CullSettings () |
CullSettings & | operator= (const CullSettings &settings) |
virtual void | setDefaults () |
void | setInheritanceMask (InheritanceMask mask) |
InheritanceMask | getInheritanceMask () const |
void | setCullSettings (const CullSettings &settings) |
virtual void | inheritCullSettings (const CullSettings &settings) |
virtual void | inheritCullSettings (const CullSettings &settings, unsigned int inheritanceMask) |
void | readEnvironmentalVariables () |
void | readCommandLine (ArgumentParser &arguments) |
void | setInheritanceMaskActionOnAttributeSetting (InheritanceMaskActionOnAttributeSetting action) |
InheritanceMaskActionOnAttributeSetting | getInheritanceMaskActionOnAttributeSetting () const |
void | applyMaskAction (unsigned int maskBit) |
void | setImpostorsActive (bool active) |
bool | getImpostorsActive () const |
void | setImpostorPixelErrorThreshold (float numPixels) |
float | getImpostorPixelErrorThreshold () const |
void | setDepthSortImpostorSprites (bool doDepthSort) |
bool | getDepthSortImpostorSprites () const |
void | setNumberOfFrameToKeepImpostorSprites (int numFrames) |
int | getNumberOfFrameToKeepImpostorSprites () const |
void | setComputeNearFarMode (ComputeNearFarMode cnfm) |
ComputeNearFarMode | getComputeNearFarMode () const |
void | setNearFarRatio (double ratio) |
double | getNearFarRatio () const |
void | setCullingMode (CullingMode mode) |
CullingMode | getCullingMode () const |
void | setCullMask (osg::Node::NodeMask nm) |
osg::Node::NodeMask | getCullMask () const |
void | setCullMaskLeft (osg::Node::NodeMask nm) |
osg::Node::NodeMask | getCullMaskLeft () const |
void | setCullMaskRight (osg::Node::NodeMask nm) |
osg::Node::NodeMask | getCullMaskRight () const |
void | setLODScale (float scale) |
float | getLODScale () const |
void | setSmallFeatureCullingPixelSize (float value) |
float | getSmallFeatureCullingPixelSize () const |
void | setClampProjectionMatrixCallback (ClampProjectionMatrixCallback *cpmc) |
ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () |
const
ClampProjectionMatrixCallback * | getClampProjectionMatrixCallback () const |
void | write (std::ostream &out) |
Basic NodeVisitor implementation for rendering a scene. This visitor traverses the scene graph, collecting transparent and opaque osg::Drawables into a depth sorted transparent bin and a state sorted opaque bin. The opaque bin is rendered first, and then the transparent bin is rendered in order from the furthest osg::Drawable from the eye to the one nearest the eye.