-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
FlightManipulator.cpp
187 lines (181 loc) · 7.68 KB
/
FlightManipulator.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
// ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/TypedMethodInfo>
#include <osgIntrospection/StaticMethodInfo>
#include <osgIntrospection/Attributes>
#include <osg/ApplicationUsage>
#include <osg/Matrixd>
#include <osg/Node>
#include <osgGA/FlightManipulator>
#include <osgGA/GUIActionAdapter>
#include <osgGA/GUIEventAdapter>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
#undef IN
#endif
#ifdef OUT
#undef OUT
#endif
BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode)
I_DeclaringFile("osgGA/FlightManipulator");
I_EnumLabel(osgGA::FlightManipulator::YAW_AUTOMATICALLY_WHEN_BANKED);
I_EnumLabel(osgGA::FlightManipulator::NO_AUTOMATIC_YAW);
END_REFLECTOR
BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator)
I_DeclaringFile("osgGA/FlightManipulator");
I_BaseType(osgGA::MatrixManipulator);
I_Constructor0(____FlightManipulator,
"",
"");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix,
Properties::VIRTUAL,
__void__setByMatrix__C5_osg_Matrixd_R1,
"set the position of the matrix manipulator using a 4x4 Matrix. ",
"");
I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix,
Properties::VIRTUAL,
__void__setByInverseMatrix__C5_osg_Matrixd_R1,
"set the position of the matrix manipulator using a 4x4 Matrix. ",
"");
I_Method0(osg::Matrixd, getMatrix,
Properties::VIRTUAL,
__osg_Matrixd__getMatrix,
"get the position of the manipulator as 4x4 Matrix. ",
"");
I_Method0(osg::Matrixd, getInverseMatrix,
Properties::VIRTUAL,
__osg_Matrixd__getInverseMatrix,
"get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ",
"");
I_Method1(void, setNode, IN, osg::Node *, x,
Properties::VIRTUAL,
__void__setNode__osg_Node_P1,
"Attach a node to the manipulator, automatically detaching any previously attached node. ",
"setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model. ");
I_Method0(const osg::Node *, getNode,
Properties::VIRTUAL,
__C5_osg_Node_P1__getNode,
"Return const node if attached. ",
"");
I_Method0(osg::Node *, getNode,
Properties::VIRTUAL,
__osg_Node_P1__getNode,
"Return node if attached. ",
"");
I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
Properties::VIRTUAL,
__void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"Move the camera to the default position. ",
"May be ignored by manipulators if home functionality is not appropriate. ");
I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
Properties::VIRTUAL,
__void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"Start/restart the manipulator. ",
"FIXME: what does this actually mean? Provide examples. ");
I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"Handle events, return true if handled, false otherwise. ",
"");
I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
Properties::VIRTUAL,
__void__getUsage__osg_ApplicationUsage_R1,
"Get the keyboard and mouse usage of this manipulator. ",
"");
I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm,
Properties::NON_VIRTUAL,
__void__setYawControlMode__YawControlMode,
"Configure the Yaw control for the flight model. ",
"");
I_Method1(void, setModelScale, IN, double, in_ms,
Properties::NON_VIRTUAL,
__void__setModelScale__double,
"",
"");
I_Method0(double, getModelScale,
Properties::NON_VIRTUAL,
__double__getModelScale,
"",
"");
I_Method1(void, setAcceleration, IN, double, in_acc,
Properties::NON_VIRTUAL,
__void__setAcceleration__double,
"",
"");
I_Method0(double, getAcceleration,
Properties::NON_VIRTUAL,
__double__getAcceleration,
"",
"");
I_Method1(void, setVelocity, IN, double, in_vel,
Properties::NON_VIRTUAL,
__void__setVelocity__double,
"",
"");
I_Method0(double, getVelocity,
Properties::NON_VIRTUAL,
__double__getVelocity,
"",
"");
I_ProtectedMethod0(void, flushMouseEventStack,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__flushMouseEventStack,
"Reset the internal GUIEvent stack. ",
"");
I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__addMouseEvent__C5_GUIEventAdapter_R1,
"Add the current mouse GUIEvent to internal stack. ",
"");
I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, lv, IN, const osg::Vec3 &, up,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__void__computePosition__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
"",
"");
I_ProtectedMethod0(bool, calcMovement,
Properties::NON_VIRTUAL,
Properties::NON_CONST,
__bool__calcMovement,
"For the give mouse movement calculate the movement of the camera. ",
"Return true is camera has moved and a redraw is required. ");
I_SimpleProperty(double, Acceleration,
__double__getAcceleration,
__void__setAcceleration__double);
I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix,
0,
__void__setByInverseMatrix__C5_osg_Matrixd_R1);
I_SimpleProperty(const osg::Matrixd &, ByMatrix,
0,
__void__setByMatrix__C5_osg_Matrixd_R1);
I_SimpleProperty(osg::Matrixd, InverseMatrix,
__osg_Matrixd__getInverseMatrix,
0);
I_SimpleProperty(osg::Matrixd, Matrix,
__osg_Matrixd__getMatrix,
0);
I_SimpleProperty(double, ModelScale,
__double__getModelScale,
__void__setModelScale__double);
I_SimpleProperty(osg::Node *, Node,
__osg_Node_P1__getNode,
__void__setNode__osg_Node_P1);
I_SimpleProperty(double, Velocity,
__double__getVelocity,
__void__setVelocity__double);
I_SimpleProperty(osgGA::FlightManipulator::YawControlMode, YawControlMode,
0,
__void__setYawControlMode__YawControlMode);
END_REFLECTOR