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

Revision 7654, 11.2 kB (checked in by robert, 6 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, setIntersectTraversalMask, IN, unsigned int, mask,
114                  Properties::NON_VIRTUAL,
115                  __void__setIntersectTraversalMask__unsigned_int,
116                  "Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ",
117                  "The intersection traversal mask is useful for controlling what parts of the scene graph should be used for intersection purposes. ");
118        I_Method0(unsigned int, getIntersectTraversalMask,
119                  Properties::NON_VIRTUAL,
120                  __unsigned_int__getIntersectTraversalMask,
121                  "Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ",
122                  "");
123        I_Method1(void, setNode, IN, osg::Node *, x,
124                  Properties::VIRTUAL,
125                  __void__setNode__osg_Node_P1,
126                  "Attach a node to the manipulator, automatically detaching any previously attached node. ",
127                  "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. ");
128        I_Method0(const osg::Node *, getNode,
129                  Properties::VIRTUAL,
130                  __C5_osg_Node_P1__getNode,
131                  "Return const node if attached. ",
132                  "");
133        I_Method0(osg::Node *, getNode,
134                  Properties::VIRTUAL,
135                  __osg_Node_P1__getNode,
136                  "Return node if attached. ",
137                  "");
138        I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false,
139                              Properties::VIRTUAL,
140                              __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool,
141                              "Manually set the home position, and set the automatic compute of home position. ",
142                              "");
143        I_Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up,
144                  Properties::VIRTUAL,
145                  __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1,
146                  "Get the manually set home position. ",
147                  "");
148        I_Method1(void, setAutoComputeHomePosition, IN, bool, flag,
149                  Properties::VIRTUAL,
150                  __void__setAutoComputeHomePosition__bool,
151                  "Set whether the automatic compute of the home position is enabled. ",
152                  "");
153        I_Method0(bool, getAutoComputeHomePosition,
154                  Properties::NON_VIRTUAL,
155                  __bool__getAutoComputeHomePosition,
156                  "Get whether the automatic compute of the home position is enabled. ",
157                  "");
158        I_Method0(void, computeHomePosition,
159                  Properties::VIRTUAL,
160                  __void__computeHomePosition,
161                  "Compute the home position. ",
162                  "");
163        I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
164                  Properties::VIRTUAL,
165                  __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
166                  "Move the camera to the default position. ",
167                  "May be ignored by manipulators if home functionality is not appropriate. ");
168        I_Method1(void, home, IN, double, x,
169                  Properties::VIRTUAL,
170                  __void__home__double,
171                  "Move the camera to the default position. ",
172                  "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. ");
173        I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
174                  Properties::VIRTUAL,
175                  __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
176                  "Start/restart the manipulator. ",
177                  "FIXME: what does this actually mean? Provide examples. ");
178        I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
179                  Properties::VIRTUAL,
180                  __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
181                  "Handle events, return true if handled, false otherwise. ",
182                  "");
183        I_ProtectedConstructor0(____MatrixManipulator,
184                                "",
185                                "");
186        I_SimpleProperty(bool, AutoComputeHomePosition,
187                         __bool__getAutoComputeHomePosition,
188                         __void__setAutoComputeHomePosition__bool);
189        I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix,
190                         0,
191                         __void__setByInverseMatrix__C5_osg_Matrixd_R1);
192        I_SimpleProperty(const osg::Matrixd &, ByMatrix,
193                         0,
194                         __void__setByMatrix__C5_osg_Matrixd_R1);
195        I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback,
196                         __CoordinateFrameCallback_P1__getCoordinateFrameCallback,
197                         __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1);
198        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,
199                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,
200                         0);
201        I_SimpleProperty(float, FusionDistanceValue,
202                         __float__getFusionDistanceValue,
203                         0);
204        I_SimpleProperty(unsigned int, IntersectTraversalMask,
205                         __unsigned_int__getIntersectTraversalMask,
206                         __void__setIntersectTraversalMask__unsigned_int);
207        I_SimpleProperty(osg::Matrixd, InverseMatrix,
208                         __osg_Matrixd__getInverseMatrix,
209                         0);
210        I_SimpleProperty(osg::Matrixd, Matrix,
211                         __osg_Matrixd__getMatrix,
212                         0);
213        I_SimpleProperty(float, MinimumDistance,
214                         __float__getMinimumDistance,
215                         __void__setMinimumDistance__float);
216        I_SimpleProperty(osg::Node *, Node,
217                         __osg_Node_P1__getNode,
218                         __void__setNode__osg_Node_P1);
219END_REFLECTOR
220
221BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback)
222        I_DeclaringFile("osgGA/MatrixManipulator");
223        I_BaseType(osg::Referenced);
224        I_Constructor0(____CoordinateFrameCallback,
225                       "",
226                       "");
227        I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position,
228                  Properties::PURE_VIRTUAL,
229                  __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1,
230                  "",
231                  "");
232END_REFLECTOR
Note: See TracBrowser for help on using the browser.