Version: 6.3.1

src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.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 // File   : SMESHGUI_MakeNodeAtPointDlg.h
00024 // Author : Edward AGAPOV, Open CASCADE S.A.S.
00025 //
00026 #ifndef SMESHGUI_MAKENODEATPOINTDLG_H
00027 #define SMESHGUI_MAKENODEATPOINTDLG_H
00028 
00029 // SMESH includes
00030 #include "SMESH_SMESHGUI.hxx"
00031 
00032 #include "SMESHGUI_Dialog.h"
00033 #include "SMESHGUI_SelectionOp.h"
00034 
00035 class QGroupBox;
00036 class QLineEdit;
00037 class QPushButton;
00038 class QCheckBox;
00039 class SMESHGUI_SpinBox;
00040 class SMESHGUI_MeshEditPreview;
00041 class SMESHGUI_MakeNodeAtPointDlg;
00042 
00046 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointOp: public SMESHGUI_SelectionOp
00047 {
00048   Q_OBJECT
00049 
00050 public:
00051   SMESHGUI_MakeNodeAtPointOp();
00052   virtual ~SMESHGUI_MakeNodeAtPointOp();
00053 
00054   virtual LightApp_Dialog*       dlg() const;  
00055 
00056 protected:
00057 
00058   virtual void                   startOperation();
00059   virtual void                   stopOperation();
00060 
00061   virtual void                   activateSelection();
00062 
00063   bool                           isValid( QString& );
00064 
00065 protected slots:
00066   virtual bool                   onApply();
00067 
00068 private slots:
00069   void                           onSelectionDone();
00070   void                           redisplayPreview();
00071 
00072 private:
00073   SMESHGUI_MakeNodeAtPointDlg*  myDlg;
00074 
00075   SUIT_SelectionFilter*         myFilter;
00076   int                           myMeshOldDisplayMode;
00077   SMESHGUI_MeshEditPreview*     mySimulation;
00078   SMESH_Actor*                  myMeshActor;
00079   bool                          myNoPreview;
00080 };
00081 
00086 class SMESHGUI_EXPORT SMESHGUI_MakeNodeAtPointDlg : public SMESHGUI_Dialog
00087 {
00088   Q_OBJECT
00089 
00090 public:
00091   SMESHGUI_MakeNodeAtPointDlg();
00092 
00093 private:
00094   QWidget*                      createMainFrame( QWidget* );
00095 
00096   QPushButton*                  myCoordBtn;
00097   SMESHGUI_SpinBox*             myX;
00098   SMESHGUI_SpinBox*             myY;
00099   SMESHGUI_SpinBox*             myZ;
00100   QGroupBox*                    myNodeToMoveGrp;
00101   QPushButton*                  myIdBtn;
00102   QLineEdit*                    myId;
00103   SMESHGUI_SpinBox*             myCurrentX;
00104   SMESHGUI_SpinBox*             myCurrentY;
00105   SMESHGUI_SpinBox*             myCurrentZ;
00106   SMESHGUI_SpinBox*             myDX;
00107   SMESHGUI_SpinBox*             myDY;
00108   SMESHGUI_SpinBox*             myDZ;
00109   QCheckBox*                    myAutoSearchChkBox;
00110   QCheckBox*                    myPreviewChkBox;
00111 
00112   QString                       myHelpFileName;
00113 
00114   friend class SMESHGUI_MakeNodeAtPointOp;
00115 
00116 private slots:
00117   void                          ButtonToggled( bool );
00118 };
00119 
00120 #endif // SMESHGUI_MAKENODEATPOINTDLG_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