Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CmdAnimate.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the           
00004  *cr                        University of Illinois                       
00005  *cr                         All Rights Reserved                        
00006  *cr                                                                   
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  * RCS INFORMATION:
00011  *
00012  *      $RCSfile: CmdAnimate.h,v $
00013  *      $Author: johns $        $Locker:  $                $State: Exp $
00014  *      $Revision: 1.39 $      $Date: 2019/01/17 21:20:58 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  * 
00019  * Command objects for doing animation.
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 // The following uses  the Cmdtypes:
00031 //      ANIM_DIRECTION, ANIM_JUMP, ANIM_SKIP, ANIM_STYLE, ANIM_SPEED,
00032 //      ANIM_READ, ANIM_WRITE, ANIM_DELETE
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 

Generated on Fri Nov 8 02:44:00 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002