Changeset 13041 for OpenSceneGraph/trunk/include/osg/Node
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Node (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Node
r12897 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 60 60 virtual const char* libraryName() const { return #library; } \ 61 61 virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } } \ 62 62 63 63 64 64 /** Base class for all internal nodes in the scene graph. … … 70 70 71 71 /** Construct a node. 72 Initialize the parent list to empty, node name to "" and 72 Initialize the parent list to empty, node name to "" and 73 73 bounding sphere dirty flag to true.*/ 74 74 Node(); … … 146 146 virtual void ascend(NodeVisitor& nv); 147 147 /** Traverse downwards : calls children's accept method with NodeVisitor.*/ 148 virtual void traverse(NodeVisitor& /*nv*/) {} 148 virtual void traverse(NodeVisitor& /*nv*/) {} 149 149 150 150 /** A vector of osg::Group pointers which is used to store the parent(s) of node.*/ … … 154 154 inline const ParentList& getParents() const { return _parents; } 155 155 156 /** Get the a copy of parent list of node. A copy is returned to 156 /** Get the a copy of parent list of node. A copy is returned to 157 157 * prevent modification of the parent list.*/ 158 158 inline ParentList getParents() { return _parents; } … … 180 180 * The optional Node* haltTraversalAtNode allows the user to prevent traversal beyond a specifed node. */ 181 181 MatrixList getWorldMatrices(const osg::Node* haltTraversalAtNode=0) const; 182 182 183 183 184 184 /** Set update node callback, called during update traversal. */ … … 286 286 inline unsigned int getNumChildrenWithOccluderNodes() const { return _numChildrenWithOccluderNodes; } 287 287 288 288 289 289 /** return true if this node is an OccluderNode or the subgraph below this node are OccluderNodes.*/ 290 290 bool containsOccluderNodes() const; … … 354 354 /** Add a description string to the node.*/ 355 355 void addDescription(const std::string& desc); 356 356 357 357 358 358 /** Set the initial bounding volume to use when computing the overall bounding volume.*/ … … 373 373 { 374 374 _boundingSphere = _initialBound; 375 if (_computeBoundCallback.valid()) 375 if (_computeBoundCallback.valid()) 376 376 _boundingSphere.expandBy(_computeBoundCallback->computeBound(*this)); 377 377 else 378 378 _boundingSphere.expandBy(computeBound()); 379 379 380 380 _boundingSphereComputed = true; 381 381 } … … 459 459 460 460 bool _cullingActive; 461 unsigned int _numChildrenWithCullingDisabled; 461 unsigned int _numChildrenWithCullingDisabled; 462 462 void setNumChildrenWithCullingDisabled(unsigned int num); 463 463 464 unsigned int _numChildrenWithOccluderNodes; 464 unsigned int _numChildrenWithOccluderNodes; 465 465 void setNumChildrenWithOccluderNodes(unsigned int num); 466 466
