--- trunk/FAS/src/frame.cpp 2002/08/13 16:02:26 66 +++ trunk/FAS/src/frame.cpp 2002/08/19 20:49:08 88 @@ -1,11 +1,112 @@ +/********************************************************************** +* Copyright (C) 2002-2003 by Gezelter's Group +*This program is free software; you can redistribute it and/or modify +*it under the terms of the GNU General Public License as published by +*the Free Software Foundation version 2 of the License. +* +*This program is distributed in the hope that it will be useful, +*but WITHOUT ANY WARRANTY; without even the implied warranty of +*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +*GNU General Public License for more details. +* +************************************************************************ +*Author: Teng Lin Email: tlin@nd.edu +*Date: 08/13/2002 Version: 1.0 +* +************************************************************************ +*Description: +* +***********************************************************************/ #include "frame.h" +/*********************************************************************** +* Class TFrame +***********************************************************************/ TFrame::TFrame() { } +TFrame::TFrame(const TFrame &src) +{ + +} + TFrame::~TFrame() { } +/* +void TFrame::AddExtraData(TExtraData *extraData) +{ + if (extraData != NULL) + { + _extraDataList.push_back(extraData); + } + +} + +void TFrame::RemoveExtraData(TExtraData *extraData) +{ + vector::iterator i; + + i = find(_extraDataList.begin(), _extraDataList.end(), extraData); + + if (i != _extraDataList.end()) + { + _extraDataList.erase(i); + } + else + {//warning + + } + +} + +TExtraData *TFrame::GetExtraData(int extraDataType) +{ + +} + +TExtraData *TFrame::GetExtraData(string attr) +{ + +} +*/ +float TFrame::GetCoor(int frameIndex) +{ + if (frameIndex >= 0 | frameIndex < _coor.size()) + { + return _coor[frameIndex]; + } + else + { + + } + +} + +float TFrame::GetVelo(int frameIndex) +{ + if (frameIndex >= 0 | frameIndex < _velo.size()) + { + return _velo[frameIndex] + } + else + { + + } + + +} + +void TFrame::Reserve(int numAtom) +{ + +} + +void TFrame::Init() +{ + +} +