Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/Application/vtkpost/preferences.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 preferences *
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 PREFERENCES_H
42
#define PREFERENCES_H
43
44
#include <QWidget>
45
#include "ui_preferences.h"
46
47
class Preferences : public QDialog
48
{
49
Q_OBJECT
50
51
public:
52
Preferences(QWidget *parent = 0);
53
~Preferences();
54
55
Ui::preferencesDialog ui;
56
57
signals:
58
void redrawSignal();
59
60
public slots:
61
void UseSurfaceMeshForPoints(bool); // nodes of surface mesh
62
void UseVolumeMeshForPoints(bool); // nodes of volume mesh
63
void SetPointSize(int); // set node point size
64
void SetPointQuality(int); // set node point quality
65
void UseClipPlaneForPoints(bool); // clip nodes
66
void UseSurfaceMeshForEdges(bool); // edges of surface mesh
67
void UseVolumeMeshForEdges(bool); // edges of volume mesh
68
void UseTubeFilterForEdges(bool); // use tube filter
69
void UseClipPlaneForEdges(bool); // clip edges
70
void SetLineWidthForEdges(int); // edge line width
71
void SetTubeQualityForEdges(int); // edge tube quality
72
void SetTubeRadiusForEdges(int); // edge tube radius
73
void UseSurfaceMeshForFeatureEdges(bool); // surface mesh: f-edges
74
void UseVolumeMeshForFeatureEdges(bool); // volume mesh: f-edges
75
void UseTubeFilterForFeatureEdges(bool); // use tube filter
76
void UseClipPlaneForFeatureEdges(bool); // clip f-edges
77
void DrawBoundaryEdges(bool); // draw boundary edges
78
int GetFeatureAngle(); // get feature angle
79
void SetFeatureAngle(int); // set feature angle
80
void SetLineWidthForFeatureEdges(int); // f-edge line width
81
void SetTubeQualityForFeatureEdges(int); // f-edge tube quality
82
void SetTubeRadiusForFeatureEdges(int); // f-edge tube radius
83
void SetClipPlaneOx(double); // clip plane origin
84
void SetClipPlaneOy(double); // clip plane origin
85
void SetClipPlaneOz(double); // clip plane origin
86
void SetClipPlaneNx(double); // clip plane normal
87
void SetClipPlaneNy(double); // clip plane normal
88
void SetClipPlaneNz(double); // clip plane normal
89
90
private slots:
91
void okButtonClicked();
92
void cancelButtonClicked();
93
void applyButtonClicked();
94
void meshPointColorButtonClicked();
95
void meshEdgeColorButtonClicked();
96
void featureEdgeColorButtonClicked();
97
void meshPointToggled(bool);
98
void meshEdgeToggled(bool);
99
void featureEdgeToggled(bool);
100
private:
101
QColor meshPointColor;
102
QColor meshEdgeColor;
103
QColor featureEdgeColor;
104
void setMeshPointColor(QColor);
105
void setMeshEdgeColor(QColor);
106
void setFeatureEdgeColor(QColor);
107
108
public:
109
QColor getMeshPointColor();
110
QColor getMeshEdgeColor();
111
QColor getFeatureEdgeColor();
112
};
113
114
#endif // PREFERENCES_H
115
116