OpenSceneGraph 3.6.5
|
Base class/standard interface for objects which require IO support, cloning and reference counting. More...
#include <Object>
Inherits osg::Referenced.
Inherited by osg::AnimationPath [virtual]
, osg::AudioSink, osg::AudioStream, osg::BufferData, osg::BufferData::ModifiedCallback [virtual]
, osg::BufferObject, osg::Callback [virtual]
, osg::ConvexPlanarOccluder, osg::Drawable::ComputeBoundingBoxCallback, osg::Drawable::CreateVertexArrayStateCallback [virtual]
, osg::Drawable::DrawCallback [virtual]
, osg::DummyObject, osg::EllipsoidModel, osg::GraphicsContext, osg::Node, osg::Node::ComputeBoundingSphereCallback, osg::NodeVisitor [virtual]
, osg::Program::ProgramBinary, osg::RefMatrixd, osg::RefMatrixf, osg::RenderBuffer, osg::Script, osg::ScriptEngine, osg::Shader, osg::ShaderBinary, osg::ShaderComponent, osg::ShaderComposer, osg::Shape, osg::StateAttribute, osg::StateSet, osg::TessellationHints, osg::TransferFunction, osg::Uniform, osg::UserDataContainer, osg::ValueMap, osg::ValueObject, osg::ValueStack, osg::View [virtual]
, osgAnimation::Action, osgAnimation::Action::Callback, osgAnimation::Animation, osgAnimation::AnimationUpdateCallbackBase [virtual]
, osgAnimation::Channel, osgAnimation::MorphTransform, osgAnimation::RigTransform, osgAnimation::StackedTransformElement, osgAnimation::VertexInfluenceMap, osgDB::DatabaseRevision, osgDB::DatabaseRevisions, osgDB::FileList, osgDB::ImageProcessor, osgDB::MapIteratorObject, osgDB::Options, osgDB::ReaderWriter, osgGA::Device, osgGA::Event, osgGA::GUIEventAdapter::TouchData, osgManipulator::DraggerCallback [virtual]
, osgParticle::Counter, osgParticle::Interpolator, osgParticle::Operator, osgParticle::Placer, osgParticle::Shooter, osgPresentation::AnimationMaterial [virtual]
, osgPresentation::HomePosition, osgPresentation::JumpData, osgPresentation::KeyPosition, osgPresentation::PropertyManager [protected]
, osgShadow::ShadowSettings, osgShadow::ShadowTechnique, osgSim::BlinkSequence, osgSim::LightPointSystem, osgSim::ObjectRecordData, osgSim::Sector, osgSim::SequenceGroup, osgSim::ShapeAttributeList, osgTerrain::Layer, osgTerrain::Locator, osgTerrain::TerrainTechnique, osgText::Bevel, osgText::Font, osgText::Style, osgUI::AlignmentSettings, osgUI::ColorPalette, osgUI::FrameSettings, osgUI::Item, osgUI::Style, osgUI::Tab, osgUI::TextSettings, osgUI::Validator, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::SceneView, osgUtil::StateGraph, osgViewer::Keystone, osgViewer::ViewConfig, osgViewer::ViewerBase [virtual]
, osgVolume::ImageDetails, osgVolume::Layer, osgVolume::Locator, osgVolume::Locator::LocatorCallback [virtual]
, osgVolume::Property, osgVolume::VolumeTechnique, osgWidget::BrowserManager, osgWidget::Style, and osgWidget::StyleManager.
Public Types | |
enum | DataVariance { DYNAMIC , STATIC , UNSPECIFIED } |
Public Member Functions | |
Object () | |
Construct an object. | |
Object (bool threadSafeRefUnref) | |
Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. | |
virtual Object * | cloneType () const =0 |
Clone the type of an object, with Object* return type. | |
virtual Object * | clone (const CopyOp &) const =0 |
Clone an object, with Object* return type. | |
virtual bool | isSameKindAs (const Object *) const |
virtual const char * | libraryName () const =0 |
return the name of the object's library. | |
virtual const char * | className () const =0 |
return the name of the object's class type. | |
std::string | getCompoundClassName () const |
return the compound class name that combines the library name and class name. | |
virtual Node * | asNode () |
Convert 'this' into a Node pointer if Object is a Node, otherwise return 0. | |
virtual const Node * | asNode () const |
convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0. | |
virtual NodeVisitor * | asNodeVisitor () |
Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. | |
virtual const NodeVisitor * | asNodeVisitor () const |
convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. | |
virtual StateSet * | asStateSet () |
Convert 'this' into a StateSet pointer if Object is a StateSet, otherwise return 0. | |
virtual const StateSet * | asStateSet () const |
convert 'const this' into a const StateSet pointer if Object is a StateSet, otherwise return 0. | |
virtual StateAttribute * | asStateAttribute () |
Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. | |
virtual const StateAttribute * | asStateAttribute () const |
convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. | |
virtual Uniform * | asUniform () |
Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. | |
virtual const Uniform * | asUniform () const |
convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. | |
virtual Camera * | asCamera () |
Convert 'this' into a Camera pointer if Node is a Camera, otherwise return 0. | |
virtual const Camera * | asCamera () const |
convert 'const this' into a const Camera pointer if Node is a Camera, otherwise return 0. | |
virtual Drawable * | asDrawable () |
Convert 'this' into a Drawable pointer if Object is a Drawable, otherwise return 0. | |
virtual const Drawable * | asDrawable () const |
convert 'const this' into a const Drawable pointer if Object is a Drawable, otherwise return 0. | |
virtual Callback * | asCallback () |
Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0. | |
virtual const Callback * | asCallback () const |
convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0. | |
virtual CallbackObject * | asCallbackObject () |
Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0. | |
virtual const CallbackObject * | asCallbackObject () const |
convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject, otherwise return 0. | |
virtual UserDataContainer * | asUserDataContainer () |
Convert 'this' into a UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. | |
virtual const UserDataContainer * | asUserDataContainer () const |
convert 'const this' into a const UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. | |
virtual ValueObject * | asValueObject () |
Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. | |
virtual const ValueObject * | asValueObject () const |
Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. | |
virtual Image * | asImage () |
Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. | |
virtual const Image * | asImage () const |
Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. | |
virtual void | setThreadSafeRefUnref (bool threadSafe) |
Set whether to use a mutex to ensure ref() and unref() are thread safe. | |
virtual void | setName (const std::string &name) |
Set the name of object using C++ style string. | |
void | setName (const char *name) |
Set the name of object using a C style string. | |
const std::string & | getName () const |
Get the name of object. | |
void | setDataVariance (DataVariance dv) |
Set the data variance of this object. | |
DataVariance | getDataVariance () const |
Get the data variance of this object. | |
virtual void | computeDataVariance () |
Compute the DataVariance based on an assessment of callback etc. | |
void | setUserDataContainer (osg::UserDataContainer *udc) |
set the UserDataContainer object. | |
template<class T> | |
void | setUserDataContainer (const ref_ptr< T > &udc) |
osg::UserDataContainer * | getUserDataContainer () |
get the UserDataContainer attached to this object. | |
const osg::UserDataContainer * | getUserDataContainer () const |
get the const UserDataContainer attached to this object. | |
osg::UserDataContainer * | 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 void | setUserData (Referenced *obj) |
Set user data, data must be subclassed from Referenced to allow automatic memory handling. | |
template<class T> | |
void | setUserData (const ref_ptr< T > &ud) |
virtual Referenced * | getUserData () |
Get user data. | |
virtual const Referenced * | getUserData () const |
Get const user data. | |
template<typename T> | |
bool | getUserValue (const std::string &name, T &value) const |
Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value. | |
template<typename T> | |
void | 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. | |
virtual void | resizeGLObjectBuffers (unsigned int) |
Resize any per context GLObject buffers to specified size. | |
virtual void | releaseGLObjects (osg::State *=0) const |
If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. | |
template<typename T> | |
BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
provide implementation of osg::Object::getUserValue(..) template | |
Public Member Functions inherited from osg::Referenced | |
Referenced () | |
Referenced (bool threadSafeRefUnref) | |
Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. | |
Referenced (const Referenced &) | |
Referenced & | operator= (const Referenced &) |
bool | getThreadSafeRefUnref () const |
Get whether a mutex is used to ensure ref() and unref() are thread safe. | |
OpenThreads::Mutex * | getRefMutex () const |
Get the mutex used to ensure thread safety of ref()/unref(). | |
int | ref () const |
Increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
int | unref () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. | |
int | unref_nodelete () const |
Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. | |
int | referenceCount () const |
Return the number of pointers currently referencing this object. | |
ObserverSet * | getObserverSet () const |
Get the ObserverSet if one is attached, otherwise return NULL. | |
ObserverSet * | getOrCreateObserverSet () const |
Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. | |
void | addObserver (Observer *observer) const |
Add a Observer that is observing this object, notify the Observer when this object gets deleted. | |
void | removeObserver (Observer *observer) const |
Remove Observer that is observing this object. |
Protected Member Functions | |
virtual | ~Object () |
Object destructor. | |
Protected Member Functions inherited from osg::Referenced | |
virtual | ~Referenced () |
void | signalObserversAndDelete (bool signalDelete, bool doDelete) const |
void | deleteUsingDeleteHandler () const |
Protected Attributes | |
std::string | _name |
DataVariance | _dataVariance |
osg::UserDataContainer * | _userDataContainer |
Protected Attributes inherited from osg::Referenced | |
OpenThreads::AtomicPtr | _observerSet |
OpenThreads::Atomic | _refCount |
Additional Inherited Members | |
Static Public Member Functions inherited from osg::Referenced | |
static OpenThreads::Mutex * | getGlobalReferencedMutex () |
Get the optional global Referenced mutex, this can be shared between all osg::Referenced. | |
static void | setDeleteHandler (DeleteHandler *handler) |
Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. | |
static DeleteHandler * | getDeleteHandler () |
Get a DeleteHandler. |
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.
References _dataVariance, _userDataContainer, osg::Referenced::Referenced(), and UNSPECIFIED.
Referenced by osg::UserDataContainer::addUserObject(), osgPresentation::AnimationMaterial::AnimationMaterial(), osgPresentation::AnimationMaterialCallback::AnimationMaterialCallback(), osg::AnimationPath::AnimationPath(), osgWidget::BrowserManager::BrowserManager(), osg::BufferData::BufferData(), osg::BufferData::BufferData(), osg::Callback::Callback(), osg::StateSet::Callback::Callback(), osgAnimation::Action::Callback::Callback(), osg::GraphicsContext::clone(), osg::Node::clone(), clone(), osg::RefMatrixd::clone(), osg::RefMatrixf::clone(), osg::Shape::clone(), osg::StateAttribute::clone(), osg::StateSet::clone(), osgAnimation::TemplateChannel< DoubleStepSampler >::clone(), osg::GraphicsContext::cloneType(), osg::Node::cloneType(), cloneType(), osg::RefMatrixd::cloneType(), osg::RefMatrixf::cloneType(), osg::Shape::cloneType(), osg::StateAttribute::cloneType(), osg::StateSet::cloneType(), osgAnimation::TemplateChannel< DoubleStepSampler >::cloneType(), osg::Drawable::ComputeBoundingBoxCallback::ComputeBoundingBoxCallback(), osg::Node::ComputeBoundingSphereCallback::ComputeBoundingSphereCallback(), osg::ConvexPlanarOccluder::ConvexPlanarOccluder(), osg::ConvexPlanarOccluder::ConvexPlanarOccluder(), osgParticle::Counter::Counter(), osgParticle::Counter::Counter(), osg::Drawable::CreateVertexArrayStateCallback::CreateVertexArrayStateCallback(), osgManipulator::DraggerCallback::DraggerCallback(), osgManipulator::DraggerCallback::DraggerCallback(), osg::Drawable::DrawCallback::DrawCallback(), osg::DummyObject::DummyObject(), osg::EllipsoidModel::EllipsoidModel(), osgGA::EventHandler::EventHandler(), osg::UserDataContainer::getUserObject(), osg::UserDataContainer::getUserObject(), osg::UserDataContainer::getUserObject(), osg::UserDataContainer::getUserObject(), getUserValue(), osg::ValueMap::getValueOfType(), osg::ValueMap::getValueOfType(), osg::ValueStack::getValueOfType(), osg::ValueStack::getValueOfType(), osgGA::GUIEventHandler::GUIEventHandler(), osgPresentation::HomePosition::HomePosition(), osgDB::ImageProcessor::ImageProcessor(), osgDB::ImageProcessor::ImageProcessor(), osgViewer::InteractiveImageHandler::InteractiveImageHandler(), osgParticle::Interpolator::Interpolator(), osgParticle::Interpolator::Interpolator(), osg::AudioStream::isSameKindAs(), osg::BufferData::isSameKindAs(), osg::BufferObject::isSameKindAs(), osg::GraphicsContext::isSameKindAs(), osg::Node::isSameKindAs(), isSameKindAs(), osg::RefMatrixd::isSameKindAs(), osg::RefMatrixf::isSameKindAs(), osg::Shape::isSameKindAs(), osg::StateAttribute::isSameKindAs(), osg::StateSet::isSameKindAs(), osg::UserDataContainer::isSameKindAs(), osgAnimation::Channel::isSameKindAs(), osgViewer::GraphicsWindow::isSameKindAs(), osgViewer::GraphicsWindowEmbedded::isSameKindAs(), osgViewer::GraphicsWindowWin32::isSameKindAs(), osgViewer::GraphicsWindowX11::isSameKindAs(), osgViewer::PixelBufferWin32::isSameKindAs(), osgViewer::PixelBufferX11::isSameKindAs(), osgUI::Item::Item(), osgPresentation::JumpData::JumpData(), osgPresentation::KeyPosition::KeyPosition(), osgSim::LightPointSystem::LightPointSystem(), osgVolume::Locator::Locator(), osgVolume::Locator::LocatorCallback::LocatorCallback(), osgDB::MapIteratorObject::MapIteratorObject(), osgSim::ShapeAttributeList::META_Object(), osg::BufferData::ModifiedCallback::ModifiedCallback(), osgAnimation::MorphTransform::MorphTransform(), Object(), osgSim::ObjectRecordData::ObjectRecordData(), osgParticle::Operator::Operator(), osgParticle::Operator::Operator(), osgParticle::Placer::Placer(), osgParticle::Placer::Placer(), osgPresentation::PropertyManager::PropertyManager(), osg::ValueStack::push(), osgDB::ReaderWriter::ReaderWriter(), osgDB::ReaderWriter::ReaderWriter(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixd::RefMatrixd(), osg::RefMatrixf::RefMatrixf(), osg::RefMatrixf::RefMatrixf(), osg::RefMatrixf::RefMatrixf(), osg::RefMatrixf::RefMatrixf(), osg::RefMatrixf::RefMatrixf(), osg::RefMatrixf::RefMatrixf(), osgAnimation::RigTransform::RigTransform(), osg::Script::Script(), osgSim::Sector::Sector(), osg::UserDataContainer::setUserObject(), setUserValue(), osg::Shape::Shape(), osgSim::ShapeAttributeList::ShapeAttributeList(), osgParticle::Shooter::Shooter(), osgParticle::Shooter::Shooter(), osgAnimation::StackedTransformElement::StackedTransformElement(), osg::StateAttribute::StateAttribute(), osgUI::Tab::Tab(), osg::TessellationHints::TessellationHints(), osgGA::GUIEventAdapter::TouchData::TouchData(), osgGA::GUIEventAdapter::TouchData::TouchData(), osgAnimation::UpdateFloatUniform::UpdateFloatUniform(), osgAnimation::UpdateMatrixfUniform::UpdateMatrixfUniform(), osgAnimation::UpdateMorphGeometry::UpdateMorphGeometry(), osgAnimation::UpdateRigGeometry::UpdateRigGeometry(), osgAnimation::UpdateVec2fUniform::UpdateVec2fUniform(), osgAnimation::UpdateVec3fUniform::UpdateVec3fUniform(), osgAnimation::UpdateVec4fUniform::UpdateVec4fUniform(), osg::ValueObject::ValueObject(), osg::ValueObject::ValueObject(), osg::ValueObject::ValueObject(), osgAnimation::VertexInfluenceMap::VertexInfluenceMap(), and osgViewer::ViewConfig::ViewConfig().
|
inlineexplicit |
References _dataVariance, _userDataContainer, osg::Referenced::Referenced(), and UNSPECIFIED.
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.
References Object(), and osg::CopyOp::SHALLOW_COPY.
|
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, and osgAnimation::AnimationUpdateCallback< T >.
|
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 >.
Referenced by osg::getCallbackObject(), osg::getCallbackObject(), and osg::runNamedCallbackObjects().
|
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, and osgAnimation::AnimationUpdateCallback< T >.
|
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).
Referenced by osgGA::EventHandler::run().
|
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.
Referenced by osg::State::applyAttribute(), and osg::State::applyAttributeOnTexUnit().
|
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.
Referenced by getUserValue(), and setUserValue().
|
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::BufferData, osg::BufferObject, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawArrayLengths, osg::DrawArrays, osg::DrawArraysIndirect, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUInt, osg::DrawElementsIndirectUShort, osg::DrawElementsUByte, osg::DrawElementsUInt, osg::DrawElementsUShort, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::MultiDrawArrays, osg::MultiDrawArraysIndirect, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::Node, osg::PrimitiveSet, osg::RefMatrixd, osg::RefMatrixf, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::TemplateValueObject< T >, osg::Texture, osg::UserDataContainer, 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::GraphicsWindow, osgViewer::GraphicsWindowEmbedded, osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.
Referenced by getCompoundClassName(), osgAnimation::UpdateUniform< T >::link(), and osgDB::ClassInterface::setProperty().
Clone an object, with Object* return type.
Must be defined by derived classes.
Implemented in osg::AutoTransform, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawArrayLengths, osg::DrawArrays, osg::DrawArraysIndirect, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUInt, osg::DrawElementsIndirectUShort, osg::DrawElementsUByte, osg::DrawElementsUInt, osg::DrawElementsUShort, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::MultiDrawArrays, osg::MultiDrawArraysIndirect, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::Node, osg::RefMatrixd, osg::RefMatrixf, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::TemplateArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateArray< GLdouble, Array::DoubleArrayType, 1, GL_DOUBLE >, osg::TemplateArray< GLfloat, Array::FloatArrayType, 1, GL_FLOAT >, osg::TemplateArray< Matrixd, Array::MatrixdArrayType, 16, GL_DOUBLE >, osg::TemplateArray< Matrixf, Array::MatrixArrayType, 16, GL_FLOAT >, osg::TemplateArray< Quat, Array::QuatArrayType, 4, GL_DOUBLE >, osg::TemplateArray< Vec2, Array::Vec2ArrayType, 2, GL_FLOAT >, osg::TemplateArray< Vec2b, Array::Vec2bArrayType, 2, GL_BYTE >, osg::TemplateArray< Vec2d, Array::Vec2dArrayType, 2, GL_DOUBLE >, osg::TemplateArray< Vec2i, Array::Vec2iArrayType, 2, GL_INT >, osg::TemplateArray< Vec2s, Array::Vec2sArrayType, 2, GL_SHORT >, osg::TemplateArray< Vec2ub, Array::Vec2ubArrayType, 2, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec2ui, Array::Vec2uiArrayType, 2, GL_UNSIGNED_INT >, osg::TemplateArray< Vec2us, Array::Vec2usArrayType, 2, GL_UNSIGNED_SHORT >, osg::TemplateArray< Vec3, Array::Vec3ArrayType, 3, GL_FLOAT >, osg::TemplateArray< Vec3b, Array::Vec3bArrayType, 3, GL_BYTE >, osg::TemplateArray< Vec3d, Array::Vec3dArrayType, 3, GL_DOUBLE >, osg::TemplateArray< Vec3i, Array::Vec3iArrayType, 3, GL_INT >, osg::TemplateArray< Vec3s, Array::Vec3sArrayType, 3, GL_SHORT >, osg::TemplateArray< Vec3ub, Array::Vec3ubArrayType, 3, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec3ui, Array::Vec3uiArrayType, 3, GL_UNSIGNED_INT >, osg::TemplateArray< Vec3us, Array::Vec3usArrayType, 3, GL_UNSIGNED_SHORT >, osg::TemplateArray< Vec4, Array::Vec4ArrayType, 4, GL_FLOAT >, osg::TemplateArray< Vec4b, Array::Vec4bArrayType, 4, GL_BYTE >, osg::TemplateArray< Vec4d, Array::Vec4dArrayType, 4, GL_DOUBLE >, osg::TemplateArray< Vec4i, Array::Vec4iArrayType, 4, GL_INT >, osg::TemplateArray< Vec4s, Array::Vec4sArrayType, 4, GL_SHORT >, osg::TemplateArray< Vec4ub, Array::Vec4ubArrayType, 4, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec4ui, Array::Vec4uiArrayType, 4, GL_UNSIGNED_INT >, osg::TemplateArray< Vec4us, Array::Vec4usArrayType, 4, GL_UNSIGNED_SHORT >, osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateIndexArray< GLbyte, Array::ByteArrayType, 1, GL_BYTE >, osg::TemplateIndexArray< GLint, Array::IntArrayType, 1, GL_INT >, osg::TemplateIndexArray< GLint64, Array::Int64ArrayType, 1, GL_INT64_ARB >, osg::TemplateIndexArray< GLshort, Array::ShortArrayType, 1, GL_SHORT >, osg::TemplateIndexArray< GLubyte, Array::UByteArrayType, 1, GL_UNSIGNED_BYTE >, osg::TemplateIndexArray< GLuint, Array::UIntArrayType, 1, GL_UNSIGNED_INT >, osg::TemplateIndexArray< GLuint64, Array::UInt64ArrayType, 1, GL_UNSIGNED_INT64_ARB >, osg::TemplateIndexArray< GLushort, Array::UShortArrayType, 1, GL_UNSIGNED_SHORT >, osg::TemplateValueObject< T >, osg::Texture, osg::VertexAttribDivisor, osgAnimation::MorphGeometry, osgAnimation::TemplateChannel< SamplerType >, osgAnimation::TemplateChannel< DoubleCubicBezierSampler >, osgAnimation::TemplateChannel< DoubleLinearSampler >, osgAnimation::TemplateChannel< DoubleStepSampler >, osgAnimation::TemplateChannel< FloatCubicBezierSampler >, osgAnimation::TemplateChannel< FloatLinearSampler >, osgAnimation::TemplateChannel< FloatStepSampler >, osgAnimation::TemplateChannel< MatrixLinearSampler >, osgAnimation::TemplateChannel< QuatSphericalLinearSampler >, osgAnimation::TemplateChannel< QuatStepSampler >, osgAnimation::TemplateChannel< Vec2CubicBezierSampler >, osgAnimation::TemplateChannel< Vec2LinearSampler >, osgAnimation::TemplateChannel< Vec2StepSampler >, osgAnimation::TemplateChannel< Vec3CubicBezierSampler >, osgAnimation::TemplateChannel< Vec3LinearSampler >, osgAnimation::TemplateChannel< Vec3StepSampler >, osgAnimation::TemplateChannel< Vec4CubicBezierSampler >, osgAnimation::TemplateChannel< Vec4LinearSampler >, osgAnimation::TemplateChannel< Vec4StepSampler >, osgManipulator::AntiSquish, osgSim::ImpostorSprite, osgText::Font, osgText::Text, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::RenderStage, and osgUtil::StateGraph.
References Object().
Referenced by osgDB::Options::cloneOptions(), and osg::KdTreeBuilder::META_NodeVisitor().
|
pure virtual |
Clone the type of an object, with Object* return type.
Must be defined by derived classes.
Implemented in osg::AutoTransform, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawArrayLengths, osg::DrawArrays, osg::DrawArraysIndirect, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUInt, osg::DrawElementsIndirectUShort, osg::DrawElementsUByte, osg::DrawElementsUInt, osg::DrawElementsUShort, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::MultiDrawArrays, osg::MultiDrawArraysIndirect, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::Node, osg::RefMatrixd, osg::RefMatrixf, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::TemplateArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateArray< GLdouble, Array::DoubleArrayType, 1, GL_DOUBLE >, osg::TemplateArray< GLfloat, Array::FloatArrayType, 1, GL_FLOAT >, osg::TemplateArray< Matrixd, Array::MatrixdArrayType, 16, GL_DOUBLE >, osg::TemplateArray< Matrixf, Array::MatrixArrayType, 16, GL_FLOAT >, osg::TemplateArray< Quat, Array::QuatArrayType, 4, GL_DOUBLE >, osg::TemplateArray< Vec2, Array::Vec2ArrayType, 2, GL_FLOAT >, osg::TemplateArray< Vec2b, Array::Vec2bArrayType, 2, GL_BYTE >, osg::TemplateArray< Vec2d, Array::Vec2dArrayType, 2, GL_DOUBLE >, osg::TemplateArray< Vec2i, Array::Vec2iArrayType, 2, GL_INT >, osg::TemplateArray< Vec2s, Array::Vec2sArrayType, 2, GL_SHORT >, osg::TemplateArray< Vec2ub, Array::Vec2ubArrayType, 2, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec2ui, Array::Vec2uiArrayType, 2, GL_UNSIGNED_INT >, osg::TemplateArray< Vec2us, Array::Vec2usArrayType, 2, GL_UNSIGNED_SHORT >, osg::TemplateArray< Vec3, Array::Vec3ArrayType, 3, GL_FLOAT >, osg::TemplateArray< Vec3b, Array::Vec3bArrayType, 3, GL_BYTE >, osg::TemplateArray< Vec3d, Array::Vec3dArrayType, 3, GL_DOUBLE >, osg::TemplateArray< Vec3i, Array::Vec3iArrayType, 3, GL_INT >, osg::TemplateArray< Vec3s, Array::Vec3sArrayType, 3, GL_SHORT >, osg::TemplateArray< Vec3ub, Array::Vec3ubArrayType, 3, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec3ui, Array::Vec3uiArrayType, 3, GL_UNSIGNED_INT >, osg::TemplateArray< Vec3us, Array::Vec3usArrayType, 3, GL_UNSIGNED_SHORT >, osg::TemplateArray< Vec4, Array::Vec4ArrayType, 4, GL_FLOAT >, osg::TemplateArray< Vec4b, Array::Vec4bArrayType, 4, GL_BYTE >, osg::TemplateArray< Vec4d, Array::Vec4dArrayType, 4, GL_DOUBLE >, osg::TemplateArray< Vec4i, Array::Vec4iArrayType, 4, GL_INT >, osg::TemplateArray< Vec4s, Array::Vec4sArrayType, 4, GL_SHORT >, osg::TemplateArray< Vec4ub, Array::Vec4ubArrayType, 4, GL_UNSIGNED_BYTE >, osg::TemplateArray< Vec4ui, Array::Vec4uiArrayType, 4, GL_UNSIGNED_INT >, osg::TemplateArray< Vec4us, Array::Vec4usArrayType, 4, GL_UNSIGNED_SHORT >, osg::TemplateIndexArray< T, ARRAYTYPE, DataSize, DataType >, osg::TemplateIndexArray< GLbyte, Array::ByteArrayType, 1, GL_BYTE >, osg::TemplateIndexArray< GLint, Array::IntArrayType, 1, GL_INT >, osg::TemplateIndexArray< GLint64, Array::Int64ArrayType, 1, GL_INT64_ARB >, osg::TemplateIndexArray< GLshort, Array::ShortArrayType, 1, GL_SHORT >, osg::TemplateIndexArray< GLubyte, Array::UByteArrayType, 1, GL_UNSIGNED_BYTE >, osg::TemplateIndexArray< GLuint, Array::UIntArrayType, 1, GL_UNSIGNED_INT >, osg::TemplateIndexArray< GLuint64, Array::UInt64ArrayType, 1, GL_UNSIGNED_INT64_ARB >, osg::TemplateIndexArray< GLushort, Array::UShortArrayType, 1, GL_UNSIGNED_SHORT >, osg::TemplateValueObject< T >, osg::Texture, osg::VertexAttribDivisor, osgAnimation::MorphGeometry, osgAnimation::TemplateChannel< SamplerType >, osgAnimation::TemplateChannel< DoubleCubicBezierSampler >, osgAnimation::TemplateChannel< DoubleLinearSampler >, osgAnimation::TemplateChannel< DoubleStepSampler >, osgAnimation::TemplateChannel< FloatCubicBezierSampler >, osgAnimation::TemplateChannel< FloatLinearSampler >, osgAnimation::TemplateChannel< FloatStepSampler >, osgAnimation::TemplateChannel< MatrixLinearSampler >, osgAnimation::TemplateChannel< QuatSphericalLinearSampler >, osgAnimation::TemplateChannel< QuatStepSampler >, osgAnimation::TemplateChannel< Vec2CubicBezierSampler >, osgAnimation::TemplateChannel< Vec2LinearSampler >, osgAnimation::TemplateChannel< Vec2StepSampler >, osgAnimation::TemplateChannel< Vec3CubicBezierSampler >, osgAnimation::TemplateChannel< Vec3LinearSampler >, osgAnimation::TemplateChannel< Vec3StepSampler >, osgAnimation::TemplateChannel< Vec4CubicBezierSampler >, osgAnimation::TemplateChannel< Vec4LinearSampler >, osgAnimation::TemplateChannel< Vec4StepSampler >, osgManipulator::AntiSquish, osgSim::ImpostorSprite, osgText::Font, osgText::Text, osgUtil::PositionalStateContainer, osgUtil::RenderBin, osgUtil::RenderStage, and osgUtil::StateGraph.
References Object().
Referenced by osg::CollectOccludersVisitor::META_NodeVisitor().
|
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.
References className(), and libraryName().
|
inline |
Get the data variance of this object.
References _dataVariance.
Referenced by osg::Drawable::draw(), osgUtil::RenderLeaf::RenderLeaf(), osgUtil::RenderLeaf::set(), and osgUtil::StateGraph::StateGraph().
|
inline |
Get the name of object.
References _name.
Referenced by osgTerrain::CompositeLayer::addLayer(), osg::State::applyShaderCompositionUniform(), osgTerrain::Layer::getCompoundName(), osgTerrain::Layer::getSetName(), osg::runNamedCallbackObjects(), and osgAnimation::UpdateRigGeometry::update().
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.
Referenced by osg::getOrCreateUserObjectOfType(), osgDB::ClassInterface::setProperty(), and setUserValue().
|
virtual |
Get user data.
Reimplemented in osg::DefaultUserDataContainer, osg::UserDataContainer, and osgUtil::StateGraph.
References osg::Referenced::Referenced().
Referenced by osgUtil::Optimizer::isOperationPermissibleForObjectImplementation(), and osgUtil::Optimizer::isOperationPermissibleForObjectImplementation().
|
virtual |
Get const user data.
Reimplemented in osg::DefaultUserDataContainer, osg::UserDataContainer, and osgUtil::StateGraph.
References osg::Referenced::Referenced().
|
inline |
get the UserDataContainer attached to this object.
References _userDataContainer.
Referenced by osg::getCallbackObject(), osg::getCallbackObject(), osgDB::ClassInterface::getProperty(), osg::getUserObject(), osg::getUserObject(), and osg::runNamedCallbackObjects().
|
inline |
get the const UserDataContainer attached to this object.
References _userDataContainer.
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.
References setUserValue().
Referenced by getUserValue(), and osgPresentation::PropertyManager::META_Object().
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
References _userDataContainer, asUserDataContainer(), osg::UserDataContainer::getUserObject(), getUserValue(), and Object().
|
inlinevirtual |
Reimplemented in osg::Array, osg::AudioStream, osg::AutoTransform, osg::BufferData, osg::BufferObject, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawArrayLengths, osg::DrawArrays, osg::DrawArraysIndirect, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUInt, osg::DrawElementsIndirectUShort, osg::DrawElementsUByte, osg::DrawElementsUInt, osg::DrawElementsUShort, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::IndexArray, osg::Light, osg::MultiDrawArrays, osg::MultiDrawArraysIndirect, osg::MultiDrawElementsIndirectUByte, osg::MultiDrawElementsIndirectUInt, osg::MultiDrawElementsIndirectUShort, osg::Node, osg::PrimitiveSet, osg::RefMatrixd, osg::RefMatrixf, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::TemplateValueObject< T >, osg::Texture, osg::UserDataContainer, 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.
References Object().
|
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::BufferData, osg::BufferObject, osg::BufferTemplate< T >, osg::BufferTemplate< std::vector< T > >, osg::ClipPlane, osg::DrawArrayLengths, osg::DrawArrays, osg::DrawArraysIndirect, osg::DrawElementsIndirectUByte, osg::DrawElementsIndirectUInt, osg::DrawElementsIndirectUShort, osg::DrawElementsUByte, osg::DrawElementsUInt, osg::DrawElementsUShort, osg::DrawPixels, osg::GraphicsContext, osg::Hint, osg::Image, osg::ImageSequence, osg::ImageStream, osg::Light, osg::MultiDrawArrays, osg::Node, osg::PrimitiveSet, osg::RefMatrixd, osg::RefMatrixf, osg::ShaderAttribute, osg::Shape, osg::ShapeDrawable, osg::StateAttribute, osg::StateSet, osg::TemplateValueObject< T >, osg::Texture, osg::UserDataContainer, 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::GraphicsWindow, osgViewer::GraphicsWindowEmbedded, osgViewer::GraphicsWindowWin32, osgViewer::GraphicsWindowX11, osgViewer::PixelBufferWin32, and osgViewer::PixelBufferX11.
Referenced by getCompoundClassName().
|
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::BufferData, osg::BufferObject, osg::Camera::DrawCallback, osg::Camera, osg::Drawable, osg::FragmentProgram, osg::FrameBufferObject, osg::Geometry, osg::Group, osg::Node, osg::OcclusionQueryNode, osg::Program, osg::QueryGeometry, osg::RenderBuffer, osg::Sampler, osg::Shader, osg::ShaderAttribute, osg::ShaderComponent, osg::ShaderComposer, osg::StateAttribute, osg::StateSet, osg::Texture, osg::VertexProgram, osg::View, osgDB::SharedStateManager, osgFX::Effect, osgParticle::ParticleSystem, osgParticle::PrecipitationEffect::PrecipitationDrawable, osgParticle::PrecipitationEffect, osgShadow::DebugShadowMap, osgShadow::ParallelSplitShadowMap, osgShadow::ShadowedScene, osgShadow::ShadowMap, osgShadow::ShadowTechnique, osgShadow::ShadowTexture, osgShadow::StandardShadowMap, osgShadow::ViewDependentShadowMap, osgShadow::ViewDependentShadowTechnique, osgSim::OverlayNode, osgSim::SphereSegment, osgTerrain::DisplacementMappingTechnique, osgTerrain::GeometryTechnique, osgTerrain::HeightFieldDrawable, osgTerrain::SharedGeometry, osgTerrain::TerrainTechnique, osgTerrain::TerrainTile, osgText::Font, osgText::Text3D, osgText::Text, osgText::TextBase, osgUI::Widget, osgUtil::RenderBin, osgUtil::RenderStage, osgUtil::SceneView, osgUtil::StateGraph, and osgViewer::Viewer.
|
inlinevirtual |
Resize any per context GLObject buffers to specified size.
Reimplemented in osg::BufferData, osg::BufferObject, osg::Camera::DrawCallback, osg::Camera, osg::Drawable, osg::FragmentProgram, osg::FrameBufferObject, osg::Geometry, osg::Group, osg::Node, osg::PixelDataBufferObject, osg::Program, osg::RenderBuffer, osg::Shader, osg::ShaderAttribute, osg::ShaderComponent, osg::StateAttribute, osg::StateSet, osg::Texture, osg::VertexProgram, osg::View, osgFX::Effect, osgParticle::ParticleSystem, osgParticle::PrecipitationEffect::PrecipitationDrawable, osgParticle::PrecipitationEffect, osgShadow::DebugShadowMap, osgShadow::ParallelSplitShadowMap, osgShadow::ShadowedScene, osgShadow::ShadowMap, osgShadow::ShadowTechnique, osgShadow::ShadowTexture, osgShadow::StandardShadowMap, osgShadow::ViewDependentShadowMap, osgShadow::ViewDependentShadowTechnique, osgSim::OverlayNode, osgSim::SphereSegment, osgTerrain::HeightFieldDrawable, osgTerrain::SharedGeometry, osgText::Font, osgText::GlyphTexture, osgText::Text3D, osgText::Text, osgText::TextBase, osgUI::Widget, osgUtil::SceneView, osgUtil::StateGraph, and osgViewer::Viewer.
|
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.
References _dataVariance.
|
inline |
Set the name of object using a C style string.
References setName().
|
inlinevirtual |
Set the name of object using C++ style string.
Reimplemented in osg::Uniform, and osgAnimation::Channel.
References _name.
Referenced by osg::CallbackObject::CallbackObject(), osg::ScriptEngine::ScriptEngine(), setName(), osgDB::ClassInterface::setProperty(), osgTerrain::Layer::setSetName(), and osg::ValueObject::ValueObject().
|
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.
Referenced by osg::DefaultUserDataContainer::META_Object().
|
inline |
References osg::ref_ptr< T >::get(), and setUserData().
Referenced by setUserData().
|
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 osg::DefaultUserDataContainer, osg::UserDataContainer, and osgUtil::StateGraph.
References osg::Referenced::Referenced().
Referenced by osg::DefaultUserDataContainer::setUserData(), and osg::UserDataContainer::setUserData().
|
inline |
References osg::ref_ptr< T >::get(), and setUserDataContainer().
Referenced by setUserDataContainer().
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.
provide implementation of osg::Object::setUserValue(..) template.
To use this template method you need to include the osg/ValueObject header.
References _userDataContainer, osg::UserDataContainer::addUserObject(), asUserDataContainer(), getOrCreateUserDataContainer(), osg::UserDataContainer::getUserObject(), osg::UserDataContainer::getUserObjectIndex(), Object(), and osg::UserDataContainer::setUserObject().
Referenced by getUserValue().
|
protected |
Referenced by getDataVariance(), Object(), Object(), and setDataVariance().
|
protected |
Referenced by osgWidget::Frame::createSimpleFrame(), osgWidget::Frame::createSimpleFrameWithSingleTexture(), osgWidget::NotifyWidget::focus(), getName(), osgWidget::NotifyWidget::keyPress(), osgWidget::NotifyWidget::keyRelease(), osgWidget::NotifyWidget::mouseDrag(), osgWidget::NotifyWidget::mouseEnter(), osgWidget::NotifyWidget::mouseLeave(), osgWidget::NotifyWidget::mouseOver(), osgWidget::NotifyWidget::mousePush(), osgWidget::NotifyWidget::mouseRelease(), osgWidget::NotifyWidget::mouseScroll(), osgWidget::Frame::Border::setBorderTypeAndName(), osgWidget::Frame::Corner::setCornerTypeAndName(), setName(), and osgWidget::NotifyWidget::unfocus().
|
protected |
Referenced by getUserDataContainer(), getUserDataContainer(), getUserValue(), Object(), Object(), and setUserValue().
![]() | Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0. |