Path: blob/devel/ElmerGUI/Application/vtkpost/preferences.h
3203 views
/*****************************************************************************1* *2* Elmer, A Finite Element Software for Multiphysical Problems *3* *4* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *5* *6* This program is free software; you can redistribute it and/or *7* modify it under the terms of the GNU General Public License *8* as published by the Free Software Foundation; either version 2 *9* of the License, or (at your option) any later version. *10* *11* This program is distributed in the hope that it will be useful, *12* but WITHOUT ANY WARRANTY; without even the implied warranty of *13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *14* GNU General Public License for more details. *15* *16* You should have received a copy of the GNU General Public License *17* along with this program (in file fem/GPL-2); if not, write to the *18* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *19* Boston, MA 02110-1301, USA. *20* *21*****************************************************************************/2223/*****************************************************************************24* *25* ElmerGUI preferences *26* *27*****************************************************************************28* *29* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *30* Email: [email protected] *31* Web: http://www.csc.fi/elmer *32* Address: CSC - IT Center for Science Ltd. *33* Keilaranta 14 *34* 02101 Espoo, Finland *35* *36* Original Date: 15 Mar 2008 *37* *38*****************************************************************************/3940#ifndef PREFERENCES_H41#define PREFERENCES_H4243#include <QWidget>44#include "ui_preferences.h"4546class Preferences : public QDialog47{48Q_OBJECT4950public:51Preferences(QWidget *parent = 0);52~Preferences();5354Ui::preferencesDialog ui;5556signals:57void redrawSignal();5859public slots:60void UseSurfaceMeshForPoints(bool); // nodes of surface mesh61void UseVolumeMeshForPoints(bool); // nodes of volume mesh62void SetPointSize(int); // set node point size63void SetPointQuality(int); // set node point quality64void UseClipPlaneForPoints(bool); // clip nodes65void UseSurfaceMeshForEdges(bool); // edges of surface mesh66void UseVolumeMeshForEdges(bool); // edges of volume mesh67void UseTubeFilterForEdges(bool); // use tube filter68void UseClipPlaneForEdges(bool); // clip edges69void SetLineWidthForEdges(int); // edge line width70void SetTubeQualityForEdges(int); // edge tube quality71void SetTubeRadiusForEdges(int); // edge tube radius72void UseSurfaceMeshForFeatureEdges(bool); // surface mesh: f-edges73void UseVolumeMeshForFeatureEdges(bool); // volume mesh: f-edges74void UseTubeFilterForFeatureEdges(bool); // use tube filter75void UseClipPlaneForFeatureEdges(bool); // clip f-edges76void DrawBoundaryEdges(bool); // draw boundary edges77int GetFeatureAngle(); // get feature angle78void SetFeatureAngle(int); // set feature angle79void SetLineWidthForFeatureEdges(int); // f-edge line width80void SetTubeQualityForFeatureEdges(int); // f-edge tube quality81void SetTubeRadiusForFeatureEdges(int); // f-edge tube radius82void SetClipPlaneOx(double); // clip plane origin83void SetClipPlaneOy(double); // clip plane origin84void SetClipPlaneOz(double); // clip plane origin85void SetClipPlaneNx(double); // clip plane normal86void SetClipPlaneNy(double); // clip plane normal87void SetClipPlaneNz(double); // clip plane normal8889private slots:90void okButtonClicked();91void cancelButtonClicked();92void applyButtonClicked();93void meshPointColorButtonClicked();94void meshEdgeColorButtonClicked();95void featureEdgeColorButtonClicked();96void meshPointToggled(bool);97void meshEdgeToggled(bool);98void featureEdgeToggled(bool);99private:100QColor meshPointColor;101QColor meshEdgeColor;102QColor featureEdgeColor;103void setMeshPointColor(QColor);104void setMeshEdgeColor(QColor);105void setFeatureEdgeColor(QColor);106107public:108QColor getMeshPointColor();109QColor getMeshEdgeColor();110QColor getFeatureEdgeColor();111};112113#endif // PREFERENCES_H114115116