Overture  Version 25
ContourSurface.h
Go to the documentation of this file.
1 #ifndef CONTOUR_SURFACE_H
2 #define CONTOUR_SURFACE_H
3 
4 #include "GL_GraphicsInterface.h"
5 
6 // This class holds a contour surface for the 3D contour plotter
8 {
9  public:
10 
12 
14 
16 
18 
19 
20 // init an inactive surface.
21 void init();
22 
24 {
29 } surfaceType;
30 
32 {
37 
38 // surfaces can be coloured in different ways
40 {
44 
45 
46 // destroy data and reset to inactive:
47 void destroy(){ csData.redim(0); init(); }
48 
49 int getGlobalID() const { return globalID;} //
50 
52 
53 int side,axis,index,grid; // for coordinate surfaces
54 
55 real normal[3], point[3]; // for contour planes
56 real tangent1[3], tangent2[3]; // for contour planes
57 real width1, width2; // for contour planes
58 
59 real value; // for iso-surface
60 
61 real minValue, maxValue; // min and max value of the solution on the contour/coordinate plane
62 
63 int colourIndex; // index to getXColour()
64 
65 protected:
66 
67 int globalID; // we use the globalID for identifying surfaces by picking
69 
70 };
71 #endif