openscenegraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgUtil::ShaderGenVisitor Class Reference
Inheritance diagram for osgUtil::ShaderGenVisitor:
osg::NodeVisitor osg::Referenced

Public Member Functions

 ShaderGenVisitor ()
 ShaderGenVisitor (ShaderGenCache *stateCache)
void setStateCache (ShaderGenCache *stateCache)
ShaderGenCachegetStateCache () const
void setRootStateSet (osg::StateSet *stateSet)
 Top level state set applied as the first one.
osg::StateSetgetRootStateSet () const
void apply (osg::Node &node)
void apply (osg::Geode &geode)
void reset ()
- Public Member Functions inherited from osg::NodeVisitor
 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 FrameStampgetFrameStamp () 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)
ReferencedgetUserData ()
const ReferencedgetUserData () const
void traverse (Node &node)
void pushOntoNodePath (Node *node)
void popFromNodePath ()
NodePathgetNodePath ()
const NodePathgetNodePath () 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 (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)
DatabaseRequestHandlergetDatabaseRequestHandler ()
const DatabaseRequestHandlergetDatabaseRequestHandler () const
void setImageRequestHandler (ImageRequestHandler *handler)
ImageRequestHandlergetImageRequestHandler ()
const ImageRequestHandlergetImageRequestHandler () const
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 Referenced (bool threadSafeRefUnref)
 Referenced (const Referenced &)
Referencedoperator= (const Referenced &)
virtual void setThreadSafeRefUnref (bool threadSafe)
bool getThreadSafeRefUnref () const
OpenThreads::MutexgetRefMutex () const
int ref () const
int unref () const
int unref_nodelete () const
int referenceCount () const
ObserverSetgetObserverSet () const
ObserverSetgetOrCreateObserverSet () const
void addObserver (Observer *observer) const
void removeObserver (Observer *observer) const

Protected Member Functions

void update (osg::Drawable *drawable)

Protected Attributes

osg::ref_ptr< ShaderGenCache_stateCache
osg::ref_ptr< osg::State_state
osg::ref_ptr< osg::StateSet_rootStateSet
- Protected Attributes inherited from osg::NodeVisitor
VisitorType _visitorType
unsigned int _traversalNumber
ref_ptr< FrameStamp_frameStamp
TraversalMode _traversalMode
Node::NodeMask _traversalMask
Node::NodeMask _nodeMaskOverride
NodePath _nodePath
ref_ptr< Referenced_userData
ref_ptr< DatabaseRequestHandler_databaseRequestHandler
ref_ptr< ImageRequestHandler_imageRequestHandler
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
OpenThreads::Atomic _refCount

Additional Inherited Members

- Public Types inherited from osg::NodeVisitor
enum  TraversalMode { TRAVERSE_NONE, TRAVERSE_PARENTS, TRAVERSE_ALL_CHILDREN, TRAVERSE_ACTIVE_CHILDREN }
enum  VisitorType {
  NODE_VISITOR = 0, UPDATE_VISITOR, EVENT_VISITOR, COLLECT_OCCLUDER_VISITOR,
  CULL_VISITOR
}
- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
static bool getThreadSafeReferenceCounting ()
static void setDeleteHandler (DeleteHandler *handler)
static DeleteHandlergetDeleteHandler ()

Constructor & Destructor Documentation

osgUtil::ShaderGenVisitor::ShaderGenVisitor ( )
osgUtil::ShaderGenVisitor::ShaderGenVisitor ( ShaderGenCache stateCache)

Member Function Documentation

void osgUtil::ShaderGenVisitor::apply ( osg::Node node)
virtual

Reimplemented from osg::NodeVisitor.

void osgUtil::ShaderGenVisitor::apply ( osg::Geode geode)
virtual

Reimplemented from osg::NodeVisitor.

osg::StateSet* osgUtil::ShaderGenVisitor::getRootStateSet ( ) const
inline
ShaderGenCache* osgUtil::ShaderGenVisitor::getStateCache ( ) const
inline
void osgUtil::ShaderGenVisitor::reset ( )
virtual

Method to call to reset visitor. Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal.

Reimplemented from osg::NodeVisitor.

void osgUtil::ShaderGenVisitor::setRootStateSet ( osg::StateSet stateSet)

Top level state set applied as the first one.

void osgUtil::ShaderGenVisitor::setStateCache ( ShaderGenCache stateCache)
inline
void osgUtil::ShaderGenVisitor::update ( osg::Drawable drawable)
protected

Member Data Documentation

osg::ref_ptr<osg::StateSet> osgUtil::ShaderGenVisitor::_rootStateSet
protected
osg::ref_ptr<osg::State> osgUtil::ShaderGenVisitor::_state
protected
osg::ref_ptr<ShaderGenCache> osgUtil::ShaderGenVisitor::_stateCache
protected

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