root / src / osgWrappers / introspection / ShapeNode.cpp @ c38d81dd
History | View | Annotate | Download (5.9 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 <ShapeNode.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_ENUM_REFLECTOR(spin::ShapeNode::shapeType) |
| 25 |
I_DeclaringFile("ShapeNode.h");
|
| 26 |
I_EnumLabel(spin::ShapeNode::NONE); |
| 27 |
I_EnumLabel(spin::ShapeNode::SPHERE); |
| 28 |
I_EnumLabel(spin::ShapeNode::BOX); |
| 29 |
I_EnumLabel(spin::ShapeNode::CYLINDER); |
| 30 |
I_EnumLabel(spin::ShapeNode::CAPSULE); |
| 31 |
I_EnumLabel(spin::ShapeNode::CONE); |
| 32 |
I_EnumLabel(spin::ShapeNode::PLANE); |
| 33 |
END_REFLECTOR |
| 34 |
|
| 35 |
BEGIN_ENUM_REFLECTOR(spin::ShapeNode::billboardType) |
| 36 |
I_DeclaringFile("ShapeNode.h");
|
| 37 |
I_EnumLabel(spin::ShapeNode::RELATIVE); |
| 38 |
I_EnumLabel(spin::ShapeNode::POINT_EYE); |
| 39 |
I_EnumLabel(spin::ShapeNode::STAY_UP); |
| 40 |
END_REFLECTOR |
| 41 |
|
| 42 |
BEGIN_OBJECT_REFLECTOR(spin::ShapeNode) |
| 43 |
I_DeclaringFile("ShapeNode.h");
|
| 44 |
I_BaseType(spin::GroupNode); |
| 45 |
I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, char *, initID,
|
| 46 |
____ShapeNode__SceneManager_P1__char_P1, |
| 47 |
"",
|
| 48 |
"");
|
| 49 |
I_Method1(void, setContext, IN, const char *, newvalue, |
| 50 |
Properties::VIRTUAL, |
| 51 |
__void__setContext__C5_char_P1, |
| 52 |
"",
|
| 53 |
"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. ");
|
| 54 |
I_Method1(void, setShape, IN, spin::ShapeNode::shapeType, t,
|
| 55 |
Properties::NON_VIRTUAL, |
| 56 |
__void__setShape__shapeType, |
| 57 |
"",
|
| 58 |
"Sets the shape this ShapeNode should have, identified by its number. ");
|
| 59 |
I_Method1(void, setBillboard, IN, spin::ShapeNode::billboardType, t,
|
| 60 |
Properties::NON_VIRTUAL, |
| 61 |
__void__setBillboard__billboardType, |
| 62 |
"",
|
| 63 |
"");
|
| 64 |
I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, |
| 65 |
Properties::NON_VIRTUAL, |
| 66 |
__void__setColor__float__float__float__float, |
| 67 |
"",
|
| 68 |
" param red Red channel. Number in the range [0, 1] green Green channel. Number in the range [0, 1] blue Blue channel. Number in the range [0, 1] alpha Opacity channel. Number in the range [0, 1] ");
|
| 69 |
I_Method1(void, setRenderBin, IN, int, i, |
| 70 |
Properties::NON_VIRTUAL, |
| 71 |
__void__setRenderBin__int, |
| 72 |
"",
|
| 73 |
"");
|
| 74 |
I_Method1(void, setLighting, IN, int, i, |
| 75 |
Properties::NON_VIRTUAL, |
| 76 |
__void__setLighting__int, |
| 77 |
"",
|
| 78 |
"");
|
| 79 |
I_Method0(void, updateStateSet,
|
| 80 |
Properties::VIRTUAL, |
| 81 |
__void__updateStateSet, |
| 82 |
"",
|
| 83 |
"This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform. ");
|
| 84 |
I_Method0(int, getShape,
|
| 85 |
Properties::NON_VIRTUAL, |
| 86 |
__int__getShape, |
| 87 |
"",
|
| 88 |
"");
|
| 89 |
I_Method0(int, getBillboard,
|
| 90 |
Properties::NON_VIRTUAL, |
| 91 |
__int__getBillboard, |
| 92 |
"",
|
| 93 |
"");
|
| 94 |
I_Method0(osg::Vec4, getColor, |
| 95 |
Properties::NON_VIRTUAL, |
| 96 |
__osg_Vec4__getColor, |
| 97 |
"",
|
| 98 |
"");
|
| 99 |
I_Method0(int, getRenderBin,
|
| 100 |
Properties::NON_VIRTUAL, |
| 101 |
__int__getRenderBin, |
| 102 |
"",
|
| 103 |
"");
|
| 104 |
I_Method0(int, getLighting,
|
| 105 |
Properties::NON_VIRTUAL, |
| 106 |
__int__getLighting, |
| 107 |
"",
|
| 108 |
"");
|
| 109 |
I_Method0(std::vector< lo_message >, getState, |
| 110 |
Properties::VIRTUAL, |
| 111 |
__std_vectorT1_lo_message___getState, |
| 112 |
"",
|
| 113 |
"For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node ");
|
| 114 |
I_ProtectedMethod0(void, drawShape,
|
| 115 |
Properties::VIRTUAL, |
| 116 |
Properties::NON_CONST, |
| 117 |
__void__drawShape, |
| 118 |
"",
|
| 119 |
"");
|
| 120 |
I_SimpleProperty(int, Billboard,
|
| 121 |
__int__getBillboard, |
| 122 |
0);
|
| 123 |
I_SimpleProperty(osg::Vec4, Color, |
| 124 |
__osg_Vec4__getColor, |
| 125 |
0);
|
| 126 |
I_SimpleProperty(const char *, Context, |
| 127 |
0,
|
| 128 |
__void__setContext__C5_char_P1); |
| 129 |
I_SimpleProperty(int, Lighting,
|
| 130 |
__int__getLighting, |
| 131 |
__void__setLighting__int); |
| 132 |
I_SimpleProperty(int, RenderBin,
|
| 133 |
__int__getRenderBin, |
| 134 |
__void__setRenderBin__int); |
| 135 |
I_SimpleProperty(int, Shape,
|
| 136 |
__int__getShape, |
| 137 |
0);
|
| 138 |
I_SimpleProperty(std::vector< lo_message >, State, |
| 139 |
__std_vectorT1_lo_message___getState, |
| 140 |
0);
|
| 141 |
I_PublicMemberProperty(spin::ShapeNode::shapeType, shape); |
| 142 |
I_PublicMemberProperty(spin::ShapeNode::billboardType, billboard); |
| 143 |
I_PublicMemberProperty(osg::Vec4, _color); |
| 144 |
I_PublicMemberProperty(std::string, texturePath);
|
| 145 |
I_PublicMemberProperty(int, renderBin);
|
| 146 |
I_PublicMemberProperty(bool, lightingEnabled);
|
| 147 |
I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, shapeGeode); |
| 148 |
I_PublicMemberProperty(osgUtil::Optimizer, optimizer); |
| 149 |
END_REFLECTOR |
| 150 |
|
