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

Revision 9775, 12.5 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, setNode, IN, osg::Node *, x,
147                  Properties::VIRTUAL,
148                  __void__setNode__osg_Node_P1,
149                  "Attach a node to the manipulator, automatically detaching any previously attached node. ",
150                  "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. ");
151        I_Method0(const osg::Node *, getNode,
152                  Properties::VIRTUAL,
153                  __C5_osg_Node_P1__getNode,
154                  "Return const node if attached. ",
155                  "");
156        I_Method0(osg::Node *, getNode,
157                  Properties::VIRTUAL,
158                  __osg_Node_P1__getNode,
159                  "Return node if attached. ",
160                  "");
161        I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false,
162                              Properties::VIRTUAL,
163                              __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool,
164                              "Manually set the home position, and set the automatic compute of home position. ",
165                              "");
166        I_Method1(void, setAutoComputeHomePosition, IN, bool, flag,
167                  Properties::VIRTUAL,
168                  __void__setAutoComputeHomePosition__bool,
169                  "Set whether the automatic compute of the home position is enabled. ",
170                  "");
171        I_Method0(void, computeHomePosition,
172                  Properties::VIRTUAL,
173                  __void__computeHomePosition,
174                  "Compute the home position. ",
175                  "");
176        I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
177                  Properties::VIRTUAL,
178                  __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
179                  "Move the camera to the default position. ",
180                  "May be ignored by manipulators if home functionality is not appropriate. ");
181        I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
182                  Properties::VIRTUAL,
183                  __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
184                  "Start/restart the manipulator. ",
185                  "FIXME: what does this actually mean? Provide examples. ");
186        I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
187                  Properties::VIRTUAL,
188                  __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
189                  "Handle events, return true if handled, false otherwise. ",
190                  "");
191        I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
192                  Properties::VIRTUAL,
193                  __void__getUsage__osg_ApplicationUsage_R1,
194                  "Get the keyboard and mouse usage of this manipulator. ",
195                  "");
196        I_SimpleProperty(bool, AutoComputeHomePosition,
197                         0,
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                         0,
207                         __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1);
208        I_SimpleProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator,
209                         __MatrixManipulator_P1__getCurrentMatrixManipulator,
210                         0);
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(osg::Matrixd, InverseMatrix,
218                         __osg_Matrixd__getInverseMatrix,
219                         0);
220        I_SimpleProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap,
221                         __KeyManipMap_R1__getKeyManipMap,
222                         0);
223        I_SimpleProperty(osg::Matrixd, Matrix,
224                         __osg_Matrixd__getMatrix,
225                         0);
226        I_SimpleProperty(float, MinimumDistance,
227                         0,
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_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >)
235        I_DeclaringFile("osg/ref_ptr");
236        I_Constructor0(____ref_ptr,
237                       "",
238                       "");
239        I_Constructor1(IN, osgGA::MatrixManipulator *, ptr,
240                       Properties::NON_EXPLICIT,
241                       ____ref_ptr__T_P1,
242                       "",
243                       "");
244        I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp,
245                       Properties::NON_EXPLICIT,
246                       ____ref_ptr__C5_ref_ptr_R1,
247                       "",
248                       "");
249        I_Method0(osgGA::MatrixManipulator *, get,
250                  Properties::NON_VIRTUAL,
251                  __T_P1__get,
252                  "",
253                  "");
254        I_Method0(bool, valid,
255                  Properties::NON_VIRTUAL,
256                  __bool__valid,
257                  "",
258                  "");
259        I_Method0(osgGA::MatrixManipulator *, release,
260                  Properties::NON_VIRTUAL,
261                  __T_P1__release,
262                  "",
263                  "");
264        I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp,
265                  Properties::NON_VIRTUAL,
266                  __void__swap__ref_ptr_R1,
267                  "",
268                  "");
269        I_SimpleProperty(osgGA::MatrixManipulator *, ,
270                         __T_P1__get,
271                         0);
272END_REFLECTOR
273
274STD_MAP_REFLECTOR(std::map< int COMMA  osgGA::KeySwitchMatrixManipulator::NamedManipulator >)
275
276STD_PAIR_REFLECTOR(std::pair< std::string COMMA  osg::ref_ptr< osgGA::MatrixManipulator > >)
Note: See TracBrowser for help on using the browser.