From Marco Jez, improvements to osgIntrospection, and new automatically generated

osgWrappers/osg set.
This commit is contained in:
Robert Osfield
2005-04-07 20:00:17 +00:00
parent 5b4482c70d
commit 7a27a0bef7
132 changed files with 8608 additions and 301 deletions

View File

@@ -1,18 +1,35 @@
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/Object>
#include <osg/Program>
#include <osg/State>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Uniform>
using namespace osgIntrospection;
TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList);
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute)
BaseType(osg::Object);
END_REFLECTOR
TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair);
BEGIN_OBJECT_REFLECTOR(osg::StateSet)
BaseType(osg::Object)
END_REFLECTOR
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)
EnumLabel(osg::StateSet::DEFAULT_BIN);
@@ -21,33 +38,120 @@ BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint)
END_REFLECTOR
BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode)
EnumLabel(osg::StateSet::ENCLOSE_RENDERBIN_DETAILS);
EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS);
EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS);
EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS);
EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS);
EnumLabel(osg::StateSet::ENCLOSE_RENDERBIN_DETAILS);
END_REFLECTOR
STD_MAP_REFLECTOR_WITH_TYPES(osg::StateSet::ModeList, unsigned int, osg::StateAttribute::Values);
STD_MAP_REFLECTOR(osg::StateSet::AttributeList);
STD_CONTAINER_REFLECTOR(osg::StateSet::TextureAttributeList);
STD_CONTAINER_REFLECTOR(osg::StateSet::TextureModeList);
BEGIN_OBJECT_REFLECTOR(osg::StateSet)
BaseType(osg::Object)
BaseType(osg::Object);
Constructor0();
ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
Method0(osg::Object *, cloneType);
Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
Method0(const char *, libraryName);
Method0(const char *, className);
MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false);
Method0(void, setGlobalDefaults);
Method0(void, clear);
Method1(void, merge, IN, const osg::StateSet &, rhs);
Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value);
Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode);
Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode);
Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml);
Method0(osg::StateSet::ModeList &, getModeList);
Method0(const osg::StateSet::ModeList &, getModeList);
MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF);
MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON);
MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0);
Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute);
MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0);
MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0);
MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0);
Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al);
Method0(osg::StateSet::AttributeList &, getAttributeList);
Method0(const osg::StateSet::AttributeList &, getAttributeList);
Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value);
Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode);
Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode);
Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml);
Method0(osg::StateSet::TextureModeList &, getTextureModeList);
Method0(const osg::StateSet::TextureModeList &, getTextureModeList);
MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF);
MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON);
Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type);
Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute);
Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type);
Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type);
Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type);
Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal);
Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList);
Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList);
Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value);
Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value);
MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON);
Method1(void, removeUniform, IN, const std::string &, name);
Method1(void, removeUniform, IN, osg::Uniform *, uniform);
Method1(osg::Uniform *, getUniform, IN, const std::string &, name);
Method1(const osg::Uniform *, getUniform, IN, const std::string &, name);
Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name);
Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al);
Method0(osg::StateSet::UniformList &, getUniformList);
Method0(const osg::StateSet::UniformList &, getUniformList);
Method1(void, setProgram, IN, osg::Program *, program);
Method0(osg::Program *, getProgram);
Method0(const osg::Program *, getProgram);
Method1(void, setRenderingHint, IN, int, hint);
Method0(int, getRenderingHint);
MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS);
Method0(void, setRenderBinToInherit);
Method0(bool, useRenderBinDetails);
Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode);
Method0(osg::StateSet::RenderBinMode, getRenderBinMode);
Method1(void, setBinNumber, IN, int, num);
Method0(int, getBinNumber);
Method1(void, setBinName, IN, const std::string &, name);
Method0(const std::string &, getBinName);
Method1(void, compileGLObjects, IN, osg::State &, state);
MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0);
Property(osg::StateSet::AttributeList &, AttributeList);
Property(const std::string &, BinName);
Property(int, BinNumber);
Property(osg::StateSet::ModeList &, ModeList);
Property(osg::Program *, Program);
Property(osg::StateSet::RenderBinMode, RenderBinMode);
Property(int, RenderingHint);
Attribute(PropertyTypeAttribute(typeof(osg::StateSet::RenderingHint)));
ReadOnlyProperty(const osg::StateSet::ModeList &, ModeList);
ReadOnlyProperty(const osg::StateSet::AttributeList &, AttributeList);
ReadOnlyProperty(const osg::StateSet::TextureModeList &, TextureModeList);
ReadOnlyProperty(const osg::StateSet::TextureAttributeList &, TextureAttributeList);
Property(osg::StateSet::TextureAttributeList &, TextureAttributeList);
IndexedProperty2(osg::StateAttribute::GLModeValue, TextureMode, unsigned int, unit, osg::StateAttribute::GLMode, mode);
Property(osg::StateSet::TextureModeList &, TextureModeList);
Property(osg::StateSet::UniformList &, UniformList);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateAttribute >)
Constructor0();
Constructor1(IN, osg::StateAttribute *, t);
Constructor1(IN, const osg::ref_ptr< osg::StateAttribute > &, rp);
Method0(bool, valid);
Method0(osg::StateAttribute *, get);
Method0(const osg::StateAttribute *, get);
Method0(osg::StateAttribute *, take);
Method0(osg::StateAttribute *, release);
ReadOnlyProperty(osg::StateAttribute *, );
END_REFLECTOR
typedef osg::ref_ptr<osg::StateAttribute> RefStateAttribute;
STD_VALUE_REFLECTOR(RefStateAttribute);
STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values);
STD_MAP_REFLECTOR(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >);
STD_PAIR_REFLECTOR(osg::StateAttribute::TypeMemberPair)
STD_PAIR_REFLECTOR_WITH_TYPES(osg::StateSet::RefAttributePair, osg::StateAttribute *, osg::StateAttribute::Values)
STD_MAP_REFLECTOR(std::map< std::string COMMA osg::StateSet::RefUniformPair >);
STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >);
STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >);
STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::AttributeList >);
STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::ModeList >);