Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
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
7
class
ContourSurface
8
{
9
public
:
10
11
ContourSurface
();
12
13
~ContourSurface
();
14
15
ContourSurface
(
const
ContourSurface
&
x
);
16
17
ContourSurface
&
operator=
(
const
ContourSurface
& x);
18
19
20
// init an inactive surface.
21
void
init
();
22
23
enum
SurfaceTypeEnum
24
{
25
unknownSurfaceType
,
26
coordinateSurface
,
27
contourPlane
,
28
isoSurface
29
}
surfaceType
;
30
31
enum
SurfaceStatusEnum
32
{
33
inactive
,
34
notBuilt
,
35
built
36
}
surfaceStatus
;
37
38
// surfaces can be coloured in different ways
39
enum
SurfaceColourTypeEnum
40
{
41
colourSurfaceDefault
,
42
colourSurfaceByIndex
43
}
surfaceColourType
;
44
45
46
// destroy data and reset to inactive:
47
void
destroy
(){
csData
.redim(0);
init
(); }
48
49
int
getGlobalID
()
const
{
return
globalID
;}
//
50
51
RealArray
csData
;
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
68
static
Integer
globalIDCounter
;
69
70
};
71
#endif
Generated on Fri Jan 4 2013 10:17:50 for Overture by
1.8.3