Changeset 13041 for OpenSceneGraph/trunk/include/osg/Group
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Group (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Group
r9599 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 */ … … 32 32 33 33 Group(); 34 34 35 35 /** Copy constructor using CopyOp to manage deep vs shallow copy. */ 36 36 Group(const Group&,const CopyOp& copyop=CopyOp::SHALLOW_COPY); … … 54 54 * The new child node is inserted into the child list 55 55 * before the node at the specified index. No nodes 56 * are removed from the group with this operation. 56 * are removed from the group with this operation. 57 57 */ 58 58 virtual bool insertChild( unsigned int index, Node *child ); … … 60 60 /** Remove Node from Group. 61 61 * If Node is contained in Group then remove it from the child 62 * list, decrement its reference count, and dirty the 62 * list, decrement its reference count, and dirty the 63 63 * bounding sphere to force it to recompute on next getBound() and 64 64 * return true for success. If Node is not found then return false … … 75 75 /** Remove Node from Group. 76 76 * If Node is contained in Group then remove it from the child 77 * list, decrement its reference count, and dirty the 77 * list, decrement its reference count, and dirty the 78 78 * bounding sphere to force it to recompute on next getBound() and 79 79 * return true for success. If Node is not found then return false … … 105 105 * reference count of newNode, and dirty the bounding sphere 106 106 * to force it to recompute on next getBound() and return true. 107 * If origNode is not found then return false and do not 107 * If origNode is not found then return false and do not 108 108 * add newNode. If newNode is NULL then return false and do 109 109 * not remove origNode. Also returns false if newChild is a Scene node. … … 120 120 inline bool containsNode( const Node* node ) const 121 121 { 122 122 123 123 for (NodeList::const_iterator itr=_children.begin(); 124 124 itr!=_children.end(); … … 155 155 156 156 virtual BoundingSphere computeBound() const; 157 157 158 158 protected: 159 159
