From 1a600c11780ee9ccef42c87ae1a01cfb22f937f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 5 Jan 2009 12:21:58 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgVolume/Layer.cpp | 372 ++++++++++++++++++++++++++ src/osgWrappers/osgVolume/Locator.cpp | 105 ++++++++ src/osgWrappers/osgWidget/Label.cpp | 9 +- 3 files changed, 484 insertions(+), 2 deletions(-) create mode 100644 src/osgWrappers/osgVolume/Layer.cpp create mode 100644 src/osgWrappers/osgVolume/Locator.cpp diff --git a/src/osgWrappers/osgVolume/Layer.cpp b/src/osgWrappers/osgVolume/Layer.cpp new file mode 100644 index 000000000..f039fd5f1 --- /dev/null +++ b/src/osgWrappers/osgVolume/Layer.cpp @@ -0,0 +1,372 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::CompositeLayer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osgVolume::Layer); + I_Constructor0(____CompositeLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::CompositeLayer &, compositeLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeLayer__C5_CompositeLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_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, + __osg_Object_P1__clone__C5_osg_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_osg_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_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method2(void, setFileName, IN, unsigned int, i, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setFileName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getFileName, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method2(void, setLayer, IN, unsigned int, i, IN, osgVolume::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int__Layer_P1, + "", + ""); + I_Method1(osgVolume::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(const osgVolume::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(void, addLayer, IN, osgVolume::Layer *, layer, + Properties::NON_VIRTUAL, + __void__addLayer__Layer_P1, + "", + ""); + I_Method1(void, removeLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLayers, + "", + ""); + I_IndexedProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + 0); + I_ArrayProperty(osgVolume::Layer *, Layer, + __Layer_P1__getLayer__unsigned_int, + __void__setLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumLayers, + __void__addLayer__Layer_P1, + 0, + __void__removeLayer__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::ImageLayer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osgVolume::Layer); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, + ____ImageLayer__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::ImageLayer &, imageLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageLayer__C5_ImageLayer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_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, + __osg_Object_P1__clone__C5_osg_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_osg_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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::Layer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osg::Object); + I_Constructor0(____Layer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Layer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Layer__C5_Layer_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_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, + __osg_Object_P1__clone__C5_osg_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_osg_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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method1(void, setLocator, IN, osgVolume::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "", + ""); + I_Method0(osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "", + ""); + I_Method0(const osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "", + ""); + I_Method1(void, setDefaultValue, IN, const osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __void__setDefaultValue__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultValue, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultValue, + "", + ""); + I_Method1(void, setMinFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMinFilter__osg_Texture_FilterMode, + "Set the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMinFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilter, + "Get the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method1(void, setMagFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMagFilter__osg_Texture_FilterMode, + "Set the magniification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMagFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilter, + "Get the magnification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_Method1(void, setTransferFunction, IN, osg::TransferFunction *, tf, + Properties::NON_VIRTUAL, + __void__setTransferFunction__osg_TransferFunction_P1, + "Set the optional transfer function that maps the imagery pixels to new colours. ", + "Transfer function may be implemented on the GPU or via pre-processing step. "); + I_Method0(osg::TransferFunction *, getTransferFunction, + Properties::NON_VIRTUAL, + __osg_TransferFunction_P1__getTransferFunction, + "Get the transfer function. ", + ""); + I_Method0(const osg::TransferFunction *, getTransferFunction, + Properties::NON_VIRTUAL, + __C5_osg_TransferFunction_P1__getTransferFunction, + "Get the const transfer function. ", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, DefaultValue, + __C5_osg_Vec4_R1__getDefaultValue, + __void__setDefaultValue__C5_osg_Vec4_R1); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osgVolume::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(osg::Texture::FilterMode, MagFilter, + __osg_Texture_FilterMode__getMagFilter, + __void__setMagFilter__osg_Texture_FilterMode); + I_SimpleProperty(osg::Texture::FilterMode, MinFilter, + __osg_Texture_FilterMode__getMinFilter, + __void__setMinFilter__osg_Texture_FilterMode); + I_SimpleProperty(unsigned, ModifiedCount, + 0, + __void__setModifiedCount__unsigned); + I_SimpleProperty(osg::TransferFunction *, TransferFunction, + __osg_TransferFunction_P1__getTransferFunction, + __void__setTransferFunction__osg_TransferFunction_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/osgVolume/Locator.cpp b/src/osgWrappers/osgVolume/Locator.cpp new file mode 100644 index 000000000..18de121b0 --- /dev/null +++ b/src/osgWrappers/osgVolume/Locator.cpp @@ -0,0 +1,105 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::Locator) + I_DeclaringFile("osgVolume/Locator"); + I_BaseType(osg::Object); + I_Constructor0(____Locator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Locator &, locator, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Locator__C5_Locator_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_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, + __osg_Object_P1__clone__C5_osg_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_osg_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_Method1(void, setTransform, IN, const osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setTransform__C5_osg_Matrixd_R1, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method0(const osg::Matrixd &, getTransform, + Properties::NON_VIRTUAL, + __C5_osg_Matrixd_R1__getTransform, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method6(void, setTransformAsExtents, IN, double, minX, IN, double, minY, IN, double, maxX, IN, double, maxY, IN, double, minZ, IN, double, maxZ, + Properties::NON_VIRTUAL, + __void__setTransformAsExtents__double__double__double__double__double__double, + "Set the extents of the local coords. ", + ""); + I_Method2(bool, convertLocalToModel, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertLocalToModel__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, convertModelToLocal, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertModelToLocal__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, computeLocalBounds, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method3(bool, computeLocalBounds, IN, osgVolume::Locator &, source, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__Locator_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgVolume::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgVolume::Locator &, destination, IN, osg::Vec3d &, destinationNDC, + __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, Transform, + __C5_osg_Matrixd_R1__getTransform, + __void__setTransform__C5_osg_Matrixd_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/osgWidget/Label.cpp b/src/osgWrappers/osgWidget/Label.cpp index 9c84364bd..716e7a6f3 100644 --- a/src/osgWrappers/osgWidget/Label.cpp +++ b/src/osgWrappers/osgWidget/Label.cpp @@ -116,6 +116,11 @@ BEGIN_OBJECT_REFLECTOR(osgWidget::Label) __void__setFontColor__point_type__point_type__point_type__point_type, "", ""); + I_Method0(osgText::Text *, getText, + Properties::NON_VIRTUAL, + __osgText_Text_P1__getText, + "", + ""); I_Method0(const osgText::Text *, getText, Properties::NON_VIRTUAL, __C5_osgText_Text_P1__getText, @@ -142,8 +147,8 @@ BEGIN_OBJECT_REFLECTOR(osgWidget::Label) I_SimpleProperty(osgWidget::point_type, Shadow, 0, __void__setShadow__point_type); - I_SimpleProperty(const osgText::Text *, Text, - __C5_osgText_Text_P1__getText, + I_SimpleProperty(osgText::Text *, Text, + __osgText_Text_P1__getText, 0); I_SimpleProperty(osgWidget::XYCoord, TextSize, __XYCoord__getTextSize,