Updated wrappers

This commit is contained in:
Robert Osfield
2007-08-10 17:44:54 +00:00
parent ece6c2f672
commit 0e475106dc
134 changed files with 355 additions and 312 deletions

View File

@@ -27,11 +27,11 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange)
I_Constructor2(IN, float, min, IN, float, max,
____ColorRange__float__float,
"Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan. ",
" param min minimum scalar value max maximum scalar value ");
" param min minimum scalar value max maximum scalar value ");
I_Constructor3(IN, float, min, IN, float, max, IN, const std::vector< osg::Vec4 > &, colors,
____ColorRange__float__float__C5_std_vectorT1_osg_Vec4__R1,
"Constructor for a ColorRange. ",
" param min minimum scalar value max maximum scalar value colors optional range of colors, ");
" param min minimum scalar value max maximum scalar value colors optional range of colors, ");
I_Method1(void, setColors, IN, const std::vector< osg::Vec4 > &, colors,
Properties::NON_VIRTUAL,
__void__setColors__C5_std_vectorT1_osg_Vec4__R1,

View File

@@ -77,7 +77,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor)
Properties::NON_VIRTUAL,
__void__setImpostorThreshold__float,
"Set the Impostor threshold distance. ",
"For eye points further than this threshold the Imposter is used if appropriate, otherwise the LOD children as chosen as per a standard LOD node.");
"For eye points further than this threshold the Imposter is used if appropriate, otherwise the LOD children as chosen as per a standard LOD node. ");
I_Method0(float, getImpostorThreshold,
Properties::NON_VIRTUAL,
__float__getImpostorThreshold,

View File

@@ -68,7 +68,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
Properties::NON_VIRTUAL,
__void__setParent__Impostor_P1,
"Set the parent, which must be an Impostor. ",
"Unlike conventional Drawables, ImpostorSprites can only ever have one parent.");
"Unlike conventional Drawables, ImpostorSprites can only ever have one parent. ");
I_Method0(osgSim::Impostor *, getParent,
Properties::NON_VIRTUAL,
__Impostor_P1__getParent,
@@ -103,7 +103,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
Properties::NON_VIRTUAL,
__osg_Vec3_P1__getCoords,
"Get the coordinates of the corners of the quad. ",
"Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.");
"Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. ");
I_Method0(const osg::Vec3 *, getCoords,
Properties::NON_VIRTUAL,
__C5_osg_Vec3_P1__getCoords,
@@ -113,7 +113,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
Properties::NON_VIRTUAL,
__osg_Vec2_P1__getTexCoords,
"Get the texture coordinates of the corners of the quad. ",
"Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.");
"Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. ");
I_Method0(const osg::Vec2 *, getTexCoords,
Properties::NON_VIRTUAL,
__C5_osg_Vec2_P1__getTexCoords,
@@ -123,7 +123,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
Properties::NON_VIRTUAL,
__osg_Vec3_P1__getControlCoords,
"Get the control coordinates of the corners of the quad. ",
"The control coordinates are the corners of the quad projected out onto the front face of bounding box which enclosed the impostor geometry when it was pre-rendered into the impostor sprite's texture. At the point of creation/or update of the impostor sprite the control coords will lie on top of the corners of the quad in screen space - with a pixel error of zero. Once the camera moves relative to the impostor sprite the control coords will no longer lie on top of the corners of the quad in screen space - a pixel error will have accumulated. This pixel error can then be used to determine whether the impostor needs to be updated. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left.");
"The control coordinates are the corners of the quad projected out onto the front face of bounding box which enclosed the impostor geometry when it was pre-rendered into the impostor sprite's texture. At the point of creation/or update of the impostor sprite the control coords will lie on top of the corners of the quad in screen space - with a pixel error of zero. Once the camera moves relative to the impostor sprite the control coords will no longer lie on top of the corners of the quad in screen space - a pixel error will have accumulated. This pixel error can then be used to determine whether the impostor needs to be updated. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left. ");
I_Method0(const osg::Vec3 *, getControlCoords,
Properties::NON_VIRTUAL,
__C5_osg_Vec3_P1__getControlCoords,

View File

@@ -87,17 +87,17 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch)
Properties::VIRTUAL,
__bool__addChild__osg_Node_P1,
"Add Node to Group. ",
"If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes.");
"If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes. ");
I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child,
Properties::VIRTUAL,
__bool__insertChild__unsigned_int__osg_Node_P1,
"Insert Node to Group at specific location. ",
"The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation.");
"The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation. ");
I_Method1(bool, removeChild, IN, osg::Node *, child,
Properties::VIRTUAL,
__bool__removeChild__osg_Node_P1,
"Remove Node from Group. ",
"If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required.");
"If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required. ");
I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value,
Properties::NON_VIRTUAL,
__void__setValue__unsigned_int__unsigned_int__bool,

View File

@@ -40,7 +40,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar)
I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter,
____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1,
"Construct a ScalarBar with the supplied parameters. ",
" param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter");
" param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter ");
I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co,
____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1,
"Copy constructor. ",

View File

@@ -49,11 +49,11 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment)
I_Constructor7(IN, const osg::Vec3 &, centre, IN, float, radius, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, IN, int, density,
____SphereSegment__C5_osg_Vec3_R1__float__float__float__float__float__int,
"Construct by angle ranges. ",
" param centre sphere centre radius radius of sphere azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum density number of units to divide the azimuth and elevation ranges into ");
" param centre sphere centre radius radius of sphere azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum density number of units to divide the azimuth and elevation ranges into ");
I_Constructor6(IN, const osg::Vec3 &, centre, IN, float, radius, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, IN, int, density,
____SphereSegment__C5_osg_Vec3_R1__float__C5_osg_Vec3_R1__float__float__int,
"Construct by vector. ",
" param centre sphere centre radius radius of sphere vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) density number of units to divide the azimuth and elevation ranges into ");
" param centre sphere centre radius radius of sphere vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) density number of units to divide the azimuth and elevation ranges into ");
I_Constructor2(IN, const osgSim::SphereSegment &, rhs, IN, const osg::CopyOp &, co,
____SphereSegment__C5_SphereSegment_R1__C5_osg_CopyOp_R1,
"Copy constructor. ",
@@ -82,22 +82,22 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment)
Properties::NON_VIRTUAL,
__void__setArea__C5_osg_Vec3_R1__float__float,
"Set the area of the sphere segment. ",
" param vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) ");
" param vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) ");
I_Method3(void, getArea, IN, osg::Vec3 &, vec, IN, float &, azRange, IN, float &, elevRange,
Properties::NON_VIRTUAL,
__void__getArea__osg_Vec3_R1__float_R1__float_R1,
"Get the area of the sphere segment. ",
" param vec vector pointing from sphere centre to centre point of rendered area on sphere surface (normalized) azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) ");
" param vec vector pointing from sphere centre to centre point of rendered area on sphere surface (normalized) azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) ");
I_Method4(void, setArea, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax,
Properties::NON_VIRTUAL,
__void__setArea__float__float__float__float,
"Set the area of the sphere segment. ",
" param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum ");
" param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum ");
I_Method4(void, getArea, IN, float &, azMin, IN, float &, azMax, IN, float &, elevMin, IN, float &, elevMax,
Properties::NON_VIRTUAL,
__void__getArea__float_R1__float_R1__float_R1__float_R1,
"Get the area of the sphere segment. ",
" param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum ");
" param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum ");
I_Method1(void, setDensity, IN, int, d,
Properties::NON_VIRTUAL,
__void__setDensity__int,
@@ -112,7 +112,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment)
Properties::NON_VIRTUAL,
__void__setDrawMask__DrawMask,
"Specify the DrawMask. ",
" param dm Bitmask specifying which parts of the sphere segment should be drawn. see DrawMask");
" param dm Bitmask specifying which parts of the sphere segment should be drawn. see DrawMask ");
I_Method0(osgSim::SphereSegment::DrawMask, getDrawMask,
Properties::NON_VIRTUAL,
__DrawMask__getDrawMask,