Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/Application/vtkpost/surface.h
3203 views
1
/*****************************************************************************
2
* *
3
* Elmer, A Finite Element Software for Multiphysical Problems *
4
* *
5
* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *
6
* *
7
* This program is free software; you can redistribute it and/or *
8
* modify it under the terms of the GNU General Public License *
9
* as published by the Free Software Foundation; either version 2 *
10
* of the License, or (at your option) any later version. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program (in file fem/GPL-2); if not, write to the *
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
20
* Boston, MA 02110-1301, USA. *
21
* *
22
*****************************************************************************/
23
24
/*****************************************************************************
25
* *
26
* ElmerGUI surface *
27
* *
28
*****************************************************************************
29
* *
30
* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *
31
* Email: [email protected] *
32
* Web: http://www.csc.fi/elmer *
33
* Address: CSC - IT Center for Science Ltd. *
34
* Keilaranta 14 *
35
* 02101 Espoo, Finland *
36
* *
37
* Original Date: 15 Mar 2008 *
38
* *
39
*****************************************************************************/
40
41
#ifndef SURFACE_H
42
#define SURFACE_H
43
44
#include <QWidget>
45
#include <vtkLookupTable.h>
46
#include "ui_surface.h"
47
48
class ScalarField;
49
class VtkPost;
50
class TimeStep;
51
52
class Surface : public QDialog
53
{
54
Q_OBJECT
55
56
public:
57
Surface(QWidget *parent = 0);
58
~Surface();
59
60
Ui::surfaceDialog ui;
61
62
void populateWidgets(VtkPost*);
63
void draw(VtkPost*, TimeStep*);
64
65
signals:
66
void drawSurfaceSignal();
67
void hideSurfaceSignal();
68
69
public slots:
70
QString GetFieldName(); // get field name
71
bool SetFieldName(QString); // set field name
72
void SetMinVal(double); // set minimum
73
void SetMaxVal(double); // set maximum
74
void KeepLimits(bool); // keep limits
75
void SetComputeNormals(bool); // shade model
76
void SetFeatureAngle(int); // feature angle
77
void SetOpacity(int); // set opacity
78
void SetClipPlane(bool); // set clipping
79
80
private slots:
81
void cancelButtonClicked();
82
void okButtonClicked();
83
void applyButtonClicked();
84
void surfaceSelectionChanged(int);
85
void keepLimitsSlot(int);
86
void nullColorButtonClicked();
87
88
private:
89
ScalarField *scalarField;
90
int scalarFields;
91
QColor nullColor;
92
void setNullColor(QColor);
93
};
94
95
#endif // SURFACE_H
96
97