2001-09-20 05:19:47 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< HTML >
< HEAD >
< TITLE > class SG_EXPORT osg::NodeVisitor< / TITLE >
< META NAME = "GENERATOR" CONTENT = "DOC++ 3.4.8" >
< / HEAD >
< BODY BGCOLOR = "#ffffff" >
< H2 > class SG_EXPORT < A HREF = "#DOC.DOCU" > osg::NodeVisitor< / A > < / H2 > < / H2 > < BLOCKQUOTE > Visitor for type safe operations on osg::Node's.< / BLOCKQUOTE >
< HR >
< H2 > Inheritance:< / H2 >
2002-07-17 04:07:32 +08:00
< APPLET CODE = "ClassGraph.class" WIDTH = 600 HEIGHT = 95 >
< param name = classes value = "CReferenced,MReferenced.html,CNodeVisitor,MNodeVisitor.html,CCollectOccludersVisitor,MCollectOccludersVisitor.html" >
< param name = before value = "M,M,M^_" >
< param name = after value = "Md_,M,M" >
< param name = indent value = "0,1,1" >
2001-09-20 05:19:47 +08:00
< param name = arrowdir value = "down" >
< / APPLET >
< HR >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > < B > < A HREF = "#DOC.2.76.2" > NodeVisitor< / A > < / B > (<!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > tm=<!1> < A HREF = "NodeVisitor.html#DOC.2.76.1.1" > TRAVERSE_NONE< / A > )
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual < B > < A HREF = "#DOC.2.76.3" > ~NodeVisitor< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.4" > reset< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Method to call to reset visitor.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.5" > setTraversalNumber< / A > < / B > (const int fn)
2001-09-22 10:42:08 +08:00
< DD > < I > Set the traversal number.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const int < B > < A HREF = "#DOC.2.76.6" > getTraversalNumber< / A > < / B > () const
2001-09-22 10:42:08 +08:00
< DD > < I > Get the traversal number.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.7" > setFrameStamp< / A > < / B > (<!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > * fs)
2001-09-22 10:42:08 +08:00
< DD > < I > Set the FrameStamp that this traversal is assoicated with< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > * < B > < A HREF = "#DOC.2.76.8" > getFrameStamp< / A > < / B > () const
2001-09-22 10:42:08 +08:00
< DD > < I > Get the FrameStamp that this traversal is assoicated with< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.9" > setTraversalMask< / A > < / B > (const Node::NodeMask mask)
2001-09-22 10:42:08 +08:00
< DD > < I > Set the TraversalMask of this NodeVisitor.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const Node::NodeMask < B > < A HREF = "#DOC.2.76.10" > getTraversalMask< / A > < / B > () const
2001-09-22 10:42:08 +08:00
< DD > < I > Get the TraversalMask< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.11" > setNodeMaskOverride< / A > < / B > (const Node::NodeMask mask)
2001-09-22 10:42:08 +08:00
< DD > < I > Set the NodeMaskOverride mask.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const Node::NodeMask < B > < A HREF = "#DOC.2.76.12" > getNodeMaskOverride< / A > < / B > () const
2001-09-22 10:42:08 +08:00
< DD > < I > Get the NodeMaskOverride mask< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const bool < B > < A HREF = "#DOC.2.76.13" > validNodeMask< / A > < / B > (const osg::Node& node) const
2001-09-22 10:42:08 +08:00
< DD > < I > Method to called by Node and its subclass' Node::accept() method, if the result is true to be used to cull operations of nodes and their subgraphs.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.76.14" > setTraversalMode< / A > < / B > (const <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > mode)
2001-09-20 05:19:47 +08:00
< DD > < I > Set the traversal mode for Node::traverse() to use when deciding which children of a node to traverse.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline const <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > < B > < A HREF = "#DOC.2.76.15" > getTraversalMode< / A > < / B > () const
2001-09-20 05:19:47 +08:00
< DD > < I > Get the traversal mode< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > void < B > < A HREF = "#DOC.2.76.16" > setTraversalVisitor< / A > < / B > (<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > * nv)
2001-09-20 05:19:47 +08:00
< DD > < I > Set a visitor to handle traversal.< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline <!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > * < B > < A HREF = "#DOC.2.76.17" > getTraversalVisitor< / A > < / B > ()
2001-09-20 05:19:47 +08:00
< DD > < I > Get the traversal visitor, returns NULL if none is attached< / I >
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.18" > traverse< / A > < / B > (Node& node)
2002-02-09 18:54:18 +08:00
< DD > < I > Method for handling traversal of a nodes.< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.19" > pushOntoNodePath< / A > < / B > (Node* node)
2002-02-09 18:54:18 +08:00
< DD > < I > Method called by osg::Node::accept() method before a call the NodeVisitor::apply().< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > inline void < B > < A HREF = "#DOC.2.76.20" > popFromNodePath< / A > < / B > ()
2002-02-09 18:54:18 +08:00
< DD > < I > Method callby osg::Node::accept() method after a call the NodeVisitor::apply().< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > NodePath& < B > < A HREF = "#DOC.2.76.21" > getNodePath< / A > < / B > ()
2002-02-09 18:54:18 +08:00
< DD > < I > Get the non const NodePath from the top most node applied down to the current Node being visited< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > const NodePath& < B > < A HREF = "#DOC.2.76.22" > getNodePath< / A > < / B > () const
2002-02-09 18:54:18 +08:00
< DD > < I > Get the const NodePath from the top most node applied down to the current Node being visited< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > const bool < B > < A HREF = "#DOC.2.76.23" > getLocalToWorldMatrix< / A > < / B > (<!1> < A HREF = "Matrix.html" > Matrix< / A > & matrix, Node* node)
2002-02-11 08:51:45 +08:00
< DD > < I > Get the Local To World Matrix from the NodePath for specified Transform::Mode, and u< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > const bool < B > < A HREF = "#DOC.2.76.24" > getWorldToLocalMatrix< / A > < / B > (<!1> < A HREF = "Matrix.html" > Matrix< / A > & matrix, Node* node)
2002-02-09 18:54:18 +08:00
< DD > < I > Get the World To Local Matrix from the NodePath for specified Transform::Mode< / I >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.25" > apply< / A > < / B > (Node& node)
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.26" > apply< / A > < / B > (<!1> < A HREF = "Geode.html" > Geode< / A > & node)
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.27" > apply< / A > < / B > (<!1> < A HREF = "Billboard.html" > Billboard< / A > & node)
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.28" > apply< / A > < / B > (<!1> < A HREF = "LightSource.html" > LightSource< / A > & node)
2001-12-25 05:56:22 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.29" > apply< / A > < / B > (<!1> < A HREF = "ClipNode.html" > ClipNode< / A > & node)
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.30" > apply< / A > < / B > (<!1> < A HREF = "Group.html" > Group< / A > & node)
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.31" > apply< / A > < / B > (<!1> < A HREF = "Projection.html" > Projection< / A > & node)
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.32" > apply< / A > < / B > (<!1> < A HREF = "Transform.html" > Transform< / A > & node)
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.33" > apply< / A > < / B > (<!1> < A HREF = "Switch.html" > Switch< / A > & node)
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.34" > apply< / A > < / B > (<!1> < A HREF = "LOD.html" > LOD< / A > & node)
2002-04-22 05:53:03 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.35" > apply< / A > < / B > (<!1> < A HREF = "Impostor.html" > Impostor< / A > & node)
2002-06-05 20:35:59 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.36" > apply< / A > < / B > (<!1> < A HREF = "EarthSky.html" > EarthSky< / A > & node)
2002-06-05 20:35:59 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > virtual void < B > < A HREF = "#DOC.2.76.37" > apply< / A > < / B > (<!1> < A HREF = "OccluderNode.html" > OccluderNode< / A > & node)
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Public Members< / H3 > < DD > < DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > enum < B > < A HREF = "#DOC.2.76.1" > TraversalMode< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > int < B > < A HREF = "#DOC.2.76.38" > _traversalNumber< / A > < / B >
2001-09-22 10:42:08 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > > < B > < A HREF = "#DOC.2.76.39" > _frameStamp< / A > < / B >
2001-09-22 10:42:08 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > > < B > < A HREF = "#DOC.2.76.40" > _traversalVisitor< / A > < / B >
2001-09-22 10:42:08 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > < B > < A HREF = "#DOC.2.76.41" > _traversalMode< / A > < / B >
2001-09-22 10:42:08 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > Node::NodeMask < B > < A HREF = "#DOC.2.76.42" > _traversalMask< / A > < / B >
2001-09-20 05:19:47 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > Node::NodeMask < B > < A HREF = "#DOC.2.76.43" > _nodeMaskOverride< / A > < / B >
2002-02-09 18:54:18 +08:00
< DT >
2002-07-17 04:07:32 +08:00
< IMG ALT = "[more]" BORDER = 0 SRC = icon1.gif > NodePath < B > < A HREF = "#DOC.2.76.44" > _nodePath< / A > < / B >
2001-09-20 05:19:47 +08:00
< / DL > < / P >
< / DL >
< HR > < H3 > Inherited from < A HREF = "Referenced.html" > Referenced< / A > :< / H3 >
< DL >
< P > < DL >
< DT > < H3 > Public Methods< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > inline <!1> < A HREF = "Referenced.html" > Referenced< / A > & < B > operator = < / B > (<!1> < A HREF = "Referenced.html" > Referenced< / A > & )
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > ref< / B > () const
< DT >
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref< / B > () const
< DT >
2002-04-22 05:53:03 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline void < B > unref_nodelete< / B > () const
< DT >
2001-09-20 05:19:47 +08:00
< IMG ALT = "o" SRC = icon2.gif > inline const int < B > referenceCount< / B > () const
< / DL > < / P >
< P > < DL >
< DT > < H3 > Protected Fields< / H3 > < DD > < DT >
< IMG ALT = "o" SRC = icon2.gif > mutable int < B > _refCount< / B >
< / DL > < / P >
< / DL >
< A NAME = "DOC.DOCU" > < / A >
< HR >
< H2 > Documentation< / H2 >
< BLOCKQUOTE > Visitor for type safe operations on osg::Node's.
2001-12-25 05:56:22 +08:00
Based on GOF's Visitor pattern. The NodeVisitor
is useful for developing type safe operations to nodes
in the scene graph (as per Visitor pattern), and adds to this
support for optional scene graph traversal to allow
operations to be applied to whole scenes at once. The Visitor
pattern uses a technique of double dispatch as a mechanism to
called the appropriate apply(..) method of the NodeVisitor. To
use this feature one must use the Node::accept(NodeVisitor) which
is extended in each Node subclass, rather than the NodeVisitor
apply directly. So use root->accept(myVisitor); instead of
myVisitor.apply(*root). The later method will bypass the double
dispatch and the appropriate NodeVisitor::apply(..) method will
not be called. < / BLOCKQUOTE >
2001-09-20 05:19:47 +08:00
< DL >
< A NAME = "TraversalMode" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > enum TraversalMode< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < DL >
< A NAME = "TRAVERSE_NONE" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1.1" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > TRAVERSE_NONE< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "TRAVERSE_PARENTS" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1.2" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > TRAVERSE_PARENTS< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "TRAVERSE_ALL_CHILDREN" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1.3" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > TRAVERSE_ALL_CHILDREN< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "TRAVERSE_ACTIVE_CHILDREN" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1.4" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > TRAVERSE_ACTIVE_CHILDREN< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "TRAVERSE_VISITOR" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.1.5" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > TRAVERSE_VISITOR< / B > < / TT >
< DL > < DT > < DD > < / DL > < P > < / DL >
< A NAME = "NodeVisitor" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.2" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > NodeVisitor(<!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > tm=<!1> < A HREF = "NodeVisitor.html#DOC.2.76.1.1" > TRAVERSE_NONE< / A > )< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "~NodeVisitor" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.3" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual ~NodeVisitor()< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "reset" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.4" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void reset()< / B > < / TT >
< DD > Method to call to reset visitor. Useful for your visitor accumulates
2001-12-25 05:56:22 +08:00
state during a traversal, and you plan to reuse the visitor.
2001-09-20 05:19:47 +08:00
To flush that state for the next traversal than call reset() prior
to each traversal.
< DL > < DT > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "setTraversalNumber" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.5" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setTraversalNumber(const int fn)< / B > < / TT >
< DD > Set the traversal number. Typically used to denote the frame count.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTraversalNumber" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.6" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const int getTraversalNumber() const < / B > < / TT >
< DD > Get the traversal number. Typically used to denote the frame count.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setFrameStamp" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.7" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setFrameStamp(<!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > * fs)< / B > < / TT >
< DD > Set the FrameStamp that this traversal is assoicated with
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getFrameStamp" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.8" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > * getFrameStamp() const < / B > < / TT >
< DD > Get the FrameStamp that this traversal is assoicated with
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setTraversalMask" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.9" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setTraversalMask(const Node::NodeMask mask)< / B > < / TT >
< DD > Set the TraversalMask of this NodeVisitor.
The TraversalMask is used by the NodeVisitor::validNodeMask() method
to determine whether to operate on a node and its subgraph.
validNodeMask() is called automaticaly in the Node::accept() method before
any call to NodeVisitor::apply(), apply() is only ever called if validNodeMask
returns true. Note, if NodeVisitor::_traversalMask is 0 then all operations
will be swithced off for all nodes. Whereas setting both _traversalMask and
_nodeMaskOverride to 0xffffffff will allow a visitor to work on all nodes
regardless of their own Node::_nodeMask state.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTraversalMask" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.10" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const Node::NodeMask getTraversalMask() const < / B > < / TT >
< DD > Get the TraversalMask
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setNodeMaskOverride" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.11" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void setNodeMaskOverride(const Node::NodeMask mask)< / B > < / TT >
< DD > Set the NodeMaskOverride mask.
Used in validNodeMask() to determine whether to operate on a node or its
subgraph, by OR'ing NodeVisitor::_nodeMaskOverride with the Node's own Node::_nodeMask.
Typically used to force on nodes which may have
been switched off by their own Node::_nodeMask.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNodeMaskOverride" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.12" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const Node::NodeMask getNodeMaskOverride() const < / B > < / TT >
< DD > Get the NodeMaskOverride mask
< DL > < DT > < DD > < / DL > < P >
< A NAME = "validNodeMask" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.13" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const bool validNodeMask(const osg::Node& node) const < / B > < / TT >
2001-09-22 10:42:08 +08:00
< DD > Method to called by Node and its subclass' Node::accept() method, if the result is true
to be used to cull operations of nodes and their subgraphs.
Return true if the result of a bit wise and of the NodeVisitor::_traversalMask
with the bit or between NodeVistor::_nodeMaskOverride and the Node::_nodeMask.
default values for _traversalMask is 0xffffffff, _nodeMaskOverride is 0x0,
and osg::Node::_nodeMask is 0xffffffff.
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "setTraversalMode" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.14" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setTraversalMode(const <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > mode)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Set the traversal mode for Node::traverse() to use when
deciding which children of a node to traverse. If a
NodeVisitor has been attached via setTraverseVisitor()
and the new mode is not TRAVERSE_VISITOR then the attached
visitor is detached. Default mode is TRAVERSE_NONE.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTraversalMode" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.15" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline const <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > getTraversalMode() const < / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Get the traversal mode
< DL > < DT > < DD > < / DL > < P >
< A NAME = "setTraversalVisitor" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.16" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > void setTraversalVisitor(<!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > * nv)< / B > < / TT >
< DD > Set a visitor to handle traversal.
2001-12-25 05:56:22 +08:00
Overrides the traverse mode setting it to TRAVERSAL_VISITOR.
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getTraversalVisitor" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.17" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline <!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > * getTraversalVisitor()< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DD > Get the traversal visitor, returns NULL if none is attached
< DL > < DT > < DD > < / DL > < P >
< A NAME = "traverse" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.18" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void traverse(Node& node)< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DD > Method for handling traversal of a nodes.
2001-09-20 05:19:47 +08:00
If you intend to use the visitor for actively traversing
the scene graph then make sure the accept() methods call
this method unless they handle traversal directly.
< DL > < DT > < DD > < / DL > < P >
2002-02-09 18:54:18 +08:00
< A NAME = "pushOntoNodePath" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.19" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void pushOntoNodePath(Node* node)< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DD > Method called by osg::Node::accept() method before
a call the NodeVisitor::apply(). The back of the list will,
therefore, be the current node being visited inside the apply(..),
and the rest of the list will be the parental sequence of nodes
from the top most node applied down the graph to the current node.
Note, the user does not typically call pushNodeOnPath() as it
will be called automatically by the Node::accept() method.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "popFromNodePath" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.20" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > inline void popFromNodePath()< / B > < / TT >
< DD > Method callby osg::Node::accept() method after
a call the NodeVisitor::apply().
Note, the user does not typically call pushNodeOnPath() as it
will be called automatically by the Node::accept() method.
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNodePath" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.21" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > NodePath& getNodePath()< / B > < / TT >
< DD > Get the non const NodePath from the top most node applied down
to the current Node being visited
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getNodePath" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.22" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > const NodePath& getNodePath() const < / B > < / TT >
< DD > Get the const NodePath from the top most node applied down
to the current Node being visited
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getLocalToWorldMatrix" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.23" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > const bool getLocalToWorldMatrix(<!1> < A HREF = "Matrix.html" > Matrix< / A > & matrix, Node* node)< / B > < / TT >
2002-02-11 08:51:45 +08:00
< DD > Get the Local To World Matrix from the NodePath for specified Transform::Mode, and u
2002-02-09 18:54:18 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "getWorldToLocalMatrix" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.24" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > const bool getWorldToLocalMatrix(<!1> < A HREF = "Matrix.html" > Matrix< / A > & matrix, Node* node)< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DD > Get the World To Local Matrix from the NodePath for specified Transform::Mode
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.25" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(Node& node)< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.26" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Geode.html" > Geode< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.27" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Billboard.html" > Billboard< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.28" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "LightSource.html" > LightSource< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.29" > < / A >
2002-06-05 20:35:59 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "ClipNode.html" > ClipNode< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.30" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Group.html" > Group< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.31" > < / A >
2002-04-22 05:53:03 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Projection.html" > Projection< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.32" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Transform.html" > Transform< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.33" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Switch.html" > Switch< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.34" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "LOD.html" > LOD< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.35" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "Impostor.html" > Impostor< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-12-25 05:56:22 +08:00
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.36" > < / A >
2001-12-25 05:56:22 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "EarthSky.html" > EarthSky< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2002-06-05 20:35:59 +08:00
< A NAME = "apply" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.37" > < / A >
2002-06-05 20:35:59 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > virtual void apply(<!1> < A HREF = "OccluderNode.html" > OccluderNode< / A > & node)< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-22 10:42:08 +08:00
< A NAME = "_traversalNumber" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.38" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > int _traversalNumber< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_frameStamp" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.39" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "FrameStamp.html" > FrameStamp< / A > > _frameStamp< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
2001-09-20 05:19:47 +08:00
< A NAME = "_traversalVisitor" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.40" > < / A >
2001-09-20 05:19:47 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "ref_ptr.html" > ref_ptr< / A > < <!1> < A HREF = "NodeVisitor.html" > NodeVisitor< / A > > _traversalVisitor< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_traversalMode" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.41" > < / A >
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > <!1> < A HREF = "NodeVisitor.html#DOC.2.76.1" > TraversalMode< / A > _traversalMode< / B > < / TT >
2001-09-22 10:42:08 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_traversalMask" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.42" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Node::NodeMask _traversalMask< / B > < / TT >
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_nodeMaskOverride" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.43" > < / A >
2001-09-22 10:42:08 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > Node::NodeMask _nodeMaskOverride< / B > < / TT >
2002-02-09 18:54:18 +08:00
< DL > < DT > < DD > < / DL > < P >
< A NAME = "_nodePath" > < / A >
2002-07-17 04:07:32 +08:00
< A NAME = "DOC.2.76.44" > < / A >
2002-02-09 18:54:18 +08:00
< DT > < IMG ALT = "o" BORDER = 0 SRC = icon2.gif > < TT > < B > NodePath _nodePath< / B > < / TT >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P > < / DL >
2002-07-17 04:07:32 +08:00
< HR >
< DL > < DT > < B > Direct child classes:
< / B > < DD > < A HREF = "CollectOccludersVisitor.html" > CollectOccludersVisitor< / A > < BR >
< / DL >
2001-09-20 05:19:47 +08:00
< DL > < DT > < DD > < / DL > < P > < P > < I > < A HREF = "index.html" > Alphabetic index< / A > < / I > < I > < A HREF = "HIER.html" > HTML hierarchy of classes< / A > or < A HREF = "HIERjava.html" > Java< / A > < / I > < / P > < HR >
< BR >
This page was generated with the help of < A HREF = "http://docpp.sourceforge.net" > DOC++< / A > .
< / BODY >
< / HTML >