|
Public Types |
typedef std::vector< Object * > | ParentList |
typedef std::map< StateAttribute::GLMode,
StateAttribute::GLModeValue > | ModeList |
typedef std::pair< ref_ptr<
StateAttribute >, StateAttribute::OverrideValue > | RefAttributePair |
typedef std::map< StateAttribute::TypeMemberPair,
RefAttributePair > | AttributeList |
typedef std::vector< ModeList > | TextureModeList |
typedef std::vector< AttributeList > | TextureAttributeList |
typedef std::pair< ref_ptr<
Uniform >, StateAttribute::OverrideValue > | RefUniformPair |
typedef std::map< std::string,
RefUniformPair > | UniformList |
enum | RenderingHint { DEFAULT_BIN = 0,
OPAQUE_BIN = 1,
TRANSPARENT_BIN = 2
} |
enum | RenderBinMode { INHERIT_RENDERBIN_DETAILS,
USE_RENDERBIN_DETAILS,
OVERRIDE_RENDERBIN_DETAILS,
ENCLOSE_RENDERBIN_DETAILS
} |
Public Member Functions |
| 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 |
const ParentList & | getParents () const |
ParentList | getParents () |
Object * | getParent (unsigned int i) |
const Object * | getParent (unsigned int i) const |
unsigned int | getNumParents () const |
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) |
void | setAttributeAndModes (StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
void | removeAttribute (StateAttribute::Type type, unsigned int member=0) |
void | removeAttribute (StateAttribute *attribute) |
StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) |
const StateAttribute * | getAttribute (StateAttribute::Type type, unsigned int member=0) const |
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 |
void | setTextureAttribute (unsigned int unit, StateAttribute *attribute, StateAttribute::OverrideValue value=StateAttribute::OFF) |
void | setTextureAttributeAndModes (unsigned int unit, StateAttribute *attribute, StateAttribute::GLModeValue value=StateAttribute::ON) |
void | removeTextureAttribute (unsigned int unit, StateAttribute::Type type) |
void | removeTextureAttribute (unsigned int unit, StateAttribute *attribute) |
StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) |
const StateAttribute * | getTextureAttribute (unsigned int unit, StateAttribute::Type type) const |
const RefAttributePair * | getTextureAttributePair (unsigned int unit, StateAttribute::Type type) const |
void | setTextureAttributeList (TextureAttributeList &tal) |
TextureAttributeList & | getTextureAttributeList () |
const TextureAttributeList & | getTextureAttributeList () const |
void | setAssociatedModes (const StateAttribute *attribute, StateAttribute::GLModeValue value) |
void | setAssociatedTextureModes (unsigned int unit, const StateAttribute *attribute, StateAttribute::GLModeValue value) |
void | addUniform (Uniform *uniform, StateAttribute::OverrideValue value=StateAttribute::ON) |
void | removeUniform (const std::string &name) |
void | removeUniform (Uniform *uniform) |
Uniform * | getUniform (const std::string &name) |
Uniform * | getOrCreateUniform (const std::string &name, Uniform::Type type) |
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 | 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 | setUpdateCallback (Callback *ac) |
Callback * | getUpdateCallback () |
const Callback * | getUpdateCallback () const |
bool | requiresUpdateTraversal () const |
unsigned int | getNumChildrenRequiringUpdateTraversal () const |
void | runUpdateCallbacks (osg::NodeVisitor *nv) |
void | setEventCallback (Callback *ac) |
Callback * | getEventCallback () |
const Callback * | getEventCallback () const |
bool | requiresEventTraversal () const |
unsigned int | getNumChildrenRequiringEventTraversal () const |
void | runEventCallbacks (osg::NodeVisitor *nv) |
void | compileGLObjects (State &state) const |
virtual void | releaseGLObjects (State *state=0) const |
Protected Member Functions |
virtual | ~StateSet () |
StateSet & | operator= (const StateSet &) |
void | addParent (osg::Object *object) |
void | removeParent (osg::Object *object) |
ModeList & | getOrCreateTextureModeList (unsigned int unit) |
AttributeList & | getOrCreateTextureAttributeList (unsigned int unit) |
int | compareModes (const ModeList &lhs, const ModeList &rhs) |
int | compareAttributePtrs (const AttributeList &lhs, const AttributeList &rhs) |
int | compareAttributeContents (const AttributeList &lhs, const AttributeList &rhs) |
void | setMode (ModeList &modeList, StateAttribute::GLMode mode, StateAttribute::GLModeValue value) |
void | setModeToInherit (ModeList &modeList, StateAttribute::GLMode mode) |
StateAttribute::GLModeValue | getMode (const ModeList &modeList, StateAttribute::GLMode mode) const |
void | setAttribute (AttributeList &attributeList, StateAttribute *attribute, const StateAttribute::OverrideValue value=StateAttribute::OFF) |
StateAttribute * | getAttribute (AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) |
const StateAttribute * | getAttribute (const AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) const |
const RefAttributePair * | getAttributePair (const AttributeList &attributeList, const StateAttribute::Type type, unsigned int member) const |
void | setNumChildrenRequiringUpdateTraversal (unsigned int num) |
void | setNumChildrenRequiringEventTraversal (unsigned int num) |
Protected Attributes |
ParentList | _parents |
ModeList | _modeList |
AttributeList | _attributeList |
TextureModeList | _textureModeList |
TextureAttributeList | _textureAttributeList |
UniformList | _uniformList |
int | _renderingHint |
RenderBinMode | _binMode |
int | _binNum |
std::string | _binName |
ref_ptr< Callback > | _updateCallback |
unsigned int | _numChildrenRequiringUpdateTraversal |
ref_ptr< Callback > | _eventCallback |
unsigned int | _numChildrenRequiringEventTraversal |
Friends |
class | osg::Node |
class | osg::Drawable |
class | osg::Uniform |
class | osg::StateAttribute |