-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVisAtomTrajectory.h
48 lines (37 loc) · 1.11 KB
/
VisAtomTrajectory.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* This is a class used for in VisAtom, a visualiztion tool for
atomistic simulations.
AUTHOR: Qing HOU
INSTITUTION: Institute of Nuclear Science and Technology, Sichuan University
HISTROTY: First version: 1998
LAST MODIFICATION: 2013
*/
#ifndef _VISATOMTRAJECTORY_H
#define _VISATOMTRAJECTORY_H
#include "GlcObj.h"
class VisAtomDataSheet;
class VisAtomSample;
class VisAtomTrajectory:public GlcObj
{
private:
protected:
QList<VisAtomDataSheet*> m_SampleDataSheets;
VisAtomSample*m_curSample;
float*m_aDx0;
float*m_aDy0;
float*m_aDz0;
friend class VisAtomSample;
void DrawTrjectoryLine();
public:
VisAtomTrajectory();
~VisAtomTrajectory();
void AttachSample(VisAtomSample*pSample);
void Clear();
void AddData(VisAtomDataSheet*pData);
int NumberOfDatasheet(){return m_SampleDataSheets.size();} ;
void SetDataCol(int colx, int coly, int colz);
VisAtomDataSheet*GetDataSheet(int i);
int GetDisplacement(int iatom, float&DX, float&DY, float&DZ);
int GetPathlength(int iatom, float&pathlen);
void Paint();
};
#endif