Toast++  1.0.2 (r.539)
Forward and inverse modelling in optical tomography
GLProjector.h
1 #ifndef GLPROJECTOR_H
2 #define GLPROJECTOR_H
3 
4 #include "projector.h"
5 
6 class STOASTLIB GLProjector : public Projector
7 {
8  public:
9  GLProjector() {}
10  GLProjector(Camera * cam, QMMesh * mesh, int nBndElems_, int * bndellist_, int * bndsdlist_);
11  GLProjector(Camera * cam, QMMesh * mesh);
12  ~GLProjector();
13  void init(Camera * cam, QMMesh * mesh);
14  void setupMesaGL();
15  void constructMatrix();
16  void constructMatrix_SF();
17  RVector getImageBuffer();
18  void renderImage();
19  void renderImageElem();
20  protected:
21  OSMesaContext mesaGLContext;
22  GLubyte * imageBuffer;
23  int * bndellist, * bndsdlist;
24  int nBndElems;
25 };
26 
27 #endif
Definition: projector.h:16
Definition: qmmesh.h:22
Definition: camera.h:6
Definition: GLProjector.h:6