This URL has Read-Only access.

Statistics
| Branch: | Tag: | Revision:

root / src / osgWrappers / introspection / TextNode.cpp @ 59a2feef

History | View | Annotate | Download (11.8 kB)

1
// ***************************************************************************
2
//
3
//   Generated automatically by genwrapper.
4
//   Please DO NOT EDIT this file!
5
//
6
// ***************************************************************************
7

    
8
#include <cppintrospection/ReflectionMacros>
9
#include <cppintrospection/TypedMethodInfo>
10
#include <cppintrospection/StaticMethodInfo>
11
#include <cppintrospection/Attributes>
12

    
13
#include <SceneManager.h>
14
#include <TextNode.h>
15

    
16
// Must undefine IN and OUT macros defined in Windows headers
17
#ifdef IN
18
#undef IN
19
#endif
20
#ifdef OUT
21
#undef OUT
22
#endif
23

    
24
BEGIN_VALUE_REFLECTOR(spin::spinTextNode)
25
        I_DeclaringFile("TextNode.h");
26
        I_Constructor0(____spinTextNode,
27
                       "",
28
                       "");
29
        I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last,
30
                           Properties::NON_VIRTUAL,
31
                           Properties::NON_CONST,
32
                           __osgText_String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__osgText_String_iterator__osgText_String_iterator,
33
                           "",
34
                           "");
35
        I_ProtectedMethod0(void, computeGlyphRepresentation,
36
                           Properties::NON_VIRTUAL,
37
                           Properties::NON_CONST,
38
                           __void__computeGlyphRepresentation,
39
                           "",
40
                           "");
41
END_REFLECTOR
42

    
43
BEGIN_ENUM_REFLECTOR(spin::TextNode::billboardType)
44
        I_DeclaringFile("TextNode.h");
45
        I_EnumLabel(spin::TextNode::RELATIVE);
46
        I_EnumLabel(spin::TextNode::POINT_EYE);
47
        I_EnumLabel(spin::TextNode::STAY_UP);
48
END_REFLECTOR
49

    
50
BEGIN_ENUM_REFLECTOR(spin::TextNode::decorationType)
51
        I_DeclaringFile("TextNode.h");
52
        I_EnumLabel(spin::TextNode::DROP_SHADOW_BOTTOM_RIGHT);
53
        I_EnumLabel(spin::TextNode::DROP_SHADOW_CENTER_RIGHT);
54
        I_EnumLabel(spin::TextNode::DROP_SHADOW_TOP_RIGHT);
55
        I_EnumLabel(spin::TextNode::DROP_SHADOW_BOTTOM_CENTER);
56
        I_EnumLabel(spin::TextNode::DROP_SHADOW_TOP_CENTER);
57
        I_EnumLabel(spin::TextNode::DROP_SHADOW_BOTTOM_LEFT);
58
        I_EnumLabel(spin::TextNode::DROP_SHADOW_CENTER_LEFT);
59
        I_EnumLabel(spin::TextNode::DROP_SHADOW_TOP_LEFT);
60
        I_EnumLabel(spin::TextNode::OUTLINE);
61
        I_EnumLabel(spin::TextNode::NONE);
62
END_REFLECTOR
63

    
64
BEGIN_ENUM_REFLECTOR(spin::TextNode::backgroundType)
65
        I_DeclaringFile("TextNode.h");
66
        I_EnumLabel(spin::TextNode::NO_BACKGROUND);
67
        I_EnumLabel(spin::TextNode::FILLED);
68
        I_EnumLabel(spin::TextNode::WIREFRAME);
69
        I_EnumLabel(spin::TextNode::ALL);
70
END_REFLECTOR
71

    
72
BEGIN_OBJECT_REFLECTOR(spin::TextNode)
73
        I_DeclaringFile("TextNode.h");
74
        I_BaseType(spin::GroupNode);
75
        I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, char *, initID,
76
                       ____TextNode__SceneManager_P1__char_P1,
77
                       "",
78
                       "");
79
        I_Method0(void, callbackUpdate,
80
                  Properties::VIRTUAL,
81
                  __void__callbackUpdate,
82
                  "",
83
                  "For nodes that require regular programmatic control, there is a callback that is evaluated with every refresh. This function can thus be used for animations, or any other periodic updates.Note that changes to the scene graph structure (eg, moving/deleting nodes should NOT be done within this callback because traversals stacks will become corrupted. The technique is rather to enable a flag and then do the actual change in the SceneManager::updateGraph() method. ");
84
        I_Method1(void, setContext, IN, const char *, newvalue,
85
                  Properties::VIRTUAL,
86
                  __void__setContext__C5_char_P1,
87
                  "",
88
                  "A node can 'belong' to a certain host machine, allowing it to be rendered or behave differently than on other machines.NOTE: the \"NULL\" string means that it belongs to no specific context.NOTE: a scene operating in SERVER_MODE will always create the node, so this feature is only really relevant for clients applications. ");
89
        I_Method1(void, setText, IN, const char *, s,
90
                  Properties::NON_VIRTUAL,
91
                  __void__setText__C5_char_P1,
92
                  "",
93
                  "Accepts user-entered string for the node's text. ");
94
        I_Method1(void, setTextValue, IN, const char *, s,
95
                  Properties::NON_VIRTUAL,
96
                  __void__setTextValue__C5_char_P1,
97
                  "",
98
                  "Deprecated method (here for backwards compatibility). ");
99
        I_Method1(void, setFont, IN, const char *, s,
100
                  Properties::NON_VIRTUAL,
101
                  __void__setFont__C5_char_P1,
102
                  "",
103
                  "Sets the font for the text associated with this node. ");
104
        I_Method1(void, setSize, IN, float, s,
105
                  Properties::NON_VIRTUAL,
106
                  __void__setSize__float,
107
                  "",
108
                  "Sets the point-size for the text associated with this node. ");
109
        I_Method2(void, setBox, IN, float, width, IN, float, height,
110
                  Properties::NON_VIRTUAL,
111
                  __void__setBox__float__float,
112
                  "",
113
                  "Sets the maximum size of the text box. Values of 0 in either dimension means no maximum, so that the box will stretch to fit the text ");
114
        I_Method1(void, setLineSpacing, IN, float, spacing,
115
                  Properties::NON_VIRTUAL,
116
                  __void__setLineSpacing__float,
117
                  "",
118
                  "Sets the line spacing, as a percentage of the character height. The default is 0 ");
119
        I_Method1(void, setAlignment, IN, int, alignment,
120
                  Properties::NON_VIRTUAL,
121
                  __void__setAlignment__int,
122
                  "",
123
                  "Sets the maximum size of the text box. ");
124
        I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha,
125
                  Properties::NON_VIRTUAL,
126
                  __void__setColor__float__float__float__float,
127
                  "",
128
                  "Sets the color for the text associated to this node in RGBA values. ");
129
        I_Method4(void, setBgColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha,
130
                  Properties::NON_VIRTUAL,
131
                  __void__setBgColor__float__float__float__float,
132
                  "",
133
                  "Sets the background color for this node. ");
134
        I_Method1(void, setMargin, IN, float, margin,
135
                  Properties::NON_VIRTUAL,
136
                  __void__setMargin__float,
137
                  "",
138
                  "Sets the margins for the text associated to this node. ");
139
        I_Method1(void, setBillboard, IN, spin::TextNode::billboardType, t,
140
                  Properties::NON_VIRTUAL,
141
                  __void__setBillboard__billboardType,
142
                  "",
143
                  "Sets the type of billboarding asigned to this node (drawn from the enum billboardType). ");
144
        I_Method1(void, setDecoration, IN, spin::TextNode::decorationType, t,
145
                  Properties::NON_VIRTUAL,
146
                  __void__setDecoration__decorationType,
147
                  "",
148
                  "Sets the shadowing or outline type for this text node (drawn from the decorationType enum). ");
149
        I_Method1(void, setBackground, IN, spin::TextNode::backgroundType, t,
150
                  Properties::NON_VIRTUAL,
151
                  __void__setBackground__backgroundType,
152
                  "",
153
                  "Sets a background type for the text box (drawn from the backgroundType enum). ");
154
        I_Method1(void, setSingleSided, IN, int, singleSided,
155
                  Properties::NON_VIRTUAL,
156
                  __void__setSingleSided__int,
157
                  "",
158
                  "Specify whether both sides or only one side of the text is rendered. ie, whether the backface is culled or not. ");
159
        I_Method0(const char *, getText,
160
                  Properties::NON_VIRTUAL,
161
                  __C5_char_P1__getText,
162
                  "",
163
                  "Returns a string with the text associated to this node. ");
164
        I_Method0(std::string, getTextString,
165
                  Properties::NON_VIRTUAL,
166
                  __std_string__getTextString,
167
                  "",
168
                  "Returns a string with the text associated to this node. ");
169
        I_Method0(const char *, getFont,
170
                  Properties::NON_VIRTUAL,
171
                  __C5_char_P1__getFont,
172
                  "",
173
                  "Returns a string indicating the font of the text associated to this node. ");
174
        I_Method0(float, getSize,
175
                  Properties::NON_VIRTUAL,
176
                  __float__getSize,
177
                  "",
178
                  "Returns a float indicating the size of the text associated to this node. ");
179
        I_Method0(float, getLineSpacing,
180
                  Properties::NON_VIRTUAL,
181
                  __float__getLineSpacing,
182
                  "",
183
                  "Returns a float indicating the line spacing (as a percentage of character height). ");
184
        I_Method0(osg::Vec4, getColor,
185
                  Properties::NON_VIRTUAL,
186
                  __osg_Vec4__getColor,
187
                  "",
188
                  "Returns the color (in RGBA values) of the text associated to this node. ");
189
        I_Method0(osg::Vec4, getBgColor,
190
                  Properties::NON_VIRTUAL,
191
                  __osg_Vec4__getBgColor,
192
                  "",
193
                  "Returns the background color of the text box in RGBA values. ");
194
        I_Method0(float, getMargin,
195
                  Properties::NON_VIRTUAL,
196
                  __float__getMargin,
197
                  "",
198
                  "Returns a float indicating the margin size of the text box. ");
199
        I_Method0(int, getBillboard,
200
                  Properties::NON_VIRTUAL,
201
                  __int__getBillboard,
202
                  "",
203
                  "Returns the currently set billboarding type with respect to the billboardType enum. ");
204
        I_Method0(int, getDecoration,
205
                  Properties::NON_VIRTUAL,
206
                  __int__getDecoration,
207
                  "",
208
                  "Returns the currently set decoration type (shadows or outlines) with respect to the decorationType enum. ");
209
        I_Method0(int, getBackround,
210
                  Properties::NON_VIRTUAL,
211
                  __int__getBackround,
212
                  "",
213
                  "Returns the currently set background type with respect to the choices in the backgroundType enum. ");
214
        I_Method0(int, getSingleSided,
215
                  Properties::NON_VIRTUAL,
216
                  __int__getSingleSided,
217
                  "",
218
                  "Returns whether the text is drawn single-sided or not. ");
219
        I_Method0(std::vector< lo_message >, getState,
220
                  Properties::VIRTUAL,
221
                  __std_vectorT1_lo_message___getState,
222
                  "",
223
                  "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node ");
224
        I_SimpleProperty(int, Alignment, 
225
                         0, 
226
                         __void__setAlignment__int);
227
        I_SimpleProperty(spin::TextNode::backgroundType, Background, 
228
                         0, 
229
                         __void__setBackground__backgroundType);
230
        I_SimpleProperty(int, Backround, 
231
                         __int__getBackround, 
232
                         0);
233
        I_SimpleProperty(osg::Vec4, BgColor, 
234
                         __osg_Vec4__getBgColor, 
235
                         0);
236
        I_SimpleProperty(int, Billboard, 
237
                         __int__getBillboard, 
238
                         0);
239
        I_SimpleProperty(osg::Vec4, Color, 
240
                         __osg_Vec4__getColor, 
241
                         0);
242
        I_SimpleProperty(const char *, Context, 
243
                         0, 
244
                         __void__setContext__C5_char_P1);
245
        I_SimpleProperty(int, Decoration, 
246
                         __int__getDecoration, 
247
                         0);
248
        I_SimpleProperty(const char *, Font, 
249
                         __C5_char_P1__getFont, 
250
                         __void__setFont__C5_char_P1);
251
        I_SimpleProperty(float, LineSpacing, 
252
                         __float__getLineSpacing, 
253
                         __void__setLineSpacing__float);
254
        I_SimpleProperty(float, Margin, 
255
                         __float__getMargin, 
256
                         __void__setMargin__float);
257
        I_SimpleProperty(int, SingleSided, 
258
                         __int__getSingleSided, 
259
                         __void__setSingleSided__int);
260
        I_SimpleProperty(float, Size, 
261
                         __float__getSize, 
262
                         __void__setSize__float);
263
        I_SimpleProperty(std::vector< lo_message >, State, 
264
                         __std_vectorT1_lo_message___getState, 
265
                         0);
266
        I_SimpleProperty(const char *, Text, 
267
                         __C5_char_P1__getText, 
268
                         __void__setText__C5_char_P1);
269
        I_SimpleProperty(std::string, TextString, 
270
                         __std_string__getTextString, 
271
                         0);
272
        I_SimpleProperty(const char *, TextValue, 
273
                         0, 
274
                         __void__setTextValue__C5_char_P1);
275
END_REFLECTOR
276