openscenegraph
|
#include <Object>
Public Types | |
enum | DataVariance { DYNAMIC , STATIC , UNSPECIFIED } |
Public Member Functions | |
Object () | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
virtual Object * | cloneType () const =0 |
virtual Object * | clone (const CopyOp &) const =0 |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
virtual const char * | className () const =0 |
std::string | getCompoundClassName () const |
virtual Node * | asNode () |
virtual const Node * | asNode () const |
virtual NodeVisitor * | asNodeVisitor () |
virtual const NodeVisitor * | asNodeVisitor () const |
virtual StateSet * | asStateSet () |
virtual const StateSet * | asStateSet () const |
virtual StateAttribute * | asStateAttribute () |
virtual const StateAttribute * | asStateAttribute () const |
virtual Uniform * | asUniform () |
virtual const Uniform * | asUniform () const |
virtual Camera * | asCamera () |
virtual const Camera * | asCamera () const |
virtual Drawable * | asDrawable () |
virtual const Drawable * | asDrawable () const |
virtual Callback * | asCallback () |
virtual const Callback * | asCallback () const |
virtual CallbackObject * | asCallbackObject () |
virtual const CallbackObject * | asCallbackObject () const |
virtual UserDataContainer * | asUserDataContainer () |
virtual const UserDataContainer * | asUserDataContainer () const |
virtual ValueObject * | asValueObject () |
virtual const ValueObject * | asValueObject () const |
virtual Image * | asImage () |
virtual const Image * | asImage () const |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
virtual void | setName (const std::string &name) |
void | setName (const char *name) |
const std::string & | getName () const |
void | setDataVariance (DataVariance dv) |
DataVariance | getDataVariance () const |
virtual void | computeDataVariance () |
void | setUserDataContainer (osg::UserDataContainer *udc) |
template<class T > | |
void | setUserDataContainer (const ref_ptr< T > &udc) |
osg::UserDataContainer * | getUserDataContainer () |
const osg::UserDataContainer * | getUserDataContainer () const |
osg::UserDataContainer * | getOrCreateUserDataContainer () |
virtual void | setUserData (Referenced *obj) |
template<class T > | |
void | setUserData (const ref_ptr< T > &ud) |
virtual Referenced * | getUserData () |
virtual const Referenced * | getUserData () const |
template<typename T > | |
bool | getUserValue (const std::string &name, T &value) const |
template<typename T > | |
void | setUserValue (const std::string &name, const T &value) |
virtual void | resizeGLObjectBuffers (unsigned int) |
virtual void | releaseGLObjects (osg::State *=0) const |
template<typename T > | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
![]() | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
OpenThreads::Mutex * | getRefMutex () const |
int | ref () const |
int | unref () const |
int | unref_nodelete () const |
int | referenceCount () const |
ObserverSet * | getObserverSet () const |
ObserverSet * | getOrCreateObserverSet () const |
void | addObserver (Observer *observer) const |
void | removeObserver (Observer *observer) const |
Protected Member Functions | |
virtual | ~Object () |
![]() | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
![]() | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
![]() | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
static void | setDeleteHandler (DeleteHandler *handler) |
static DeleteHandler * | getDeleteHandler () |
Base class/standard interface for objects which require IO support, cloning and reference counting. Based on GOF Composite, Prototype and Template Method patterns.
|
inline |
Construct an object. Note Object is a pure virtual base class and therefore cannot be constructed on its own, only derived classes which override the clone and className methods are concrete classes and can be constructed.
|
inlineexplicit |
osg::Object::Object | ( | const Object & | , |
const CopyOp & | copyop = CopyOp::SHALLOW_COPY |
||
) |
Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data.
|
protectedvirtual |
Object destructor. Note, is protected so that Objects cannot be deleted other than by being dereferenced and the reference count being zero (see osg::Referenced), preventing the deletion of nodes which are still in use. This also means that Nodes cannot be created on stack i.e Node node will not compile, forcing all nodes to be created on the heap i.e Node* node = new Node().
|
inlinevirtual |
Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0. Equivalent to dynamic_cast<Callback*>(this).
Reimplemented in osg::Callback, osgAnimation::AnimationUpdateCallback< T >, osgAnimation::AnimationUpdateCallback< osg::NodeCallback >, osgAnimation::AnimationUpdateCallback< osg::StateAttributeCallback >, and osgAnimation::AnimationUpdateCallback< osg::UniformCallback >.
|
inlinevirtual |
convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0. Equivalent to dynamic_cast<const Callback*>(this).
Reimplemented in osg::Callback, osgAnimation::AnimationUpdateCallback< T >, osgAnimation::AnimationUpdateCallback< osg::NodeCallback >, osgAnimation::AnimationUpdateCallback< osg::StateAttributeCallback >, and osgAnimation::AnimationUpdateCallback< osg::UniformCallback >.
|
inlinevirtual |
Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0. Equivalent to dynamic_cast<CallbackObject*>(this).
Reimplemented in osg::Callback, osg::CallbackObject, osgAnimation::AnimationUpdateCallback< T >, osgAnimation::AnimationUpdateCallback< osg::NodeCallback >, osgAnimation::AnimationUpdateCallback< osg::StateAttributeCallback >, and osgAnimation::AnimationUpdateCallback< osg::UniformCallback >.
|
inlinevirtual |
convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject, otherwise return 0. Equivalent to dynamic_cast<const CallbackObject*>(this).
Reimplemented in osg::Callback, osg::CallbackObject, osgAnimation::AnimationUpdateCallback< T >, osgAnimation::AnimationUpdateCallback< osg::NodeCallback >, osgAnimation::AnimationUpdateCallback< osg::StateAttributeCallback >, and osgAnimation::AnimationUpdateCallback< osg::UniformCallback >.
|
inlinevirtual |
Convert 'this' into a Camera pointer if Node is a Camera, otherwise return 0. Equivalent to dynamic_cast<Camera*>(this).
Reimplemented in osg::Camera.
|
inlinevirtual |
convert 'const this' into a const Camera pointer if Node is a Camera, otherwise return 0. Equivalent to dynamic_cast<const Camera*>(this).
Reimplemented in osg::Camera.
|
inlinevirtual |
Convert 'this' into a Drawable pointer if Object is a Drawable, otherwise return 0. Equivalent to dynamic_cast<Drawable*>(this).
Reimplemented in osg::Drawable, and osg::Node.
|
inlinevirtual |
convert 'const this' into a const Drawable pointer if Object is a Drawable, otherwise return 0. Equivalent to dynamic_cast<const Drawable*>(this).
Reimplemented in osg::Drawable, and osg::Node.
|
inlinevirtual |
Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. Equivalent to dynamic_cast<Image*>(this).
Reimplemented in osg::BufferData, and osg::Image.
|
inlinevirtual |
Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. Equivalent to dynamic_cast<Image*>(this).
Reimplemented in osg::BufferData, and osg::Image.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. Equivalent to dynamic_cast<NodeVisitor*>(this).
|
inlinevirtual |
convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. Equivalent to dynamic_cast<const NodeVisitor*>(this).
Reimplemented in osg::NodeVisitor.
|
inlinevirtual |
Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. Equivalent to dynamic_cast<StateAttribute*>(this).
Reimplemented in osg::StateAttribute.
|
inlinevirtual |
convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. Equivalent to dynamic_cast<const StateAttribute*>(this).
Reimplemented in osg::StateAttribute.
|
inlinevirtual |
Convert 'this' into a StateSet pointer if Object is a StateSet, otherwise return 0. Equivalent to dynamic_cast<StateSet*>(this).
Reimplemented in osg::StateSet.
|
inlinevirtual |
convert 'const this' into a const StateSet pointer if Object is a StateSet, otherwise return 0. Equivalent to dynamic_cast<const StateSet*>(this).
Reimplemented in osg::StateSet.
|
inlinevirtual |
Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. Equivalent to dynamic_cast<Uniform*>(this).
Reimplemented in osg::Uniform.
|
inlinevirtual |
convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. Equivalent to dynamic_cast<const Uniform*>(this).
Reimplemented in osg::Uniform.
|
inlinevirtual |
Convert 'this' into a UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. Equivalent to dynamic_cast<UserDataContainer*>(this).
Reimplemented in osg::UserDataContainer.
|
inlinevirtual |
convert 'const this' into a const UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. Equivalent to dynamic_cast<const UserDataContainer*>(this).
Reimplemented in osg::UserDataContainer.
|
inlinevirtual |
Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. Equivalent to dynamic_cast<ValueObject*>(this).
|
inlinevirtual |
Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. Equivalent to dynamic_cast<ValueObject*>(this).
Reimplemented in osg::ValueObject.
|
pure virtual |
return the name of the object's class type. Must be defined by derived classes.
Implemented in osg::Array, osg::AudioSink, osg::AudioStream, osg::AutoTransform, osg::BufferObject, osg::BufferData, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::RefMatrixd, osg::RefMatrixf, osg::Node, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, osg::DrawElementsUInt, osg::MultiDrawArrays, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUShort, osg::DrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::DrawArraysIndirect, osg::MultiDrawArraysIndirect, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::Texture, osg::UserDataContainer, osg::TemplateValueObject< T >, osg::VertexAttribDivisor, osgAnimation::Channel, osgAnimation::MorphGeometry, osgDB::Archive, osgFX::Effect, osgGA::AnimationPathManipulator, osgGA::CameraManipulator, osgGA::CameraViewSwitchManipulator, osgGA::DriveManipulator, osgGA::KeySwitchMatrixManipulator, osgGA::SphericalManipulator, osgGA::StandardManipulator, osgGA::StateSetManipulator, osgGA::UFOManipulator, osgManipulator::AntiSquish, osgParticle::CenteredPlacer, osgParticle::Counter, osgParticle::Emitter, osgParticle::Interpolator, osgParticle::Operator, osgParticle::ParticleEffect, osgParticle::ParticleProcessor, osgParticle::Placer, osgParticle::PrecipitationEffect, osgParticle::Program, osgParticle::Shooter, osgParticle::VariableRateCounter, osgShadow::ShadowTechnique, osgSim::ImpostorSprite, osgSim::Sector, osgText::Font, osgText::GlyphTexture, osgText::Text, osgText::TextBase, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::RenderStage, osgUtil::StateGraph, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, osgViewer::GraphicsWindowX11, osgViewer::PixelBufferX11, osgViewer::GraphicsWindow, and osgViewer::GraphicsWindowEmbedded.
Clone an object, with Object* return type. Must be defined by derived classes.
Implemented in osg::GraphicsContext, osg::RefMatrixd, osg::RefMatrixf, osg::Shape, osg::StateAttribute, osg::TemplateArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::DrawPixels, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Node, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, osg::DrawElementsUInt, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUShort, osg::DrawElementsIndirectUInt, osg::ShapeDrawable, osg::StateSet, osg::TemplateValueObject< T >, osg::Texture, osgAnimation::TemplateChannel< SamplerType >, osgSim::ImpostorSprite, osgText::Font, osgUtil::PositionalStateContainer, osgUtil::StateGraph, osg::AutoTransform, osg::ClipPlane, osg::Hint, osg::Light, osg::MultiDrawArrays, osg::MultiDrawElementsIndirectUShort, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::DrawArraysIndirect, osg::MultiDrawArraysIndirect, osg::ShaderAttribute, osg::VertexAttribDivisor, osgAnimation::MorphGeometry, osgManipulator::AntiSquish, osgText::Text, osgUtil::RenderBin, and osgUtil::RenderStage.
|
pure virtual |
Clone the type of an object, with Object* return type. Must be defined by derived classes.
Implemented in osg::TemplateArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >, osg::AutoTransform, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::RefMatrixd, osg::RefMatrixf, osg::Node, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, osg::DrawElementsUInt, osg::MultiDrawArrays, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUShort, osg::DrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::DrawArraysIndirect, osg::MultiDrawArraysIndirect, osg::ShaderAttribute, osg::ShapeDrawable, osg::StateSet, osg::TemplateValueObject< T >, osg::VertexAttribDivisor, osgAnimation::TemplateChannel< SamplerType >, osgAnimation::MorphGeometry, osgManipulator::AntiSquish, osgSim::ImpostorSprite, osgText::Font, osgText::Text, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::RenderStage, osgUtil::StateGraph, osg::Shape, osg::StateAttribute, and osg::Texture.
|
inlinevirtual |
Compute the DataVariance based on an assessment of callback etc.
Reimplemented in osg::Drawable, and osg::StateSet.
|
inline |
return the compound class name that combines the library name and class name.
|
inline |
Get the data variance of this object.
|
inline |
Get the name of object.
osg::UserDataContainer * osg::Object::getOrCreateUserDataContainer | ( | ) |
Convenience method that returns the UserDataContainer, and if one doesn't already exist creates and assigns a DefaultUserDataContainer to the Object and then return this new UserDataContainer.
|
virtual |
Get user data.
Reimplemented in osg::DefaultUserDataContainer, osgUtil::StateGraph, and osg::UserDataContainer.
|
virtual |
Get const user data.
Reimplemented in osg::DefaultUserDataContainer, osgUtil::StateGraph, and osg::UserDataContainer.
|
inline |
get the UserDataContainer attached to this object.
|
inline |
get the const UserDataContainer attached to this object.
bool osg::Object::getUserValue | ( | const std::string & | name, |
T & | value | ||
) | const |
Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value. To use this template method you need to include the osg/ValueObject header.
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool osg::Object::getUserValue | ( | const std::string & | name, |
T & | value | ||
) | const |
provide implementation of osg::Object::getUserValue(..) template
|
inlinevirtual |
Reimplemented in osg::Array, osg::IndexArray, osg::AudioStream, osg::BufferObject, osg::BufferData, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::DrawPixels, osg::Image, osg::ImageSequence, osg::ImageStream, osg::RefMatrixd, osg::RefMatrixf, osg::Node, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, osg::DrawElementsUInt, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUShort, osg::DrawElementsIndirectUInt, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::UserDataContainer, osg::TemplateValueObject< T >, osg::GraphicsContext, osg::AutoTransform, osg::ClipPlane, osg::Hint, osg::Light, osg::MultiDrawArrays, osg::MultiDrawElementsIndirectUShort, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::DrawArraysIndirect, osg::MultiDrawArraysIndirect, osg::ShaderAttribute, osg::Texture, osg::VertexAttribDivisor, osgAnimation::MorphGeometry, osgFX::Effect, osgManipulator::AntiSquish, osgParticle::CenteredPlacer, osgParticle::Counter, osgParticle::Emitter, osgParticle::Interpolator, osgParticle::Operator, osgParticle::ParticleEffect, osgParticle::ParticleProcessor, osgParticle::Placer, osgParticle::PrecipitationEffect, osgParticle::Program, osgParticle::Shooter, osgParticle::VariableRateCounter, osgShadow::ShadowTechnique, osgSim::ImpostorSprite, osgSim::Sector, osgText::Font, osgText::Text, osgText::TextBase, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::RenderStage, and osgUtil::StateGraph.
|
pure virtual |
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.
Implemented in osg::Array, osg::AudioSink, osg::AudioStream, osg::AutoTransform, osg::BufferObject, osg::BufferData, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::RefMatrixd, osg::RefMatrixf, osg::Node, osg::PrimitiveSet, osg::DrawArrays, osg::DrawArrayLengths, osg::DrawElementsUByte, osg::DrawElementsUShort, osg::DrawElementsUInt, osg::MultiDrawArrays, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUShort, osg::DrawElementsIndirectUInt, osg::DrawArraysIndirect, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::Texture, osg::UserDataContainer, osg::TemplateValueObject< T >, osg::VertexAttribDivisor, osgAnimation::Channel, osgAnimation::MorphGeometry, osgDB::Archive, osgFX::Effect, osgManipulator::AntiSquish, osgParticle::CenteredPlacer, osgParticle::Counter, osgParticle::Emitter, osgParticle::Interpolator, osgParticle::Operator, osgParticle::ParticleEffect, osgParticle::ParticleProcessor, osgParticle::Placer, osgParticle::PrecipitationEffect, osgParticle::Program, osgParticle::Shooter, osgParticle::VariableRateCounter, osgShadow::ShadowTechnique, osgSim::ImpostorSprite, osgSim::Sector, osgText::Font, osgText::Text, osgText::TextBase, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::StateGraph, osgViewer::GraphicsWindowWin32, osgViewer::PixelBufferWin32, osgViewer::GraphicsWindowX11, osgViewer::PixelBufferX11, osgViewer::GraphicsWindow, and osgViewer::GraphicsWindowEmbedded.
|
inlinevirtual |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. Otherwise, releases OpenGL objects for all graphics contexts.
Reimplemented in osg::Camera, osg::RenderBuffer, osg::FrameBufferObject, osg::Group, osg::Node, osg::View, osgShadow::DebugShadowMap, osgShadow::ParallelSplitShadowMap, osgShadow::ShadowedScene, osgShadow::ShadowMap, osgShadow::ShadowTexture, osgShadow::StandardShadowMap, osgShadow::ViewDependentShadowMap, osgShadow::ViewDependentShadowTechnique, osgSim::OverlayNode, osgTerrain::GeometryTechnique, osgTerrain::TerrainTechnique, osgTerrain::TerrainTile, osgUI::Widget, osgUtil::SceneView, osgShadow::ShadowTechnique, osg::ShaderComposer, osgDB::SharedStateManager, osgParticle::PrecipitationEffect::PrecipitationDrawable, osgTerrain::DisplacementMappingTechnique, osgTerrain::SharedGeometry, osg::Camera::DrawCallback, osg::QueryGeometry, osg::OcclusionQueryNode, osg::Program, osg::Shader, osgFX::Effect, osgParticle::ParticleSystem, osgParticle::PrecipitationEffect, osgSim::SphereSegment, osgTerrain::HeightFieldDrawable, osgText::Font, osgText::Text, osgText::Text3D, osgText::TextBase, osgUtil::RenderBin, osgUtil::RenderStage, osgUtil::StateGraph, osgViewer::Viewer, osg::StateAttribute, osg::BufferObject, osg::BufferData, osg::Drawable, osg::FragmentProgram, osg::Geometry, osg::Sampler, osg::ShaderComponent, osg::ShaderAttribute, osg::StateSet, osg::Texture, and osg::VertexProgram.
|
inlinevirtual |
Resize any per context GLObject buffers to specified size.
Reimplemented in osg::BufferObject, osg::BufferData, osg::PixelDataBufferObject, osg::Camera::DrawCallback, osg::Camera, osg::Drawable, osg::FragmentProgram, osg::RenderBuffer, osg::FrameBufferObject, osg::Geometry, osg::Group, osg::Program, osg::Shader, osg::ShaderComponent, osg::ShaderAttribute, osg::StateSet, osg::Texture, osg::VertexProgram, osg::View, osgFX::Effect, osgParticle::ParticleSystem, osgParticle::PrecipitationEffect, osgParticle::PrecipitationEffect::PrecipitationDrawable, osgShadow::DebugShadowMap, osgShadow::ParallelSplitShadowMap, osgShadow::ShadowedScene, osgShadow::ShadowMap, osgShadow::ShadowTexture, osgShadow::StandardShadowMap, osgShadow::ViewDependentShadowMap, osgShadow::ViewDependentShadowTechnique, osgSim::SphereSegment, osgTerrain::SharedGeometry, osgTerrain::HeightFieldDrawable, osgText::Font, osgText::GlyphTexture, osgText::Text, osgText::Text3D, osgText::TextBase, osgUI::Widget, osgUtil::SceneView, osgUtil::StateGraph, osgViewer::Viewer, osgShadow::ShadowTechnique, osg::Node, osg::StateAttribute, and osgSim::OverlayNode.
|
inline |
Set the data variance of this object. Can be set to either STATIC for values that do not change over the lifetime of the object, or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value can be used by routines such as optimization codes that wish to share static data. UNSPECIFIED is used to specify that the DataVariance hasn't been set yet.
|
inline |
Set the name of object using a C style string.
|
inlinevirtual |
Set the name of object using C++ style string.
Reimplemented in osg::Uniform, and osgAnimation::Channel.
|
virtual |
Set whether to use a mutex to ensure ref() and unref() are thread safe.
Reimplemented from osg::Referenced.
Reimplemented in osg::Drawable, osg::Group, osg::LightSource, osg::Node, osg::Program, osg::StateSet, osg::TexGenNode, osgSim::OverlayNode, osgText::Font, and osgText::GlyphTexture.
|
inline |
|
virtual |
Set user data, data must be subclassed from Referenced to allow automatic memory handling. If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own object and handles the memory addressing.
Reimplemented in osgUtil::StateGraph, osg::DefaultUserDataContainer, and osg::UserDataContainer.
|
inline |
void osg::Object::setUserDataContainer | ( | osg::UserDataContainer * | udc | ) |
set the UserDataContainer object.
void osg::Object::setUserValue | ( | const std::string & | name, |
const T & | value | ||
) |
Convenience method that creates the osg::TemplateValueObject<T> to store the specified value and adds it as a named UserObject. To use this template method you need to include the osg/ValueObject header.
provide implementation of osg::Object::setUserValue(..) template.
|
protected |
|
protected |
|
protected |