ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/FAS/src/frame.cpp
Revision: 88
Committed: Mon Aug 19 20:49:08 2002 UTC (22 years ago) by tim
File size: 2045 byte(s)
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 tim 81 /**********************************************************************
2     * Copyright (C) 2002-2003 by Gezelter's Group
3     *This program is free software; you can redistribute it and/or modify
4     *it under the terms of the GNU General Public License as published by
5     *the Free Software Foundation version 2 of the License.
6     *
7     *This program is distributed in the hope that it will be useful,
8     *but WITHOUT ANY WARRANTY; without even the implied warranty of
9     *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10     *GNU General Public License for more details.
11     *
12     ************************************************************************
13     *Author: Teng Lin Email: tlin@nd.edu
14     *Date: 08/13/2002 Version: 1.0
15     *
16     ************************************************************************
17     *Description:
18     *
19     ***********************************************************************/
20 tim 66 #include "frame.h"
21    
22 tim 81 /***********************************************************************
23     * Class TFrame
24     ***********************************************************************/
25 tim 66 TFrame::TFrame()
26     {
27    
28     }
29    
30 tim 81 TFrame::TFrame(const TFrame &src)
31     {
32    
33     }
34    
35 tim 66 TFrame::~TFrame()
36     {
37    
38     }
39 tim 83 /*
40     void TFrame::AddExtraData(TExtraData *extraData)
41     {
42     if (extraData != NULL)
43     {
44     _extraDataList.push_back(extraData);
45     }
46 tim 81
47 tim 83 }
48    
49     void TFrame::RemoveExtraData(TExtraData *extraData)
50     {
51     vector<TExtraData *>::iterator i;
52    
53     i = find(_extraDataList.begin(), _extraDataList.end(), extraData);
54    
55     if (i != _extraDataList.end())
56     {
57     _extraDataList.erase(i);
58     }
59     else
60     {//warning
61    
62     }
63    
64     }
65    
66     TExtraData *TFrame::GetExtraData(int extraDataType)
67     {
68    
69     }
70    
71     TExtraData *TFrame::GetExtraData(string attr)
72     {
73    
74     }
75     */
76 tim 88 float TFrame::GetCoor(int frameIndex)
77     {
78     if (frameIndex >= 0 | frameIndex < _coor.size())
79     {
80     return _coor[frameIndex];
81     }
82     else
83     {
84    
85     }
86    
87     }
88    
89     float TFrame::GetVelo(int frameIndex)
90     {
91     if (frameIndex >= 0 | frameIndex < _velo.size())
92     {
93     return _velo[frameIndex]
94     }
95     else
96     {
97    
98     }
99    
100    
101     }
102    
103 tim 83 void TFrame::Reserve(int numAtom)
104     {
105    
106     }
107    
108     void TFrame::Init()
109     {
110    
111     }
112