Go to the documentation of this file.
29 #ifndef __RibbonTrail_H__
30 #define __RibbonTrail_H__
83 RibbonTrail(
const String& name,
size_t maxElements = 20,
size_t numberOfChains = 1,
84 bool useTextureCoords =
true,
bool useVertexColours =
true);
94 virtual void addNode(
Node* n);
96 virtual void removeNode(
Node* n);
100 virtual size_t getChainIndexForNode(
const Node* n);
108 virtual void setTrailLength(
Real len);
113 void setMaxChainElements(
size_t maxElements);
115 void setNumberOfChains(
size_t numChains);
117 void clearChain(
size_t chainIndex);
125 virtual void setInitialColour(
size_t chainIndex,
const ColourValue& col);
132 virtual void setInitialColour(
size_t chainIndex,
Real r,
Real g,
Real b,
Real a = 1.0);
134 virtual const ColourValue& getInitialColour(
size_t chainIndex)
const;
140 virtual void setColourChange(
size_t chainIndex,
const ColourValue& valuePerSecond);
146 virtual void setInitialWidth(
size_t chainIndex,
Real width);
148 virtual Real getInitialWidth(
size_t chainIndex)
const;
154 virtual void setWidthChange(
size_t chainIndex,
Real widthDeltaPerSecond);
156 virtual Real getWidthChange(
size_t chainIndex)
const;
162 virtual void setColourChange(
size_t chainIndex,
Real r,
Real g,
Real b,
Real a);
165 virtual const ColourValue& getColourChange(
size_t chainIndex)
const;
168 void nodeUpdated(
const Node* node);
170 void nodeDestroyed(
const Node* node);
173 virtual void _timeUpdate(
Real time);
176 const String& getMovableType(
void)
const;
215 virtual void manageController(
void);
217 virtual void updateTrail(
size_t index,
const Node* node);
219 virtual void resetTrail(
size_t index,
const Node* node);
221 virtual void resetAllTrails(
void);
237 const String& getType(
void)
const;
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Wed Oct 16 2013 14:35:44