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

CoorPluginData.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr
00003  *cr            (C) Copyright 1995-2016 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: CoorPluginData.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.19 $       $Date: 2019/05/22 21:23:50 $
00015  *
00016  ***************************************************************************
00017  * DESCRIPTION:
00018  *  CoorPluginData: Uses a MolFilePlugin to load a coordinate file. 
00019  ***************************************************************************/
00020 #ifndef COOR_PLUGIN_DATA_H
00021 #define COOR_PLUGIN_DATA_H
00022 
00023 #include "utilities.h"
00024 #include "WKFUtils.h"
00025 #include "CoorData.h"
00026 
00027 class Molecule;
00028 class MolFilePlugin;
00029 
00031 class CoorPluginData : public CoorData {
00032 protected:
00033   MolFilePlugin *plugin;
00034   int is_input;
00035   int ts_page_align_sz;
00036   int begFrame, frameSkip, endFrame, recentFrame;
00037   wkf_timerhandle tm;
00038   long kbytesperframe, totalframes;
00039   int *selection; 
00040 
00041 public:
00042   CoorPluginData(const char *nm, Molecule *m, MolFilePlugin *,
00043     int is_input, int firstframe=-1, int framestride=-1, int lastframe=-1,
00044     const int *sel = NULL);
00045   ~CoorPluginData();
00046 
00047   // read/write next coordinate set.  Return state 
00048   virtual CoorDataState next(Molecule *m);
00049 
00050 #if 0
00051   // Checks if constructor completed successfully
00052   int is_valid() { return plugin ? 1 : 0; }
00053 #endif
00054 };
00055 
00056 #endif
00057 

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