00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CMDANIMATE_H
00023 #define CMDANIMATE_H
00024
00025 #include "Command.h"
00026 #include "Animation.h"
00027
00028 class VMDApp;
00029
00030
00031
00032
00033
00034
00036 class CmdAnimDir : public Command {
00037 public:
00038 Animation::AnimDir newDir;
00039 protected:
00040 virtual void create_text(void);
00041 public:
00042 CmdAnimDir(Animation::AnimDir);
00043 };
00044
00045
00047 class CmdAnimStyle : public Command {
00048 public:
00049 Animation::AnimStyle newStyle;
00050 protected:
00051 virtual void create_text(void);
00052 public:
00053 CmdAnimStyle(Animation::AnimStyle);
00054 };
00055
00056
00058 class CmdAnimJump : public Command {
00059 public:
00060 int newFrame;
00061 protected:
00062 virtual void create_text(void);
00063 public:
00064 CmdAnimJump(int);
00065 };
00066
00067
00069 class CmdAnimSkip : public Command {
00070 public:
00071 int newSkip;
00072 protected:
00073 virtual void create_text(void);
00074 public:
00075 CmdAnimSkip(int);
00076 };
00077
00078
00080 class CmdAnimSpeed : public Command {
00081 public:
00082 float newSpeed;
00083 protected:
00084 virtual void create_text(void);
00085 public:
00086 CmdAnimSpeed(float);
00087 };
00088
00089
00091 class CmdAnimWriteFile : public Command {
00092 public:
00093 int whichMol;
00094 char *fileType;
00095 int begFrame, endFrame, frameSkip;
00096 char *fileName;
00097
00098 protected:
00099 virtual void create_text();
00100
00101 public:
00102 CmdAnimWriteFile(int molid, const char *fname, const char *ftype,
00103 int bf,int ef,int fs);
00104 virtual ~CmdAnimWriteFile();
00105 };
00106
00107
00109 class CmdAnimDelete : public Command {
00110 public:
00111 int whichMol;
00112 int begFrame, endFrame, frameSkip;
00113 protected:
00114 virtual void create_text(void);
00115 public:
00116 CmdAnimDelete(int molid, int bf, int ef, int fs);
00117 };
00118
00119
00121 class CmdAnimDup : public Command {
00122 public:
00123 int whichMol;
00124 int whichFrame;
00125 protected:
00126 virtual void create_text(void);
00127 public:
00128 CmdAnimDup(int frame, int molid);
00129 };
00130
00131
00133
00135 class CmdAnimNewFrame : public Command {
00136 public:
00137 CmdAnimNewFrame() : Command(ANIM_NEW_FRAME) {}
00138 };
00139
00140
00142 class CmdAnimNewNumFrames : public Command {
00143 public:
00144 CmdAnimNewNumFrames() : Command(ANIM_NEW_NUM_FRAMES) {}
00145 };
00146
00147 #endif
00148