This URL has Read-Only access.

Statistics
| Branch: | Tag: | Revision:

root / src / osgWrappers / introspection / PointerNode.cpp @ a46d1c46

History | View | Annotate | Download (4.5 kB)

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 <PointerNode.h>
14
#include <ReferencedNode.h>
15
#include <SceneManager.h>
16

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

    
25
BEGIN_OBJECT_REFLECTOR(PointerNode)
26
        I_DeclaringFile("PointerNode.h");
27
        I_BaseType(ReferencedNode);
28
        I_Constructor2(IN, SceneManager *, sceneManager, IN, char *, initID,
29
                       ____PointerNode__SceneManager_P1__char_P1,
30
                       "",
31
                       "");
32
        I_Method0(void, callbackUpdate,
33
                  Properties::VIRTUAL,
34
                  __void__callbackUpdate,
35
                  "",
36
                  "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. ");
37
        I_Method0(void, enableDragger,
38
                  Properties::NON_VIRTUAL,
39
                  __void__enableDragger,
40
                  "",
41
                  "");
42
        I_Method0(void, disableDragger,
43
                  Properties::NON_VIRTUAL,
44
                  __void__disableDragger,
45
                  "",
46
                  "");
47
        I_Method0(ReferencedNode *, getNodeFromIntersections,
48
                  Properties::NON_VIRTUAL,
49
                  __ReferencedNode_P1__getNodeFromIntersections,
50
                  "",
51
                  "");
52
        I_Method1(void, setType, IN, char *, s,
53
                  Properties::NON_VIRTUAL,
54
                  __void__setType__char_P1,
55
                  "",
56
                  "");
57
        I_Method1(void, highlight, IN, int, b,
58
                  Properties::NON_VIRTUAL,
59
                  __void__highlight__int,
60
                  "",
61
                  "");
62
        I_Method1(void, manipulate, IN, int, b,
63
                  Properties::NON_VIRTUAL,
64
                  __void__manipulate__int,
65
                  "",
66
                  "The manipulate() method performs OSG dragger manipulations (once a node has been \"highlighted\" for manipulation). That is, a dragger needs to be attached to a node somewhere, and we check intersections to see if the pointer has selected any of the dragger handles. ");
67
        I_Method0(const char *, getType,
68
                  Properties::NON_VIRTUAL,
69
                  __C5_char_P1__getType,
70
                  "",
71
                  "");
72
        I_Method0(int, getHighlight,
73
                  Properties::NON_VIRTUAL,
74
                  __int__getHighlight,
75
                  "",
76
                  "");
77
        I_Method0(int, getManipulate,
78
                  Properties::NON_VIRTUAL,
79
                  __int__getManipulate,
80
                  "",
81
                  "");
82
        I_Method1(void, grab, IN, int, b,
83
                  Properties::NON_VIRTUAL,
84
                  __void__grab__int,
85
                  "",
86
                  "");
87
        I_Method1(void, pull, IN, float, f,
88
                  Properties::NON_VIRTUAL,
89
                  __void__pull__float,
90
                  "",
91
                  "");
92
        I_Method0(int, getGrab,
93
                  Properties::NON_VIRTUAL,
94
                  __int__getGrab,
95
                  "",
96
                  "");
97
        I_Method0(std::vector< lo_message >, getState,
98
                  Properties::VIRTUAL,
99
                  __std_vectorT1_lo_message___getState,
100
                  "",
101
                  "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node ");
102
        I_SimpleProperty(int, Grab, 
103
                         __int__getGrab, 
104
                         0);
105
        I_SimpleProperty(int, Highlight, 
106
                         __int__getHighlight, 
107
                         0);
108
        I_SimpleProperty(int, Manipulate, 
109
                         __int__getManipulate, 
110
                         0);
111
        I_SimpleProperty(ReferencedNode *, NodeFromIntersections, 
112
                         __ReferencedNode_P1__getNodeFromIntersections, 
113
                         0);
114
        I_SimpleProperty(std::vector< lo_message >, State, 
115
                         __std_vectorT1_lo_message___getState, 
116
                         0);
117
        I_SimpleProperty(char *, Type, 
118
                         0, 
119
                         __void__setType__char_P1);
120
END_REFLECTOR
121

    
122
BEGIN_VALUE_REFLECTOR(PointerNodeActionAdapter)
123
        I_DeclaringFile("PointerNode.h");
124
        I_Constructor0(____PointerNodeActionAdapter,
125
                       "",
126
                       "");
127
END_REFLECTOR
128