Revision c14c8526 include/AnimationNode.h

b/include/AnimationNode.h
46 46

  
47 47
#include <osg/AnimationPath>
48 48

  
49
// forward declarations
50
class SceneManager;
51

  
49 52
/**
50 53
 * \brief Node for encapsulating 3D animation
51 54
 */
......
84 87
     * interpolated in between control points.
85 88
     */
86 89
	void setUpdateRate (float hz);
87
	float getUpdateRate() { return _updateRate; }
90
	float getUpdateRate() const { return _updateRate; }
88 91
	
89 92
	
90 93
	
91 94
	void setPlay (int p);
92
	int getPlay() { return (int) _play; }
95
	int getPlay() const { return (int) _play; }
93 96
		
94 97
    /**
95 98
     * Turns on/off automatic recording. This implies that whenever the node
......
98 101
     * of the recording.
99 102
     */
100 103
	void setRecord (int r);
101
	int getRecord() { return (int) _record; }
104
	int getRecord() const { return (int) _record; }
102 105
	
103 106
	/**
104 107
	 * Sets the loop mode for the animation. eg, SWING, LOOP, NO_LOOPING.
105 108
	 */
106 109
	void setLoopMode (LoopMode mode);
107
	int getLoopMode() { return (int) _animationPath->getLoopMode(); }
110
	int getLoopMode() const { return (int) _animationPath->getLoopMode(); }
108 111
	
109 112
	/**
110 113
	 * Override setTranslation so we can store updates in record mode
......
145 148
	 */
146 149
	void clear() { _animationPath->clear(); }
147 150

  
148
	
149
	
150

  
151 151
	/**
152 152
	 * For each subclass of ReferencedNode, we override the getState() method to
153 153
	 * fill the vector with the correct set of methods for this particular node
154 154
	 */
155
	virtual std::vector<lo_message> getState();
155
	virtual std::vector<lo_message> getState() const;
156 156

  
157
	
158
	
159 157
protected:
160 158
	
161 159
	bool _play, _record;

Also available in: Unified diff