root/OpenSceneGraph/trunk/src/osgWrappers/osgGA/MatrixManipulator.cpp @ 10916

Revision 10916, 11.7 kB (checked in by robert, 4 years ago)

Updated wrappers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1// ***************************************************************************
2//
3//   Generated automatically by genwrapper.
4//   Please DO NOT EDIT this file!
5//
6// ***************************************************************************
7
8#include <osgIntrospection/ReflectionMacros>
9#include <osgIntrospection/TypedMethodInfo>
10#include <osgIntrospection/StaticMethodInfo>
11#include <osgIntrospection/Attributes>
12
13#include <osg/CoordinateSystemNode>
14#include <osg/Matrixd>
15#include <osg/Node>
16#include <osg/Vec3d>
17#include <osgGA/GUIActionAdapter>
18#include <osgGA/GUIEventAdapter>
19#include <osgGA/MatrixManipulator>
20#include <osgUtil/SceneView>
21
22// Must undefine IN and OUT macros defined in Windows headers
23#ifdef IN
24#undef IN
25#endif
26#ifdef OUT
27#undef OUT
28#endif
29
30BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator)
31        I_DeclaringFile("osgGA/MatrixManipulator");
32        I_BaseType(osgGA::GUIEventHandler);
33        I_Method0(const char *, className,
34                  Properties::VIRTUAL,
35                  __C5_char_P1__className,
36                  "return the name of the object's class type. ",
37                  "Must be defined by derived classes. ");
38        I_Method1(void, setMinimumDistance, IN, float, minimumDistance,
39                  Properties::VIRTUAL,
40                  __void__setMinimumDistance__float,
41                  "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ",
42                  "");
43        I_Method0(float, getMinimumDistance,
44                  Properties::NON_VIRTUAL,
45                  __float__getMinimumDistance,
46                  "get the minimum distance (as ratio) the eye point can be zoomed in ",
47                  "");
48        I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb,
49                  Properties::VIRTUAL,
50                  __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1,
51                  "set the coordinate frame which callback tells the manipulator which way is up, east and north. ",
52                  "");
53        I_Method0(osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback,
54                  Properties::NON_VIRTUAL,
55                  __CoordinateFrameCallback_P1__getCoordinateFrameCallback,
56                  "get the coordinate frame callback which tells the manipulator which way is up, east and north. ",
57                  "");
58        I_Method0(const osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback,
59                  Properties::NON_VIRTUAL,
60                  __C5_CoordinateFrameCallback_P1__getCoordinateFrameCallback,
61                  "get the coordinate frame callback which tells the manipulator which way is up, east and north. ",
62                  "");
63        I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position,
64                  Properties::NON_VIRTUAL,
65                  __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1,
66                  "get the coordinate frame. ",
67                  "");
68        I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf,
69                  Properties::NON_VIRTUAL,
70                  __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1,
71                  "",
72                  "");
73        I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf,
74                  Properties::NON_VIRTUAL,
75                  __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1,
76                  "",
77                  "");
78        I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf,
79                  Properties::NON_VIRTUAL,
80                  __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1,
81                  "",
82                  "");
83        I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix,
84                  Properties::PURE_VIRTUAL,
85                  __void__setByMatrix__C5_osg_Matrixd_R1,
86                  "set the position of the matrix manipulator using a 4x4 Matrix. ",
87                  "");
88        I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix,
89                  Properties::PURE_VIRTUAL,
90                  __void__setByInverseMatrix__C5_osg_Matrixd_R1,
91                  "set the position of the matrix manipulator using a 4x4 Matrix. ",
92                  "");
93        I_Method0(osg::Matrixd, getMatrix,
94                  Properties::PURE_VIRTUAL,
95                  __osg_Matrixd__getMatrix,
96                  "get the position of the manipulator as 4x4 Matrix. ",
97                  "");
98        I_Method0(osg::Matrixd, getInverseMatrix,
99                  Properties::PURE_VIRTUAL,
100                  __osg_Matrixd__getInverseMatrix,
101                  "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ",
102                  "");
103        I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode,
104                  Properties::VIRTUAL,
105                  __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,
106                  "Get the FusionDistanceMode. ",
107                  "Used by SceneView for setting up stereo convergence. ");
108        I_Method0(float, getFusionDistanceValue,
109                  Properties::VIRTUAL,
110                  __float__getFusionDistanceValue,
111                  "Get the FusionDistanceValue. ",
112                  "Used by SceneView for setting up stereo convergence. ");
113        I_Method1(void, setDistance, IN, double, x,
114                  Properties::NON_VIRTUAL,
115                  __void__setDistance__double,
116                  "Set the distance parameter (used by TrackballManipulator etc. ",
117                  ") ");
118        I_Method0(double, getDistance,
119                  Properties::VIRTUAL,
120                  __double__getDistance,
121                  "Get the distance parameter. ",
122                  "");
123        I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask,
124                  Properties::NON_VIRTUAL,
125                  __void__setIntersectTraversalMask__unsigned_int,
126                  "Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ",
127                  "The intersection traversal mask is useful for controlling what parts of the scene graph should be used for intersection purposes. ");
128        I_Method0(unsigned int, getIntersectTraversalMask,
129                  Properties::NON_VIRTUAL,
130                  __unsigned_int__getIntersectTraversalMask,
131                  "Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ",
132                  "");
133        I_Method1(void, setNode, IN, osg::Node *, x,
134                  Properties::VIRTUAL,
135                  __void__setNode__osg_Node_P1,
136                  "Attach a node to the manipulator, automatically detaching any previously attached node. ",
137                  "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. ");
138        I_Method0(const osg::Node *, getNode,
139                  Properties::VIRTUAL,
140                  __C5_osg_Node_P1__getNode,
141                  "Return const node if attached. ",
142                  "");
143        I_Method0(osg::Node *, getNode,
144                  Properties::VIRTUAL,
145                  __osg_Node_P1__getNode,
146                  "Return node if attached. ",
147                  "");
148        I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false,
149                              Properties::VIRTUAL,
150                              __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool,
151                              "Manually set the home position, and set the automatic compute of home position. ",
152                              "");
153        I_Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up,
154                  Properties::VIRTUAL,
155                  __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1,
156                  "Get the manually set home position. ",
157                  "");
158        I_Method1(void, setAutoComputeHomePosition, IN, bool, flag,
159                  Properties::VIRTUAL,
160                  __void__setAutoComputeHomePosition__bool,
161                  "Set whether the automatic compute of the home position is enabled. ",
162                  "");
163        I_Method0(bool, getAutoComputeHomePosition,
164                  Properties::NON_VIRTUAL,
165                  __bool__getAutoComputeHomePosition,
166                  "Get whether the automatic compute of the home position is enabled. ",
167                  "");
168        I_Method0(void, computeHomePosition,
169                  Properties::VIRTUAL,
170                  __void__computeHomePosition,
171                  "Compute the home position. ",
172                  "");
173        I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
174                  Properties::VIRTUAL,
175                  __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
176                  "Move the camera to the default position. ",
177                  "May be ignored by manipulators if home functionality is not appropriate. ");
178        I_Method1(void, home, IN, double, x,
179                  Properties::VIRTUAL,
180                  __void__home__double,
181                  "Move the camera to the default position. ",
182                  "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications. ");
183        I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
184                  Properties::VIRTUAL,
185                  __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
186                  "Start/restart the manipulator. ",
187                  "FIXME: what does this actually mean? Provide examples. ");
188        I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
189                  Properties::VIRTUAL,
190                  __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
191                  "Handle events, return true if handled, false otherwise. ",
192                  "");
193        I_ProtectedConstructor0(____MatrixManipulator,
194                                "",
195                                "");
196        I_SimpleProperty(bool, AutoComputeHomePosition,
197                         __bool__getAutoComputeHomePosition,
198                         __void__setAutoComputeHomePosition__bool);
199        I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix,
200                         0,
201                         __void__setByInverseMatrix__C5_osg_Matrixd_R1);
202        I_SimpleProperty(const osg::Matrixd &, ByMatrix,
203                         0,
204                         __void__setByMatrix__C5_osg_Matrixd_R1);
205        I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback,
206                         __CoordinateFrameCallback_P1__getCoordinateFrameCallback,
207                         __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1);
208        I_SimpleProperty(double, Distance,
209                         __double__getDistance,
210                         __void__setDistance__double);
211        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,
212                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,
213                         0);
214        I_SimpleProperty(float, FusionDistanceValue,
215                         __float__getFusionDistanceValue,
216                         0);
217        I_SimpleProperty(unsigned int, IntersectTraversalMask,
218                         __unsigned_int__getIntersectTraversalMask,
219                         __void__setIntersectTraversalMask__unsigned_int);
220        I_SimpleProperty(osg::Matrixd, InverseMatrix,
221                         __osg_Matrixd__getInverseMatrix,
222                         0);
223        I_SimpleProperty(osg::Matrixd, Matrix,
224                         __osg_Matrixd__getMatrix,
225                         0);
226        I_SimpleProperty(float, MinimumDistance,
227                         __float__getMinimumDistance,
228                         __void__setMinimumDistance__float);
229        I_SimpleProperty(osg::Node *, Node,
230                         __osg_Node_P1__getNode,
231                         __void__setNode__osg_Node_P1);
232END_REFLECTOR
233
234BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback)
235        I_DeclaringFile("osgGA/MatrixManipulator");
236        I_BaseType(osg::Referenced);
237        I_Constructor0(____CoordinateFrameCallback,
238                       "",
239                       "");
240        I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position,
241                  Properties::PURE_VIRTUAL,
242                  __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1,
243                  "",
244                  "");
245END_REFLECTOR
Note: See TracBrowser for help on using the browser.