AmbientOcclusion
PDBLoader.h
Go to the documentation of this file.
1 #ifndef PDBLOADER_H
2 #define PDBLOADER_H
3 
4 #include <string>
5 #include <iostream>
6 #include <fstream>
7 #include <cstring>
8 #include <sstream>
9 #include <stdlib.h>
10 #include <stdio.h>
11 
12 #include "Molecule.h"
13 
14 using std::cout;
15 using std::endl;
16 using std::ifstream;
17 
18 // This class functions as PDB-File Loader. It reads the file and executes data preprocessing like calculating the radius
19 // Furthermore the class is able to compute the quads for each atoms' position to and load them onto the GPU.
20 // This is done to reduce the amount of computation while rendering.
21 class PDBLoader
22 {
23 public:
24  PDBLoader();
25  ~PDBLoader();
26 
27  Molecule* loadData(std::string filename);
28 
29 };
30 
31 #endif // PDBLOADER_H
Definition: PDBLoader.h:21
The Molecule class - This class represents a molecule. It consists of atoms and bonds.
Definition: Molecule.h:70
PDBLoader()
Definition: PDBLoader.cpp:3
Molecule * loadData(std::string filename)
Definition: PDBLoader.cpp:13
~PDBLoader()
Definition: PDBLoader.cpp:8