Updated wrappers

This commit is contained in:
Robert Osfield
2006-11-28 16:49:31 +00:00
parent a2e79f6a38
commit 73fc7a0c1f
16 changed files with 516 additions and 189 deletions

View File

@@ -19,10 +19,8 @@
#include <osg/Matrix>
#include <osg/Node>
#include <osg/PagedLOD>
#include <osg/Polytope>
#include <osg/Projection>
#include <osg/Transform>
#include <osg/Vec3d>
#include <osg/Viewport>
#include <osgUtil/IntersectionVisitor>
@@ -297,150 +295,6 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup)
0);
END_REFLECTOR
TYPE_NAME_ALIAS(std::multiset< osgUtil::LineSegmentIntersector::Intersection >, osgUtil::LineSegmentIntersector::Intersections);
BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector)
I_BaseType(osgUtil::Intersector);
I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end,
____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1,
"Construct a LineSegmentIntersector the runs between the secified start and end points in MODEL coordinates. ",
"");
I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end,
____LineSegmentIntersector__CoordinateFrame__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1,
"Construct a LineSegmentIntersector the runs between the secified start and end points in the specified coordinate frame. ",
"");
I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, x, IN, double, y,
____LineSegmentIntersector__CoordinateFrame__double__double,
"Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). ",
"In PROJECTION coordinates (clip space cube) creates a start value of (x,y,1) and end value of (x,y,-1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1). ");
I_Method1(void, insertIntersection, IN, const osgUtil::LineSegmentIntersector::Intersection &, intersection,
__void__insertIntersection__C5_Intersection_R1,
"",
"");
I_Method0(osgUtil::LineSegmentIntersector::Intersections &, getIntersections,
__Intersections_R1__getIntersections,
"",
"");
I_Method0(osgUtil::LineSegmentIntersector::Intersection, getFirstIntersection,
__Intersection__getFirstIntersection,
"",
"");
I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv,
__Intersector_P1__clone__osgUtil_IntersectionVisitor_R1,
"",
"");
I_Method1(bool, enter, IN, const osg::Node &, node,
__bool__enter__C5_osg_Node_R1,
"",
"");
I_Method0(void, leave,
__void__leave,
"",
"");
I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable,
__void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1,
"",
"");
I_Method0(void, reset,
__void__reset,
"",
"");
I_Method0(bool, containsIntersections,
__bool__containsIntersections,
"",
"");
I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersection, FirstIntersection,
__Intersection__getFirstIntersection,
0);
I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersections &, Intersections,
__Intersections_R1__getIntersections,
0);
END_REFLECTOR
TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::Intersection::IndexList);
BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection)
I_Constructor0(____Intersection,
"",
"");
I_PublicMemberProperty(double, ratio);
I_PublicMemberProperty(osg::NodePath, nodePath);
I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable);
I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix);
I_PublicMemberProperty(osg::Vec3d, localIntersectionPoint);
I_PublicMemberProperty(osg::Vec3, localIntersectionNormal);
I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList);
I_PublicMemberProperty(unsigned int, primitiveIndex);
END_REFLECTOR
TYPE_NAME_ALIAS(std::set< osgUtil::PolytopeIntersector::Intersection >, osgUtil::PolytopeIntersector::Intersections);
BEGIN_OBJECT_REFLECTOR(osgUtil::PolytopeIntersector)
I_BaseType(osgUtil::Intersector);
I_Constructor1(IN, const osg::Polytope &, polytope,
____PolytopeIntersector__C5_osg_Polytope_R1,
"Construct a PolytopeIntersector using speified polytope in MODEL coordinates. ",
"");
I_Constructor2(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Polytope &, polytope,
____PolytopeIntersector__CoordinateFrame__C5_osg_Polytope_R1,
"Construct a PolytopeIntersector using speified polytope in specified coordinate frame. ",
"");
I_Constructor5(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, xMin, IN, double, yMin, IN, double, xMax, IN, double, yMax,
____PolytopeIntersector__CoordinateFrame__double__double__double__double,
"Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates (clip space cube) creates a five sided polytope box that has a front face at 0.0 and sides around box xMin, yMin, xMax, yMax. ",
"In PROJECTION coordinates (clip space cube) creates a five sided polytope box that has a front face at -1 and sides around box xMin, yMin, xMax, yMax. In VIEW and MODEL coordinates (clip space cube) creates a five sided polytope box that has a front face at 0.0 and sides around box xMin, yMin, xMax, yMax. ");
I_Method1(void, insertIntersection, IN, const osgUtil::PolytopeIntersector::Intersection &, intersection,
__void__insertIntersection__C5_Intersection_R1,
"",
"");
I_Method0(osgUtil::PolytopeIntersector::Intersections &, getIntersections,
__Intersections_R1__getIntersections,
"",
"");
I_Method0(osgUtil::PolytopeIntersector::Intersection, getFirstIntersection,
__Intersection__getFirstIntersection,
"",
"");
I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv,
__Intersector_P1__clone__osgUtil_IntersectionVisitor_R1,
"",
"");
I_Method1(bool, enter, IN, const osg::Node &, node,
__bool__enter__C5_osg_Node_R1,
"",
"");
I_Method0(void, leave,
__void__leave,
"",
"");
I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable,
__void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1,
"",
"");
I_Method0(void, reset,
__void__reset,
"",
"");
I_Method0(bool, containsIntersections,
__bool__containsIntersections,
"",
"");
I_SimpleProperty(osgUtil::PolytopeIntersector::Intersection, FirstIntersection,
__Intersection__getFirstIntersection,
0);
I_SimpleProperty(osgUtil::PolytopeIntersector::Intersections &, Intersections,
__Intersections_R1__getIntersections,
0);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osgUtil::PolytopeIntersector::Intersection)
I_Constructor0(____Intersection,
"",
"");
I_PublicMemberProperty(osg::NodePath, nodePath);
I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable);
END_REFLECTOR
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Intersector >)
I_Constructor0(____ref_ptr,
"",
@@ -474,9 +328,5 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Intersector >)
0);
END_REFLECTOR
STD_SET_REFLECTOR(std::multiset< osgUtil::LineSegmentIntersector::Intersection >);
STD_SET_REFLECTOR(std::set< osgUtil::PolytopeIntersector::Intersection >);
STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Intersector > >);