Path: blob/devel/ElmerGUI/Application/vtkpost/surface.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 surface *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 SURFACE_H41#define SURFACE_H4243#include <QWidget>44#include <vtkLookupTable.h>45#include "ui_surface.h"4647class ScalarField;48class VtkPost;49class TimeStep;5051class Surface : public QDialog52{53Q_OBJECT5455public:56Surface(QWidget *parent = 0);57~Surface();5859Ui::surfaceDialog ui;6061void populateWidgets(VtkPost*);62void draw(VtkPost*, TimeStep*);6364signals:65void drawSurfaceSignal();66void hideSurfaceSignal();6768public slots:69QString GetFieldName(); // get field name70bool SetFieldName(QString); // set field name71void SetMinVal(double); // set minimum72void SetMaxVal(double); // set maximum73void KeepLimits(bool); // keep limits74void SetComputeNormals(bool); // shade model75void SetFeatureAngle(int); // feature angle76void SetOpacity(int); // set opacity77void SetClipPlane(bool); // set clipping7879private slots:80void cancelButtonClicked();81void okButtonClicked();82void applyButtonClicked();83void surfaceSelectionChanged(int);84void keepLimitsSlot(int);85void nullColorButtonClicked();8687private:88ScalarField *scalarField;89int scalarFields;90QColor nullColor;91void setNullColor(QColor);92};9394#endif // SURFACE_H959697