ConfigFile.h 977 Bytes
Newer Older
1
2
3
#ifndef __CONFIGFILE_H
#define __CONFIGFILE_H
#include <vector>
4
#include "polyhedron.h"
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

extern const char * PATH;
extern const char * SCREENSHOT;
extern int ISOS;
extern int TIMESTEPS;
extern float **isocolours; // [ISOS][4];
extern const char **plyfiles;
extern float **translations;
extern float userpos[3];

extern float BACKGROUND[3];
extern int* numAtoms; //[timesteps]
extern float **atoms; //[timesteps][numAtoms[i]*4] //xyzu, u=atom number
extern float atomScaling;
extern std::vector<float> *clonedAtoms;
20
21
extern std::vector<int> bonds;
extern int *numBonds;
22
23
24
25
26
27
28
29
30
31
32
33
extern int numClonedAtoms;
extern int *basisvectorreps;

extern bool showTrajectories;
extern std::vector<int> atomtrajectories;
extern std::vector<std::vector<int>> atomtrajectoryrestarts;

extern float abc[3][3]; //basis vectors
extern bool has_abc;

extern int repetitions[3];

34
35
extern Solid *solid;

36
37
38
39
40
extern const char * loadConfigFileErrors[];

int loadConfigFile(const char * f);

#endif //__CONFIGFILE_H