Changeset 5671 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Nov 21, 2005, 3:50:41 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/coord/p_node.cc
r5654 r5671 141 141 static_cast<BaseObject*>(this)->loadParams(root); 142 142 143 LoadParam NEW(root, "rel-coor", this, PNode, setRelCoor)143 LoadParam(root, "rel-coor", this, PNode, setRelCoor) 144 144 .describe("Sets The relative position of the Node to its parent."); 145 145 146 LoadParam NEW(root, "abs-coor", this, PNode, setAbsCoor)146 LoadParam(root, "abs-coor", this, PNode, setAbsCoor) 147 147 .describe("Sets The absolute Position of the Node."); 148 148 149 LoadParam NEW(root, "rel-dir", this, PNode, setRelDir)149 LoadParam(root, "rel-dir", this, PNode, setRelDir) 150 150 .describe("Sets The relative rotation of the Node to its parent."); 151 151 152 LoadParam NEW(root, "abs-dir", this, PNode, setAbsDir)152 LoadParam(root, "abs-dir", this, PNode, setAbsDir) 153 153 .describe("Sets The absolute rotation of the Node."); 154 154 155 LoadParam NEW(root, "parent", this, PNode, setParent)155 LoadParam(root, "parent", this, PNode, setParent) 156 156 .describe("the Name of the Parent of this PNode"); 157 157 158 LoadParam NEW(root, "parent-mode", this, PNode, setParentMode)158 LoadParam(root, "parent-mode", this, PNode, setParentMode) 159 159 .describe("the mode to connect this node to its parent ()"); 160 160 -
trunk/src/lib/graphics/light.cc
r5653 r5671 88 88 static_cast<PNode*>(this)->loadParams(root); 89 89 90 LoadParam NEW(root, "diffuse-color", this, Light, setDiffuseColor)90 LoadParam(root, "diffuse-color", this, Light, setDiffuseColor) 91 91 .describe("sets the diffuse color of the Light (red [0-1], green [0-1], blue [0-1])"); 92 92 93 LoadParam NEW(root, "specular-color", this, Light, setSpecularColor)93 LoadParam(root, "specular-color", this, Light, setSpecularColor) 94 94 .describe("sets the specular color of the Light (red [0-1], green [0-1], blue [0-1])"); 95 95 96 LoadParam NEW(root, "attenuation", this, Light, setAttenuation)96 LoadParam(root, "attenuation", this, Light, setAttenuation) 97 97 .describe("sets the Attenuation of the LightSource (constant Factor, linear Factor, quadratic Factor)."); 98 98 99 LoadParam NEW(root, "spot-direction", this, Light, setSpotDirection)99 LoadParam(root, "spot-direction", this, Light, setSpotDirection) 100 100 .describe("sets the Direction of the Spot"); 101 101 102 LoadParam NEW(root, "spot-cutoff", this, Light, setSpotCutoff)102 LoadParam(root, "spot-cutoff", this, Light, setSpotCutoff) 103 103 .describe("the cuttoff of the Spotlight"); 104 104 } … … 261 261 .describe("an XML-Element to load lights from."); 262 262 263 LoadParam NEW(root, "ambient-color", this, LightManager, setAmbientColor)263 LoadParam(root, "ambient-color", this, LightManager, setAmbientColor) 264 264 .describe("sets the ambient Color of the Environmental Light"); 265 265 } -
trunk/src/lib/graphics/render2D/element_2d.cc
r5654 r5671 130 130 { 131 131 // ELEMENT2D-native settings. 132 LoadParam NEW(root, "alignment", this, Element2D, setAlignment)132 LoadParam(root, "alignment", this, Element2D, setAlignment) 133 133 .describe("loads the alignment: (either: center, left, right or screen-center)"); 134 134 135 LoadParam NEW(root, "layer", this, Element2D, setLayer)135 LoadParam(root, "layer", this, Element2D, setLayer) 136 136 .describe("loads the layer onto which to project: (either: top, medium, bottom, below-all)"); 137 137 138 LoadParam NEW(root, "bind-node", this, Element2D, setBindNode)138 LoadParam(root, "bind-node", this, Element2D, setBindNode) 139 139 .describe("sets a node, this 2D-Element should be shown upon (name of the node)"); 140 140 141 LoadParam NEW(root, "visibility", this, Element2D, setVisibility)141 LoadParam(root, "visibility", this, Element2D, setVisibility) 142 142 .describe("if the Element is visible or not"); 143 143 144 144 145 145 // PNode-style: 146 LoadParam NEW(root, "rel-coor", this, Element2D, setRelCoor2D)146 LoadParam(root, "rel-coor", this, Element2D, setRelCoor2D) 147 147 .describe("Sets The relative position of the Node to its parent."); 148 148 149 LoadParam NEW(root, "abs-coor", this, Element2D, setAbsCoor2D)149 LoadParam(root, "abs-coor", this, Element2D, setAbsCoor2D) 150 150 .describe("Sets The absolute Position of the Node."); 151 151 152 LoadParam NEW(root, "rel-dir", this, Element2D, setRelDir2D)152 LoadParam(root, "rel-dir", this, Element2D, setRelDir2D) 153 153 .describe("Sets The relative rotation of the Node to its parent."); 154 154 155 LoadParam NEW(root, "abs-dir", this, Element2D, setAbsDir2D)155 LoadParam(root, "abs-dir", this, Element2D, setAbsDir2D) 156 156 .describe("Sets The absolute rotation of the Node."); 157 157 158 LoadParam NEW(root, "parent", this, Element2D, setParent2D)158 LoadParam(root, "parent", this, Element2D, setParent2D) 159 159 .describe("the Name of the Parent of this Element2D"); 160 160 161 LoadParam NEW(root, "parent-mode", this, Element2D, setParentMode2D)161 LoadParam(root, "parent-mode", this, Element2D, setParentMode2D) 162 162 .describe("the mode to connect this node to its parent ()"); 163 163 -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r5655 r5671 57 57 void GLMenuImageScreen::loadParams(const TiXmlElement* root) 58 58 { 59 LoadParam NEW(root, "BackgroundImage", this, GLMenuImageScreen, setBackgroundImage)59 LoadParam(root, "BackgroundImage", this, GLMenuImageScreen, setBackgroundImage) 60 60 .describe("sets the image to load onto the loadscreen"); 61 61 62 LoadParam NEW(root, "BackgroundPS", this, GLMenuImageScreen, setPosScale)62 LoadParam(root, "BackgroundPS", this, GLMenuImageScreen, setPosScale) 63 63 .describe("The Position and Scale of the Background Image in %(0-1.0). PosX, PosY, SizeX, SizeY"); 64 64 65 LoadParam NEW(root, "BarImage", this, GLMenuImageScreen, setBarImage)65 LoadParam(root, "BarImage", this, GLMenuImageScreen, setBarImage) 66 66 .describe("sets the image of the LoadingBar"); 67 67 68 LoadParam NEW(root, "BarPS", this, GLMenuImageScreen, setBarPosScale)68 LoadParam(root, "BarPS", this, GLMenuImageScreen, setBarPosScale) 69 69 .describe("The Position and Scale of the Loading Bar in %(0-1.0). PosX, PosY, SizeX, SizeY"); 70 70 71 LoadParam NEW(root, "ElementCount", this, GLMenuImageScreen, setMaximum)71 LoadParam(root, "ElementCount", this, GLMenuImageScreen, setMaximum) 72 72 .describe("The Count of elements to load into the bar (this is only a maximum value)"); 73 73 } -
trunk/src/lib/lang/base_object.cc
r5652 r5671 62 62 { 63 63 // name setup 64 LoadParam NEW(root, "name", this, BaseObject, setName)64 LoadParam(root, "name", this, BaseObject, setName) 65 65 .describe("the Name of the Object."); 66 66 } -
trunk/src/lib/particles/particle_emitter.cc
r5653 r5671 95 95 static_cast<PNode*>(this)->loadParams(root); 96 96 97 LoadParam NEW(root, "type", this, ParticleEmitter, setType)97 LoadParam(root, "type", this, ParticleEmitter, setType) 98 98 .describe("What type of emitter is this [dot, plane, cube, sphere]."); 99 99 100 LoadParam NEW(root, "size", this, ParticleEmitter, setSize)100 LoadParam(root, "size", this, ParticleEmitter, setSize) 101 101 .describe("How big the emitter is (no effect on dot-emitters)"); 102 102 103 LoadParam NEW(root, "rate", this, ParticleEmitter, setEmissionRate)103 LoadParam(root, "rate", this, ParticleEmitter, setEmissionRate) 104 104 .describe("How many particles should be emittet from this emitter"); 105 105 106 LoadParam NEW(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed)106 LoadParam(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed) 107 107 .describe("the extent, the speed of the emitter has on the particles"); 108 108 109 LoadParam NEW(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity)109 LoadParam(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity) 110 110 .describe("How fast the particles are emittet (their initial speed)"); 111 111 112 LoadParam NEW(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum)112 LoadParam(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum) 113 113 .describe("How fast the particles rotation is at emissiontime (their initial momentum)"); 114 114 115 LoadParam NEW(root, "spread", this, ParticleEmitter, setSpread)115 LoadParam(root, "spread", this, ParticleEmitter, setSpread) 116 116 .describe("The angle the particles are emitted from (angle, deviation)"); 117 117 118 118 119 LoadParam NEW(root, "emission-direction", this, ParticleEmitter, setDirection);119 LoadParam(root, "emission-direction", this, ParticleEmitter, setDirection); 120 120 } 121 121 -
trunk/src/lib/particles/particle_system.cc
r5654 r5671 119 119 static_cast<PhysicsInterface*>(this)->loadParams(root); 120 120 121 LoadParam NEW(root, "max-count", this, ParticleSystem, setMaxCount)121 LoadParam(root, "max-count", this, ParticleSystem, setMaxCount) 122 122 .describe("the maximal count of Particles, that can be emitted into this system"); 123 123 124 LoadParam NEW(root, "life-span", this, ParticleSystem, setLifeSpan)124 LoadParam(root, "life-span", this, ParticleSystem, setLifeSpan) 125 125 .describe("sets the life-span of the Particles."); 126 126 127 LoadParam NEW(root, "conserve", this, ParticleSystem, setConserve)127 LoadParam(root, "conserve", this, ParticleSystem, setConserve) 128 128 .describe("sets the Conserve factor of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)"); 129 129 130 LoadParam NEW(root, "type", this, ParticleSystem, setType)130 LoadParam(root, "type", this, ParticleSystem, setType) 131 131 .describe("sets the type of the Particles, (dot, spark, sprite or model)"); 132 132 -
trunk/src/lib/physics/fields/field.cc
r5652 r5671 60 60 static_cast<PNode*>(this)->loadParams(root); 61 61 62 LoadParam NEW(root, "magnitude", this, Field, setMagnitude)62 LoadParam(root, "magnitude", this, Field, setMagnitude) 63 63 .describe("sets the magnitude of this Field") 64 64 ->defaultValues(1, 1); 65 65 66 LoadParam NEW(root, "attenuation", this, Field, setAttenuation)66 LoadParam(root, "attenuation", this, Field, setAttenuation) 67 67 .describe("sets the attenuation of this Field."); 68 68 -
trunk/src/lib/physics/physics_connection.cc
r5652 r5671 52 52 static_cast<BaseObject*>(this)->loadParams(root); 53 53 54 LoadParam NEW(root, "subject", this, PhysicsConnection, setSubject)54 LoadParam(root, "subject", this, PhysicsConnection, setSubject) 55 55 .describe("set the subject by a name"); 56 56 57 LoadParam NEW(root, "field", this, PhysicsConnection, setField)57 LoadParam(root, "field", this, PhysicsConnection, setField) 58 58 .describe("set the field by name"); 59 59
Note: See TracChangeset
for help on using the changeset viewer.