1 // Copyright (C) 2007-2008 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
22 // VISU VISUGUI : GUI of VISU component
23 // File : VisuGUI_Plot3DDlg.h
24 // Author : Laurent CORNABE & Hubert ROLLAND
28 #ifndef VISUGUI_PLOT3D_H
29 #define VISUGUI_PLOT3D_H
31 #include "VisuGUI_Prs3dDlg.h"
38 class SalomeApp_Module;
39 class VisuGUI_InputPane;
47 class SVTK_ViewWindow;
49 class QtxDoubleSpinBox;
51 class VisuGUI_Plot3DPane : public QWidget//QVBox
56 VisuGUI_Plot3DPane(QWidget* parent);
57 ~VisuGUI_Plot3DPane();
59 void initFromPrsObject (VISU::Plot3D_i* thePrs);
60 int storeToPrsObject (VISU::Plot3D_i* thePrs);
64 VISU::Plot3D_i* GetPrs() { return myPrs; }
66 void setPlane(int theOrientation, double theXRotation, double theYRotation, double thePlanePos);
70 SALOME_Actor* myPreviewActor;
71 SVTK_ViewWindow* myViewWindow;
72 VISU::Plot3D_i* myPrs;
73 VISU_Plot3DPL* myPipeCopy;
75 void storePrsParams();
76 void restorePrsParams();
78 QButtonGroup * GBOrientation;
79 QGroupBox * GBoxOrient;
82 QtxDoubleSpinBox * Rot1;
83 QtxDoubleSpinBox * Rot2;
84 QtxDoubleSpinBox * PositionSpn;
85 QCheckBox * RelativeChkB;
86 QtxDoubleSpinBox * ScaleSpn;
87 QButtonGroup * GBPrsType;
88 QSpinBox * NbContoursSpn;
89 QCheckBox * PreviewChkB;
93 void orientationChanged( int );
94 void onRelativePos( bool );
95 void onPrsType( int );
101 class VisuGUI_Plot3DDlg : public VisuGUI_ScalarBarBaseDlg
106 VisuGUI_Plot3DDlg (SalomeApp_Module* theModule);
107 ~VisuGUI_Plot3DDlg();
109 virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
112 virtual int storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
114 void setPlane(int theOrientation, double theXRotation, double theYRotation, double thePlanePos);
117 virtual QString GetContextHelpFilePath();
124 QTabWidget* myTabBox;
125 VisuGUI_Plot3DPane* myIsoPane;
126 VisuGUI_InputPane* myInputPane;
128 SALOME::GenericObjPtr<VISU::Plot3D_i> myPrsCopy;
131 #endif // VISUGUI_PLOT3D_H