Updated wrappers
This commit is contained in:
110
src/osgWrappers/osgSim/ElevationSlice.cpp
Normal file
110
src/osgWrappers/osgSim/ElevationSlice.cpp
Normal file
@@ -0,0 +1,110 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osg/Vec3d>
|
||||
#include <osgSim/ElevationSlice>
|
||||
#include <osgSim/LineOfSight>
|
||||
#include <osgUtil/IntersectionVisitor>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgSim::ElevationSlice::Vec3dList);
|
||||
|
||||
TYPE_NAME_ALIAS(std::pair< double COMMA double >, osgSim::ElevationSlice::DistanceHeight);
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osgSim::ElevationSlice::DistanceHeight >, osgSim::ElevationSlice::DistanceHeightList);
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice)
|
||||
I_Constructor0(____ElevationSlice,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setStartPoint, IN, const osg::Vec3d &, startPoint,
|
||||
__void__setStartPoint__C5_osg_Vec3d_R1,
|
||||
"Set the start point of the slice. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec3d &, getStartPoint,
|
||||
__C5_osg_Vec3d_R1__getStartPoint,
|
||||
"Get the start point of the slice. ",
|
||||
"");
|
||||
I_Method1(void, setEndPoint, IN, const osg::Vec3d &, endPoint,
|
||||
__void__setEndPoint__C5_osg_Vec3d_R1,
|
||||
"Set the end point of the slice. ",
|
||||
"");
|
||||
I_Method0(const osg::Vec3d &, getEndPoint,
|
||||
__C5_osg_Vec3d_R1__getEndPoint,
|
||||
"Get the end point of the slice. ",
|
||||
"");
|
||||
I_Method0(const osgSim::ElevationSlice::Vec3dList &, getIntersections,
|
||||
__C5_Vec3dList_R1__getIntersections,
|
||||
"Get the intersections in the form of a vector of Vec3d. ",
|
||||
"");
|
||||
I_Method0(const osgSim::ElevationSlice::DistanceHeightList &, getDistanceHeightIntersections,
|
||||
__C5_DistanceHeightList_R1__getDistanceHeightIntersections,
|
||||
"Get the intersections in the form a vector of pair<double,double> representing distance along the slice and height. ",
|
||||
"");
|
||||
I_Method1(void, computeIntersections, IN, osg::Node *, scene,
|
||||
__void__computeIntersections__osg_Node_P1,
|
||||
"Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. ",
|
||||
"Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. ");
|
||||
I_Method0(void, clearDatabaseCache,
|
||||
__void__clearDatabaseCache,
|
||||
"Clear the database cache. ",
|
||||
"");
|
||||
I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc,
|
||||
__void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1,
|
||||
"Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ",
|
||||
"Note, if you have mulitple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. ");
|
||||
I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback,
|
||||
__DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback,
|
||||
"Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ",
|
||||
"");
|
||||
I_Method0(osgUtil::IntersectionVisitor &, getIntersectionVisitor,
|
||||
__osgUtil_IntersectionVisitor_R1__getIntersectionVisitor,
|
||||
"Get the IntersectionVistor that does the intersection traversal over the scene. ",
|
||||
"Note, if you want to customized the traversal then you can use the IntersectionVisitor's method to alter its behavior. ");
|
||||
I_StaticMethod3(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, IN, const osg::Vec3d &, startPoint, IN, const osg::Vec3d &, endPoint,
|
||||
__Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1_S,
|
||||
"Compute the vertical distance between the specified scene graph and a single HAT point. ",
|
||||
"");
|
||||
I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback,
|
||||
__DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback,
|
||||
__void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1);
|
||||
I_SimpleProperty(const osgSim::ElevationSlice::DistanceHeightList &, DistanceHeightIntersections,
|
||||
__C5_DistanceHeightList_R1__getDistanceHeightIntersections,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec3d &, EndPoint,
|
||||
__C5_osg_Vec3d_R1__getEndPoint,
|
||||
__void__setEndPoint__C5_osg_Vec3d_R1);
|
||||
I_SimpleProperty(osgUtil::IntersectionVisitor &, IntersectionVisitor,
|
||||
__osgUtil_IntersectionVisitor_R1__getIntersectionVisitor,
|
||||
0);
|
||||
I_SimpleProperty(const osgSim::ElevationSlice::Vec3dList &, Intersections,
|
||||
__C5_Vec3dList_R1__getIntersections,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec3d &, StartPoint,
|
||||
__C5_osg_Vec3d_R1__getStartPoint,
|
||||
__void__setStartPoint__C5_osg_Vec3d_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_PAIR_REFLECTOR(std::pair< double COMMA double >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osg::Vec3d >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osgSim::ElevationSlice::DistanceHeight >);
|
||||
|
||||
@@ -5,6 +5,7 @@ CXXFILES =\
|
||||
BlinkSequence.cpp\
|
||||
ColorRange.cpp\
|
||||
DOFTransform.cpp\
|
||||
ElevationSlice.cpp\
|
||||
GeographicLocation.cpp\
|
||||
HeightAboveTerrain.cpp\
|
||||
Impostor.cpp\
|
||||
|
||||
@@ -131,5 +131,3 @@ BEGIN_VALUE_REFLECTOR(osgSim::LineOfSight)
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osg::Vec3d >);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user