AnimatLab  2
Test
KeyFrame.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Recording
12  {
13 
14  class ANIMAT_PORT KeyFrame : public ActivatedItem
15  {
16  protected:
18  std::string m_strProjectPath;
19 
21  std::string m_strConfigFilename;
22 
25 
26  public:
27  KeyFrame();
28  virtual ~KeyFrame();
29 
30  static KeyFrame *CastToDerived(AnimatBase *lpBase) {return static_cast<KeyFrame*>(lpBase);}
31 
32  int CollectInterval();
33  void CollectInterval(int iVal);
34 
35  virtual void GenerateID();
36 
37  virtual void Load(CStdXml &oXml);
38 
39  virtual bool operator<(ActivatedItem *lpItem);
40 
47  virtual void EnableVideoPlayback() = 0;
48 
55  virtual void DisableVideoPlayback() = 0;
56 
63  virtual void StartVideoPlayback() = 0;
64 
71  virtual void StopVideoPlayback() = 0;
72 
79  virtual void PlaybackVideoFrame() = 0;
80 
89  virtual void StepVideoPlayback(int iFrameCount) = 0;
90 
97  virtual void RecordVideoFrame() = 0;
98 
107  virtual void SaveVideo(std::string strPath) = 0;
108 
115  virtual void MakeCurrentFrame() = 0;
116  };
117 
118  } //Recording
119 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
short m_iCollectInterval
Zero-based index of the collect interval.
Definition: KeyFrame.h:24
Base class for all activated items.
Definition: ActivatedItem.h:27
std::string m_strConfigFilename
Filename of the string configuration file.
Definition: KeyFrame.h:21
Animat base class.
Definition: AnimatBase.h:36
std::string m_strProjectPath
Full pathname of the string project file.
Definition: KeyFrame.h:18