1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library 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 GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : Plot2d_ViewWindow.h
24 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
26 #ifndef PLOT2D_VIEWWINDOW_H
27 #define PLOT2D_VIEWWINDOW_H
30 #include <SUIT_ViewWindow.h>
35 #pragma warning( disable:4251 )
40 class Plot2d_ViewFrame;
46 class PLOT2D_EXPORT Plot2d_ViewWindow : public SUIT_ViewWindow
52 ScaleOpId, FitAllId, FitRectId, ZoomId,
53 MoveOpId, PanId, GlobalPanId,
54 PModeXLinearId, PModeXLogarithmicId,
55 PModeYLinearId, PModeYLogarithmicId,
56 PModeNormLMaxId, PModeNormLMinId,
57 PModeNormRMaxId, PModeNormRMinId,
58 CurvPointsId, CurvLinesId, CurvSplinesId,
65 Plot2d_ViewWindow( SUIT_Desktop*, Plot2d_Viewer* );
66 virtual ~Plot2d_ViewWindow();
68 Plot2d_Viewer* getModel();
69 void putInfo( const QString&);
70 Plot2d_ViewFrame* getViewFrame();
71 QToolBar* getToolBar();
72 virtual void initLayout();
73 void contextMenuPopup( QMenu* );
75 virtual bool eventFilter( QObject*, QEvent* );
80 virtual QString getVisualParameters();
81 virtual void setVisualParameters( const QString& );
83 virtual void RefreshDumpImage();
86 void onChangeHorMode();
87 void onChangeVerMode();
88 void onChangeCurveMode();
89 void onChangeLegendMode();
90 void onChangeNormLMode();
91 void onChangeNormRMode();
98 void onGlobalPanning();
100 void onViewVerMode();
101 void onViewNormLMode();
102 void onViewNormRMode();
110 virtual QImage dumpView();
111 virtual bool dumpViewToFormat( const QImage&,
114 virtual QString filter() const;
120 Plot2d_Viewer* myModel;
121 Plot2d_ViewFrame* myViewFrame;
127 #pragma warning( default:4251 )
130 #endif // PLOT2D_VIEWWINDOW_H