Changeset 13041 for OpenSceneGraph/trunk/include/osg/Object
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Object (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Object
r12511 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 */ … … 33 33 34 34 /** META_Object macro define the standard clone, isSameKindAs and className methods. 35 * Use when subclassing from Object to make it more convenient to define 36 * the standard pure virtual clone, isSameKindAs and className methods 35 * Use when subclassing from Object to make it more convenient to define 36 * the standard pure virtual clone, isSameKindAs and className methods 37 37 * which are required for all Object subclasses.*/ 38 38 #define META_Object(library,name) \ … … 43 43 virtual const char* className() const { return #name; } 44 44 45 /** Base class/standard interface for objects which require IO support, 45 /** Base class/standard interface for objects which require IO support, 46 46 cloning and reference counting. 47 47 Based on GOF Composite, Prototype and Template Method patterns. … … 107 107 UNSPECIFIED 108 108 }; 109 109 110 110 /** Set the data variance of this object. 111 111 * Can be set to either STATIC for values that do not change over the lifetime of the object, … … 117 117 /** Get the data variance of this object.*/ 118 118 inline DataVariance getDataVariance() const { return _dataVariance; } 119 119 120 120 /** Compute the DataVariance based on an assessment of callback etc.*/ 121 121 virtual void computeDataVariance() {} … … 138 138 /** 139 139 * Set user data, data must be subclassed from Referenced to allow 140 * automatic memory handling. If your own data isn't directly 140 * automatic memory handling. If your own data isn't directly 141 141 * subclassed from Referenced then create an adapter object 142 142 * which points to your own object and handles the memory addressing. … … 149 149 /** Get const user data.*/ 150 150 virtual const Referenced* getUserData() const; 151 151 152 152 153 153 … … 163 163 void setUserValue(const std::string& name, const T& value); 164 164 165 165 166 166 /** Resize any per context GLObject buffers to specified size. */ 167 167 virtual void resizeGLObjectBuffers(unsigned int /*maxSize*/) {} … … 183 183 = new Node().*/ 184 184 virtual ~Object(); 185 185 186 186 std::string _name; 187 187 DataVariance _dataVariance; … … 262 262 } 263 263 } 264 264 265 265 } 266 266
