Version: 6.3.1

src/VISUGUI/VisuGUI_DeformedShapeDlg.h

Go to the documentation of this file.
00001 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 //  VISU VISUGUI : GUI of VISU component
00024 //  File   : VisuGUI_MagnitudeDlg.h
00025 //  Author : Laurent CORNABE & Hubert ROLLAND
00026 //  Module : VISU
00027 //  $Header: /home/server/cvs/VISU/VISU_SRC/src/VISUGUI/VisuGUI_DeformedShapeDlg.h,v 1.7.2.1.6.1.8.1 2011-06-02 06:00:21 vsr Exp $
00028 //
00029 #ifndef VISUGUI_DEFORMEDSHAPEDLS_H
00030 #define VISUGUI_DEFORMEDSHAPEDLS_H
00031 
00032 #include "VisuGUI_Prs3dDlg.h"
00033 
00034 #include <SalomeApp_DoubleSpinBox.h>
00035 
00036 #include <QCheckBox>
00037 
00038 
00039 class QTabWidget;
00040 
00041 class SalomeApp_Module;
00042 class VisuGUI_InputPane;
00043 class VisuGUI;
00044 
00045 namespace VISU
00046 {
00047   class DeformedShape_i;
00048 }
00049 
00050 class VisuGUI_DeformedShapeDlg : public VisuGUI_ScalarBarBaseDlg
00051 {
00052     Q_OBJECT
00053 
00054 public:
00055     VisuGUI_DeformedShapeDlg (SalomeApp_Module* theModule);
00056     ~VisuGUI_DeformedShapeDlg();
00057 
00058     double getFactor()
00059       { return ScalFact->value(); }
00060     void setFactor(double theFactor);
00061 
00062     bool isColored()
00063       { return UseMagn->isChecked(); }
00064 
00065     virtual void initFromPrsObject( VISU::ColoredPrs3d_i* thePrs,
00066                                   bool theInit );
00067 
00068     virtual int  storeToPrsObject(VISU::ColoredPrs3d_i* thePrs);
00069 
00070     static VISU::Prs3d_i* CreatePrs3d(VisuGUI*  theModule);
00071     static void EditPrs3d(VisuGUI* theModule, VISU::Prs3d_i* thePrs3d, Handle(SALOME_InteractiveObject)& theIO);
00072 
00073     void updatePrsCopy( VISU::Prs3d_i* thePrs );
00074 
00075 protected:
00076     virtual QString        GetContextHelpFilePath();
00077     int                    isValid();
00078 protected slots:
00079   void accept();
00080   bool onApply();
00081   void reject();
00082 
00083 private:
00084     SalomeApp_DoubleSpinBox* ScalFact;
00085     QCheckBox*             UseMagn;
00086     QTabWidget*            myTabBox;
00087     VisuGUI_InputPane*     myInputPane;
00088     SalomeApp_Module*      myModule;
00089     SALOME::GenericObjPtr<VISU::DeformedShape_i> myPrsCopy;
00090     bool                   isApplyed;
00091 };
00092 
00093 #endif // VISUGUI_DEFORMEDSHAPEDLS_H
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS