22 #ifndef ANIMATIONPARAMS_H
23 #define ANIMATIONPARAMS_H
27 #include <vapor/common.h>
53 return GetValueLong(_currentTimestepTag);
59 int rc = SetValueLong(_currentTimestepTag,
"Set timestep",ts);
66 return GetValueLong(_startTimestepTag);
72 int rc= SetValueLong(_startTimestepTag,
"Set start timestep",ts);
79 return GetValueLong(_endTimestepTag);
86 return SetValueLong(_endTimestepTag,
"Set end timestep",val);
92 return GetValueLong(_minTimestepTag);
99 return SetValueLong(_minTimestepTag,
"Set min timestep",val);
104 return GetValueLong(_maxTimestepTag);
111 return SetValueLong(_maxTimestepTag,
"Set max timestep",val);
117 return GetValueLong(_playDirectionTag);
124 return SetValueLong(_playDirectionTag,
"Set play direction",val);
129 return GetValueLong(_stepSizeTag);
135 return SetValueLong(_stepSizeTag,
"Set frame stepsize",val);
140 return GetValueDouble(_maxRateTag);
146 return SetValueDouble(_maxRateTag,
"Set max frame rate",rate);
151 return (GetValueLong(_repeatTag) != 0);
157 return SetValueLong(_repeatTag,
"enable repeat play",(
long)onOff);
168 return SetValueLong(_captureEnabledTag,
"Toggle capture enabled", (
long)val);
173 return (GetValueLong(_captureEnabledTag) != 0);
180 return SetValueString(_capturePathTag,
"Set capture file path", path);
185 return GetValueString(_capturePathTag);
201 #ifndef DOXYGEN_SKIP_THIS
202 virtual void Validate(
int type);
206 virtual void restart();
209 const std::string getShortName() {
return _shortName;}
212 static ParamsBase* CreateDefaultInstance() {
return new AnimationParams(0,-1);}
220 bool checkLastFrame();
221 int getNextFrame(
int dir);
226 static const string _shortName;
227 static const string _repeatTag;
228 static const string _maxRateTag;
229 static const string _stepSizeTag;
230 static const string _startTimestepTag;
231 static const string _endTimestepTag;
232 static const string _minTimestepTag;
233 static const string _maxTimestepTag;
234 static const string _playDirectionTag;
235 static const string _currentTimestepTag;
236 static const string _capturePathTag;
237 static const string _captureEnabledTag;
246 #endif //ANIMATIONPARAMS_H
int setFrameStepSize(int val)
int setRepeating(bool onOff)
A pure virtual class for managing parameters used in visualization.
int SetCaptureEnabled(bool val)
int setCurrentTimestep(long ts)
string GetCaptureFilepath()
int setStartTimestep(int ts)
long getCurrentTimestep()
int SetCaptureFilepath(string path)
int setMaxFrameRate(double rate)
int setMaxTimestep(int val)
int setMinTimestep(int val)
A class that specifies parameters used in animation.
int setPlayDirection(int val)
int setEndTimestep(int val)