|
| StateSet () |
|
| StateSet (const StateSet &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
|
virtual Object * | cloneType () const |
|
virtual Object * | clone (const CopyOp ©op) const |
|
virtual bool | isSameKindAs (const Object *obj) const |
|
virtual const char * | libraryName () const |
|
virtual const char * | className () const |
|
int | compare (const StateSet &rhs, bool compareAttributeContents=false) const |
|
bool | operator< (const StateSet &rhs) const |
|
bool | operator== (const StateSet &rhs) const |
|
bool | operator!= (const StateSet &rhs) const |
|
virtual StateSet * | asStateSet () |
|
virtual const StateSet * | asStateSet () const |
|
const ParentList & | getParents () const |
|
ParentList | getParents () |
|
Node * | getParent (unsigned int i) |
|
const Node * | getParent (unsigned int i) const |
|
unsigned int | getNumParents () const |
|
virtual void | computeDataVariance () |
|
void | setGlobalDefaults () |
|
void | clear () |
|
void | merge (const StateSet &rhs) |
|
void | setMode (StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
|
void | removeMode (StateAttribute::GLMode mode) |
|
StateAttribute::GLModeValue | getMode (StateAttribute::GLMode mode) const |
|
void | setModeList (ModeList &ml) |
|
ModeList & | getModeList () |
|
const ModeList & | getModeList () const |
|
void | setAttribute (StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
template<class T > |
void | setAttribute (const ref_ptr< T > &attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
void | setAttributeAndModes (StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
|
template<class T > |
void | setAttributeAndModes (const ref_ptr< T > &attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
|
void | removeAttribute (StateAttribute::Type type, unsigned int member=0) |
|
void | removeAttribute (StateAttribute *attribute) |
|
template<class T > |
void | removeAttribute (const ref_ptr< T > &attribute) |
|
StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) |
|
const StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) const |
|
RefAttributePair * | getAttributePair (StateAttribute::Type type, unsigned int member=0) |
|
const RefAttributePair * | getAttributePair (StateAttribute::Type type, unsigned int member=0) const |
|
void | setAttributeList (AttributeList &al) |
|
AttributeList & | getAttributeList () |
|
const AttributeList & | getAttributeList () const |
|
void | setTextureMode (unsigned int unit, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
|
void | removeTextureMode (unsigned int unit, StateAttribute::GLMode mode) |
|
StateAttribute::GLModeValue | getTextureMode (unsigned int unit, StateAttribute::GLMode mode) const |
|
void | setTextureModeList (TextureModeList &tml) |
|
TextureModeList & | getTextureModeList () |
|
const TextureModeList & | getTextureModeList () const |
|
unsigned int | getNumTextureModeLists () const |
|
void | setTextureAttribute (unsigned int unit, StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
template<class T > |
void | setTextureAttribute (unsigned int unit, const ref_ptr< T > &attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
|
void | setTextureAttributeAndModes (unsigned int unit, StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
|
template<class T > |
void | setTextureAttributeAndModes (unsigned int unit, const ref_ptr< T > &attribute, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
void | removeTextureAttribute (unsigned int unit, StateAttribute::Type type) |
|
void | removeTextureAttribute (unsigned int unit, StateAttribute *attribute) |
|
template<class T > |
void | removeTextureAttribute (unsigned int unit, const ref_ptr< T > &attribute) |
|
StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) |
|
const StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) const |
|
RefAttributePair * | getTextureAttributePair (unsigned int unit, StateAttribute::Type type) |
|
const RefAttributePair * | getTextureAttributePair (unsigned int unit, StateAttribute::Type type) const |
|
void | setTextureAttributeList (TextureAttributeList &tal) |
|
TextureAttributeList & | getTextureAttributeList () |
|
const TextureAttributeList & | getTextureAttributeList () const |
|
unsigned int | getNumTextureAttributeLists () const |
|
void | setAssociatedModes (const StateAttribute *attribute, StateAttribute::GLModeValue value) |
|
void | removeAssociatedModes (const StateAttribute *attribute) |
|
void | setAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute, StateAttribute::GLModeValue value) |
|
void | removeAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute) |
|
void | addUniform (Uniform *uniform, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
template<class T > |
void | addUniform (const ref_ptr< T > &uniform, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
void | removeUniform (const std::string &name) |
|
void | removeUniform (Uniform *uniform) |
|
template<class T > |
void | removeUniform (const ref_ptr< T > &uniform) |
|
Uniform * | getUniform (const std::string &name) |
|
Uniform * | getOrCreateUniform (const std::string &name, Uniform::Type type, unsigned int numElements=1) |
|
const Uniform * | getUniform (const std::string &name) const |
|
const RefUniformPair * | getUniformPair (const std::string &name) const |
|
void | setUniformList (UniformList &al) |
|
UniformList & | getUniformList () |
|
const UniformList & | getUniformList () const |
|
void | setDefine (const std::string &defineName, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
void | setDefine (const std::string &defineName, const std::string &defineValue, StateAttribute::OverrideValue value=StateAttribute::ON) |
|
DefinePair * | getDefinePair (const std::string &defineName) |
|
const DefinePair * | getDefinePair (const std::string &defineName) const |
|
void | removeDefine (const std::string &defineName) |
|
void | setDefineList (const DefineList &dl) |
|
DefineList & | getDefineList () |
|
const DefineList & | getDefineList () const |
|
void | setRenderingHint (int hint) |
|
int | getRenderingHint () const |
|
void | setRenderBinDetails (int binNum, const std::string &binName, RenderBinMode mode=USE_RENDERBIN_DETAILS) |
|
void | setRenderBinToInherit () |
|
bool | useRenderBinDetails () const |
|
void | setRenderBinMode (RenderBinMode mode) |
|
RenderBinMode | getRenderBinMode () const |
|
void | setBinNumber (int num) |
|
int | getBinNumber () const |
|
void | setBinName (const std::string &name) |
|
const std::string & | getBinName () const |
|
void | setNestRenderBins (bool val) |
|
bool | getNestRenderBins () const |
|
void | setUpdateCallback (Callback *ac) |
|
template<class T > |
void | setUpdateCallback (const ref_ptr< T > &ac) |
|
Callback * | getUpdateCallback () |
|
const Callback * | getUpdateCallback () const |
|
bool | requiresUpdateTraversal () const |
|
unsigned int | getNumChildrenRequiringUpdateTraversal () const |
|
void | runUpdateCallbacks (osg::NodeVisitor *nv) |
|
void | setEventCallback (Callback *ac) |
|
template<class T > |
void | setEventCallback (const ref_ptr< T > &ec) |
|
Callback * | getEventCallback () |
|
const Callback * | getEventCallback () const |
|
bool | requiresEventTraversal () const |
|
unsigned int | getNumChildrenRequiringEventTraversal () const |
|
void | runEventCallbacks (osg::NodeVisitor *nv) |
|
bool | checkValidityOfAssociatedModes (State &state) const |
|
virtual void | setThreadSafeRefUnref (bool threadSafe) |
|
void | compileGLObjects (State &state) const |
|
virtual void | resizeGLObjectBuffers (unsigned int maxSize) |
|
virtual void | releaseGLObjects (State *state=0) const |
|
| Object () |
|
| Object (bool threadSafeRefUnref) |
|
| Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
|
std::string | getCompoundClassName () const |
|
virtual Node * | asNode () |
|
virtual const Node * | asNode () const |
|
virtual NodeVisitor * | asNodeVisitor () |
|
virtual const NodeVisitor * | asNodeVisitor () 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 | setName (const std::string &name) |
|
void | setName (const char *name) |
|
const std::string & | getName () const |
|
void | setDataVariance (DataVariance dv) |
|
DataVariance | getDataVariance () const |
|
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) |
|
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 |
|
Stores a set of modes and attributes which represent a set of OpenGL state. Notice that a StateSet
contains just a subset of the whole OpenGL state.
In OSG, each Drawable
and each Node
has a reference to a StateSet
. These StateSet
s can be shared between different Drawable
s and Node
s (that is, several Drawable
s and Node
s can reference the same StateSet
). Indeed, this practice is recommended whenever possible, as this minimizes expensive state changes in the graphics pipeline.