diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-11 14:15:27 -0500 |
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-11 14:15:27 -0500 |
| commit | b85a292ce06475d560bfa1195b63a8bfe211f22d (patch) | |
| tree | 463d71be55ff807513139f1de106aef6bdd7b4db /lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h | |
| parent | ce039289815e2802fdeca8d384126c807ca9cb58 (diff) | |
| download | ulab-b85a292ce06475d560bfa1195b63a8bfe211f22d.tar.gz ulab-b85a292ce06475d560bfa1195b63a8bfe211f22d.zip | |
Add 0.2.7 release of qwtplot3d for future TQt3 conversion and use
Diffstat (limited to 'lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h')
| -rw-r--r-- | lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h | 134 |
1 files changed, 134 insertions, 0 deletions
diff --git a/lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h b/lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h new file mode 100644 index 0000000..435a325 --- /dev/null +++ b/lib/tqwtplot3d/examples/mesh2/src/mesh2mainwindow.h @@ -0,0 +1,134 @@ +#ifndef mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
+#define mesh2mainwindow_h__2004_03_07_13_38_begin_guarded_code
+
+#include "../../../include/qwt3d_surfaceplot.h"
+
+
+#if QT_VERSION < 0x040000
+#include "mesh2mainwindowbase.h"
+#else
+#include "ui_mesh2mainwindowbase4.h"
+#include "designerworkaround.h"
+#endif
+
+
+
+//MOC_SKIP_BEGIN
+#if QT_VERSION < 0x040000
+ class DummyBase : public Mesh2MainWindowBase
+ {
+ public:
+ DummyBase(QWidget* parent = 0)
+ : Mesh2MainWindowBase(parent)
+ {
+ }
+ };
+#else
+ class DummyBase : public QMainWindow, protected Ui::MainWindow, protected DesignerWorkaround
+ {
+ public:
+ DummyBase(QWidget* parent = 0)
+ : QMainWindow(parent)
+ {
+ }
+ };
+#endif
+//MOC_SKIP_END
+
+class QLabel;
+class QTimer;
+class QAction;
+class QFileDialog;
+class LightingDlg;
+class ColorMapPreview;
+
+class Mesh2MainWindow : public DummyBase
+{
+ Q_OBJECT
+public:
+ Mesh2MainWindow( QWidget* parent = 0 );
+ ~Mesh2MainWindow();
+
+ Qwt3D::SurfacePlot* dataWidget;
+
+public slots:
+ void open();
+ void openMesh();
+
+ void createFunction(QString const& name);
+ void createPSurface(QString const& name);
+ void setFileType(QString const& name);
+
+ void pickCoordSystem( QAction* );
+ void pickPlotStyle( QAction* );
+ void pickFloorStyle( QAction* );
+ void pickAxesColor();
+ void pickBgColor();
+ void pickMeshColor();
+ void pickNumberColor();
+ void pickLabelColor();
+ void pickTitleColor();
+ void pickDataColor();
+ void pickLighting();
+ void resetColors();
+ void pickNumberFont();
+ void pickLabelFont();
+ void pickTitleFont();
+ void resetFonts();
+ void setStandardView();
+ void dumpImage();
+ void toggleAnimation(bool);
+ void toggleProjectionMode(bool);
+ void toggleColorLegend(bool);
+ void toggleAutoScale(bool val);
+ void toggleShader(bool val);
+ void rotate();
+ void setPolygonOffset(int);
+
+ void showRotate(double x, double y, double z);
+ void showShift(double x, double y);
+ void showScale(double x, double y, double z);
+ void showZoom(double z);
+ void showNormals(bool val);
+ void setNormalQuality(int);
+ void setNormalLength(int);
+ bool openColorMap(Qwt3D::ColorVector& cv, QString fname);
+ void adaptDataColors(const QString&);
+ void updateColorLegend(int majors, int minors);
+
+ void setLeftGrid( bool b );
+ void setRightGrid( bool b );
+ void setCeilGrid( bool b );
+ void setFloorGrid( bool b );
+ void setFrontGrid( bool b );
+ void setBackGrid( bool b );
+ void setGrid( Qwt3D::SIDE, bool );
+
+ void enableLighting(bool val);
+
+private:
+ QLabel *filenameWidget, *dimWidget,
+ *rotateLabel, *shiftLabel, *scaleLabel, *zoomLabel;
+
+ QTimer* timer;
+ int redrawWait;
+
+ QAction* activeCoordSystem;
+
+ bool legend_;
+ Qwt3D::StandardColor* col_;
+
+ QFileDialog* datacolordlg_;
+ LightingDlg* lightingdlg_;
+ QString filetype_;
+
+ // convenience compatib. code
+ bool connectA (const QObject* sender, const char * slot);
+ bool connectAG (const QObject* sender, const char * slot);
+
+#if QT_VERSION < 0x040000
+ ColorMapPreview* colormappv_;
+#endif
+};
+
+#endif /* include guarded */
|
