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

CoorPluginData Class Reference

CoorPluginData: Uses a MolFilePlugin to load a coordinate file. More...

#include <CoorPluginData.h>

Inheritance diagram for CoorPluginData:

CoorData List of all members.

Public Methods

 CoorPluginData (const char *nm, Molecule *m, MolFilePlugin *, int is_input, int firstframe=-1, int framestride=-1, int lastframe=-1, const int *sel=NULL)
 ~CoorPluginData ()
virtual CoorDataState next (Molecule *m)
 read/write next coordinate set. Return state. More...


Protected Attributes

MolFilePluginplugin
int is_input
int ts_page_align_sz
int begFrame
int frameSkip
int endFrame
int recentFrame
wkf_timerhandle tm
long kbytesperframe
long totalframes
int * selection
 If non-NULL, an array of atom indices to be written. More...


Detailed Description

CoorPluginData: Uses a MolFilePlugin to load a coordinate file.

Definition at line 31 of file CoorPluginData.h.


Constructor & Destructor Documentation

CoorPluginData::CoorPluginData const char *    nm,
Molecule   m,
MolFilePlugin  ,
int    is_input,
int    firstframe = -1,
int    framestride = -1,
int    lastframe = -1,
const int *    sel = NULL
 

Definition at line 32 of file CoorPluginData.C.

References begFrame, MolFilePlugin::can_read_pagealigned_timesteps, MolFilePlugin::can_write_structure, endFrame, frameSkip, is_input, kbytesperframe, BaseMolecule::nAtoms, MolFilePlugin::natoms, NULL, DrawMolecule::numframes, plugin, MolFilePlugin::read_timestep_pagealign_size, recentFrame, selection, MolFilePlugin::set_natoms, tm, totalframes, ts_page_align_sz, wkf_timer_create, wkf_timer_start, and MolFilePlugin::write_structure.

CoorPluginData::~CoorPluginData  
 

Definition at line 141 of file CoorPluginData.C.

References NULL, plugin, selection, tm, and wkf_timer_destroy.


Member Function Documentation

CoorData::CoorDataState CoorPluginData::next Molecule   m [virtual]
 

read/write next coordinate set. Return state.

Implements CoorData.

Definition at line 153 of file CoorPluginData.C.

References DrawMolecule::append_frame, begFrame, CoorData::CoorDataState, CoorData::DONE, endFrame, frameSkip, DrawMolecule::get_frame, kbytesperframe, MolFilePlugin::next, CoorData::NOTDONE, NULL, DrawMolecule::numframes, plugin, recentFrame, selection, MolFilePlugin::skip, tm, totalframes, ts_page_align_sz, wkf_timer_timenow, and MolFilePlugin::write_timestep.


Member Data Documentation

int CoorPluginData::begFrame [protected]
 

Definition at line 36 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

int CoorPluginData::endFrame [protected]
 

Definition at line 36 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

int CoorPluginData::frameSkip [protected]
 

Definition at line 36 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

int CoorPluginData::is_input [protected]
 

Definition at line 34 of file CoorPluginData.h.

Referenced by CoorPluginData.

long CoorPluginData::kbytesperframe [protected]
 

Definition at line 38 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

MolFilePlugin* CoorPluginData::plugin [protected]
 

Definition at line 33 of file CoorPluginData.h.

Referenced by CoorPluginData, next, and ~CoorPluginData.

int CoorPluginData::recentFrame [protected]
 

Definition at line 36 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

int* CoorPluginData::selection [protected]
 

If non-NULL, an array of atom indices to be written.

Definition at line 39 of file CoorPluginData.h.

Referenced by CoorPluginData, next, and ~CoorPluginData.

wkf_timerhandle CoorPluginData::tm [protected]
 

Definition at line 37 of file CoorPluginData.h.

Referenced by CoorPluginData, next, and ~CoorPluginData.

long CoorPluginData::totalframes [protected]
 

Definition at line 38 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.

int CoorPluginData::ts_page_align_sz [protected]
 

Definition at line 35 of file CoorPluginData.h.

Referenced by CoorPluginData, and next.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:46:57 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002