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

Revision 10916, 12.9 kB (checked in by robert, 5 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/ApplicationUsage>
14#include <osg/Matrixd>
15#include <osg/Node>
16#include <osg/Vec3d>
17#include <osgGA/GUIActionAdapter>
18#include <osgGA/GUIEventAdapter>
19#include <osgGA/KeySwitchMatrixManipulator>
20#include <osgGA/MatrixManipulator>
21#include <osgUtil/SceneView>
22
23// Must undefine IN and OUT macros defined in Windows headers
24#ifdef IN
25#undef IN
26#endif
27#ifdef OUT
28#undef OUT
29#endif
30
31TYPE_NAME_ALIAS(std::pair< std::string COMMA  osg::ref_ptr< osgGA::MatrixManipulator > >, osgGA::KeySwitchMatrixManipulator::NamedManipulator)
32
33TYPE_NAME_ALIAS(std::map< int COMMA  osgGA::KeySwitchMatrixManipulator::NamedManipulator >, osgGA::KeySwitchMatrixManipulator::KeyManipMap)
34
35BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator)
36        I_DeclaringFile("osgGA/KeySwitchMatrixManipulator");
37        I_BaseType(osgGA::MatrixManipulator);
38        I_Constructor0(____KeySwitchMatrixManipulator,
39                       "",
40                       "");
41        I_Method0(const char *, className,
42                  Properties::VIRTUAL,
43                  __C5_char_P1__className,
44                  "return the name of the object's class type. ",
45                  "Must be defined by derived classes. ");
46        I_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm,
47                  Properties::NON_VIRTUAL,
48                  __void__addMatrixManipulator__int__std_string__MatrixManipulator_P1,
49                  "Add a camera manipulator with an associated name, and a key to trigger the switch,. ",
50                  "");
51        I_Method1(void, addNumberedMatrixManipulator, IN, osgGA::MatrixManipulator *, cm,
52                  Properties::NON_VIRTUAL,
53                  __void__addNumberedMatrixManipulator__MatrixManipulator_P1,
54                  "Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd. ",
55                  "");
56        I_Method0(unsigned int, getNumMatrixManipulators,
57                  Properties::NON_VIRTUAL,
58                  __unsigned_int__getNumMatrixManipulators,
59                  "",
60                  "");
61        I_Method1(void, selectMatrixManipulator, IN, unsigned int, num,
62                  Properties::NON_VIRTUAL,
63                  __void__selectMatrixManipulator__unsigned_int,
64                  "",
65                  "");
66        I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap,
67                  Properties::NON_VIRTUAL,
68                  __KeyManipMap_R1__getKeyManipMap,
69                  "Get the complete list of manipulators attached to this keyswitch manipulator. ",
70                  "");
71        I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap,
72                  Properties::NON_VIRTUAL,
73                  __C5_KeyManipMap_R1__getKeyManipMap,
74                  "Get the const complete list of manipulators attached to this keyswitch manipulator. ",
75                  "");
76        I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator,
77                  Properties::NON_VIRTUAL,
78                  __MatrixManipulator_P1__getCurrentMatrixManipulator,
79                  "Get the current active manipulators. ",
80                  "");
81        I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator,
82                  Properties::NON_VIRTUAL,
83                  __C5_MatrixManipulator_P1__getCurrentMatrixManipulator,
84                  "Get the const current active manipulators. ",
85                  "");
86        I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key,
87                  Properties::NON_VIRTUAL,
88                  __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int,
89                  "Get manipulator assigned to a specified index. ",
90                  "");
91        I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key,
92                  Properties::NON_VIRTUAL,
93                  __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int,
94                  "Get const manipulator assigned to a specified index. ",
95                  "");
96        I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key,
97                  Properties::NON_VIRTUAL,
98                  __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int,
99                  "Get manipulator assigned to a specified key. ",
100                  "");
101        I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key,
102                  Properties::NON_VIRTUAL,
103                  __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int,
104                  "Get const manipulator assigned to a specified key. ",
105                  "");
106        I_Method1(void, setMinimumDistance, IN, float, minimumDistance,
107                  Properties::VIRTUAL,
108                  __void__setMinimumDistance__float,
109                  "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ",
110                  "");
111        I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb,
112                  Properties::VIRTUAL,
113                  __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1,
114                  "set the coordinate frame which callback tells the manipulator which way is up, east and north. ",
115                  "");
116        I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix,
117                  Properties::VIRTUAL,
118                  __void__setByMatrix__C5_osg_Matrixd_R1,
119                  "Set the position of the matrix manipulator using a 4x4 Matrix. ",
120                  "");
121        I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix,
122                  Properties::VIRTUAL,
123                  __void__setByInverseMatrix__C5_osg_Matrixd_R1,
124                  "set the position of the matrix manipulator using a 4x4 Matrix. ",
125                  "");
126        I_Method0(osg::Matrixd, getMatrix,
127                  Properties::VIRTUAL,
128                  __osg_Matrixd__getMatrix,
129                  "get the position of the manipulator as 4x4 Matrix. ",
130                  "");
131        I_Method0(osg::Matrixd, getInverseMatrix,
132                  Properties::VIRTUAL,
133                  __osg_Matrixd__getInverseMatrix,
134                  "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ",
135                  "");
136        I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode,
137                  Properties::VIRTUAL,
138                  __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,
139                  "Get the FusionDistanceMode. ",
140                  "Used by SceneView for setting up stereo convergence. ");
141        I_Method0(float, getFusionDistanceValue,
142                  Properties::VIRTUAL,
143                  __float__getFusionDistanceValue,
144                  "Get the FusionDistanceValue. ",
145                  "Used by SceneView for setting up stereo convergence. ");
146        I_Method1(void, setDistance, IN, double, distance,
147                  Properties::NON_VIRTUAL,
148                  __void__setDistance__double,
149                  "Set the distance property. ",
150                  "");
151        I_Method0(double, getDistance,
152                  Properties::VIRTUAL,
153                  __double__getDistance,
154                  "Get the distance property. ",
155                  "");
156        I_Method1(void, setNode, IN, osg::Node *, x,
157                  Properties::VIRTUAL,
158                  __void__setNode__osg_Node_P1,
159                  "Attach a node to the manipulator, automatically detaching any previously attached node. ",
160                  "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. ");
161        I_Method0(const osg::Node *, getNode,
162                  Properties::VIRTUAL,
163                  __C5_osg_Node_P1__getNode,
164                  "Return const node if attached. ",
165                  "");
166        I_Method0(osg::Node *, getNode,
167                  Properties::VIRTUAL,
168                  __osg_Node_P1__getNode,
169                  "Return node if attached. ",
170                  "");
171        I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false,
172                              Properties::VIRTUAL,
173                              __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool,
174                              "Manually set the home position, and set the automatic compute of home position. ",
175                              "");
176        I_Method1(void, setAutoComputeHomePosition, IN, bool, flag,
177                  Properties::VIRTUAL,
178                  __void__setAutoComputeHomePosition__bool,
179                  "Set whether the automatic compute of the home position is enabled. ",
180                  "");
181        I_Method0(void, computeHomePosition,
182                  Properties::VIRTUAL,
183                  __void__computeHomePosition,
184                  "Compute the home position. ",
185                  "");
186        I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
187                  Properties::VIRTUAL,
188                  __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
189                  "Move the camera to the default position. ",
190                  "May be ignored by manipulators if home functionality is not appropriate. ");
191        I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
192                  Properties::VIRTUAL,
193                  __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
194                  "Start/restart the manipulator. ",
195                  "FIXME: what does this actually mean? Provide examples. ");
196        I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
197                  Properties::VIRTUAL,
198                  __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
199                  "Handle events, return true if handled, false otherwise. ",
200                  "");
201        I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
202                  Properties::VIRTUAL,
203                  __void__getUsage__osg_ApplicationUsage_R1,
204                  "Get the keyboard and mouse usage of this manipulator. ",
205                  "");
206        I_SimpleProperty(bool, AutoComputeHomePosition,
207                         0,
208                         __void__setAutoComputeHomePosition__bool);
209        I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix,
210                         0,
211                         __void__setByInverseMatrix__C5_osg_Matrixd_R1);
212        I_SimpleProperty(const osg::Matrixd &, ByMatrix,
213                         0,
214                         __void__setByMatrix__C5_osg_Matrixd_R1);
215        I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback,
216                         0,
217                         __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1);
218        I_SimpleProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator,
219                         __MatrixManipulator_P1__getCurrentMatrixManipulator,
220                         0);
221        I_SimpleProperty(double, Distance,
222                         __double__getDistance,
223                         __void__setDistance__double);
224        I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode,
225                         __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode,
226                         0);
227        I_SimpleProperty(float, FusionDistanceValue,
228                         __float__getFusionDistanceValue,
229                         0);
230        I_SimpleProperty(osg::Matrixd, InverseMatrix,
231                         __osg_Matrixd__getInverseMatrix,
232                         0);
233        I_SimpleProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap,
234                         __KeyManipMap_R1__getKeyManipMap,
235                         0);
236        I_SimpleProperty(osg::Matrixd, Matrix,
237                         __osg_Matrixd__getMatrix,
238                         0);
239        I_SimpleProperty(float, MinimumDistance,
240                         0,
241                         __void__setMinimumDistance__float);
242        I_SimpleProperty(osg::Node *, Node,
243                         __osg_Node_P1__getNode,
244                         __void__setNode__osg_Node_P1);
245END_REFLECTOR
246
247BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >)
248        I_DeclaringFile("osg/ref_ptr");
249        I_Constructor0(____ref_ptr,
250                       "",
251                       "");
252        I_Constructor1(IN, osgGA::MatrixManipulator *, ptr,
253                       Properties::NON_EXPLICIT,
254                       ____ref_ptr__T_P1,
255                       "",
256                       "");
257        I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp,
258                       Properties::NON_EXPLICIT,
259                       ____ref_ptr__C5_ref_ptr_R1,
260                       "",
261                       "");
262        I_Method0(osgGA::MatrixManipulator *, get,
263                  Properties::NON_VIRTUAL,
264                  __T_P1__get,
265                  "",
266                  "");
267        I_Method0(bool, valid,
268                  Properties::NON_VIRTUAL,
269                  __bool__valid,
270                  "",
271                  "");
272        I_Method0(osgGA::MatrixManipulator *, release,
273                  Properties::NON_VIRTUAL,
274                  __T_P1__release,
275                  "",
276                  "");
277        I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp,
278                  Properties::NON_VIRTUAL,
279                  __void__swap__ref_ptr_R1,
280                  "",
281                  "");
282        I_SimpleProperty(osgGA::MatrixManipulator *, ,
283                         __T_P1__get,
284                         0);
285END_REFLECTOR
286
287STD_MAP_REFLECTOR(std::map< int COMMA  osgGA::KeySwitchMatrixManipulator::NamedManipulator >)
288
289STD_PAIR_REFLECTOR(std::pair< std::string COMMA  osg::ref_ptr< osgGA::MatrixManipulator > >)
Note: See TracBrowser for help on using the browser.