5 #ifndef CNOID_BASE_TIME_BAR_H 6 #define CNOID_BASE_TIME_BAR_H 8 #include <cnoid/ToolBar> 13 class ExtensionManager;
34 inline double time()
const {
return time_; }
36 bool setTime(
double time);
38 double realPlaybackTime()
const;
40 double minTime()
const;
41 double maxTime()
const;
43 void setTimeRange(
double min,
double max);
45 inline double frameRate()
const {
return frameRate_; }
46 void setFrameRate(
double rate);
48 inline double timeStep()
const {
return 1.0 / frameRate_; }
52 inline double tempo()
const {
return tempo_; }
53 double timeOfBeatLocation(
double beatLocation)
const;
54 double beatLocationOfTime(
double time)
const;
58 double playbackSpeedScale()
const;
59 void setPlaybackSpeedScale(
double scale);
61 double playbackFrameRate()
const;
62 void setPlaybackFrameRate(
double rate);
64 void setRepeatMode(
bool on);
67 void startPlaybackFromFillLevel();
68 void stopPlayback(
bool isStoppedManually =
false);
69 bool isDoingPlayback();
71 int startFillLevelUpdate();
72 void updateFillLevel(
int id,
double time);
73 void stopFillLevelUpdate(
int id);
74 void setFillLevelSync(
bool on);
76 virtual int stretchableDefaultWidth()
const;
80 virtual bool storeState(
Archive& archive);
81 virtual bool restoreState(
const Archive& archive);
96 friend class TimeBarImpl;
double tempo() const
Definition: TimeBar.h:52
Definition: ExtensionManager.h:26
double timeStep() const
Definition: TimeBar.h:48
double frameRate() const
Definition: TimeBar.h:45
int beatDenominator() const
Definition: TimeBar.h:56
Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
#define CNOID_EXPORT
Definition: Util/exportdecl.h:37
int beatNumerator() const
Definition: TimeBar.h:55
double time() const
Definition: TimeBar.h:34
bool isBeatMode() const
Definition: TimeBar.h:50
double beatOffset() const
Definition: TimeBar.h:51