📄 stateset.cpp
字号:
// ***************************************************************************//// Generated automatically by genwrapper.// Please DO NOT EDIT this file!//// ***************************************************************************#include <osgIntrospection/ReflectionMacros>#include <osgIntrospection/TypedMethodInfo>#include <osgIntrospection/StaticMethodInfo>#include <osgIntrospection/Attributes>#include <osg/CopyOp>#include <osg/NodeVisitor>#include <osg/Object>#include <osg/State>#include <osg/StateAttribute>#include <osg/StateSet>#include <osg/Uniform>// Must undefine IN and OUT macros defined in Windows headers#ifdef IN#undef IN#endif#ifdef OUT#undef OUT#endifTYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList)TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList)TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair)TYPE_NAME_ALIAS(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >, osg::StateSet::AttributeList)TYPE_NAME_ALIAS(std::vector< osg::StateSet::ModeList >, osg::StateSet::TextureModeList)TYPE_NAME_ALIAS(std::vector< osg::StateSet::AttributeList >, osg::StateSet::TextureAttributeList)TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefUniformPair)TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList)BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) I_DeclaringFile("osg/StateSet"); I_EnumLabel(osg::StateSet::DEFAULT_BIN); I_EnumLabel(osg::StateSet::OPAQUE_BIN); I_EnumLabel(osg::StateSet::TRANSPARENT_BIN);END_REFLECTORBEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) I_DeclaringFile("osg/StateSet"); I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS);END_REFLECTORBEGIN_OBJECT_REFLECTOR(osg::StateSet) I_DeclaringFile("osg/StateSet"); I_BaseType(osg::Object); I_Constructor0(____StateSet, "", ""); I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, "", ""); I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, "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. "); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, Properties::NON_VIRTUAL, __int__compare__C5_StateSet_R1__bool, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(const osg::StateSet::ParentList &, getParents, Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of this StateSet. ", ""); I_Method0(osg::StateSet::ParentList, getParents, Properties::NON_VIRTUAL, __ParentList__getParents, "Get the a copy of parent list of node. ", "A copy is returned to prevent modification of the parent list. "); I_Method1(osg::Object *, getParent, IN, unsigned int, i, Properties::NON_VIRTUAL, __Object_P1__getParent__unsigned_int, "", ""); I_Method1(const osg::Object *, getParent, IN, unsigned int, i, Properties::NON_VIRTUAL, __C5_Object_P1__getParent__unsigned_int, "Get a single const parent of this StateSet. ", " param i index of the parent to get. return the parent i. "); I_Method0(unsigned int, getNumParents, Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of this StateSet. ", "the number of parents of this StateSet. "); I_Method0(void, computeDataVariance, Properties::VIRTUAL, __void__computeDataVariance, "Compute the DataVariance based on an assessment of callback etc. ", ""); I_Method0(void, setGlobalDefaults, Properties::NON_VIRTUAL, __void__setGlobalDefaults, "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", ""); I_Method0(void, clear, Properties::NON_VIRTUAL, __void__clear, "Clear the StateSet of all modes and attributes. ", ""); I_Method1(void, merge, IN, const osg::StateSet &, rhs, Properties::NON_VIRTUAL, __void__merge__C5_StateSet_R1, "Merge this StateSet with the StateSet passed as parameter. ", "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs. "); I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, Properties::NON_VIRTUAL, __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, "Set this StateSet to contain the specified GLMode with a given value. ", "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, Properties::NON_VIRTUAL, __void__removeMode__StateAttribute_GLMode, "Remove mode from this StateSet. ", "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, Properties::NON_VIRTUAL, __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, "Get the value for a given GLMode. ", " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, Properties::NON_VIRTUAL, __void__setModeList__ModeList_R1, "Set the list of all GLModes contained in this StateSet. ", ""); I_Method0(osg::StateSet::ModeList &, getModeList, Properties::NON_VIRTUAL, __ModeList_R1__getModeList, "Return the list of all GLModes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::ModeList &, getModeList, Properties::NON_VIRTUAL, __C5_ModeList_R1__getModeList, "Return the const list of all GLModes contained in this const StateSet. ", ""); I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, Properties::NON_VIRTUAL, __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, "Set this StateSet to contain specified attribute and override flag. ", ""); I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, Properties::NON_VIRTUAL, __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", ""); I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, Properties::NON_VIRTUAL, __void__removeAttribute__StateAttribute_Type__unsigned_int, "remove attribute of specified type from StateSet. ", ""); I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, Properties::NON_VIRTUAL, __void__removeAttribute__StateAttribute_P1, "remove attribute from StateSet. ", ""); I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, Properties::NON_VIRTUAL, __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, "Get specified StateAttribute for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, "Get specified const StateAttribute for specified type. ", "Returns NULL if no type is contained within const StateSet. "); I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, Properties::NON_VIRTUAL, __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, "Get specified RefAttributePair for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, Properties::NON_VIRTUAL, __void__setAttributeList__AttributeList_R1, "set the list of all StateAttributes contained in this StateSet. ", ""); I_Method0(osg::StateSet::AttributeList &, getAttributeList, Properties::NON_VIRTUAL, __AttributeList_R1__getAttributeList, "return the list of all StateAttributes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::AttributeList &, getAttributeList, Properties::NON_VIRTUAL, __C5_AttributeList_R1__getAttributeList, "return the const list of all StateAttributes contained in this const StateSet. ", ""); I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, Properties::NON_VIRTUAL, __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, "Set this StateSet to contain specified GLMode with a given value. ", " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, Properties::NON_VIRTUAL, __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, "Remove texture mode from StateSet. ", ""); I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, Properties::NON_VIRTUAL, __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, "Get specified GLModeValue for specified GLMode. ", "returns INHERIT if no GLModeValue is contained within StateSet. "); I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, Properties::NON_VIRTUAL, __void__setTextureModeList__TextureModeList_R1, "set the list of all Texture related GLModes contained in this StateSet. ", ""); I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, Properties::NON_VIRTUAL, __TextureModeList_R1__getTextureModeList, "return the list of all Texture related GLModes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, Properties::NON_VIRTUAL, __C5_TextureModeList_R1__getTextureModeList, "return the const list of all Texture related GLModes contained in this const StateSet. ", ""); I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, Properties::NON_VIRTUAL, __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, "Set this StateSet to contain specified attribute and override flag. ", ""); I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, Properties::NON_VIRTUAL, __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", ""); I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, Properties::NON_VIRTUAL, __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, "remove texture attribute of specified type from StateSet. ", ""); I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, Properties::NON_VIRTUAL,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -