Back to index

salome-geom  6.5.0
GEOMToolsGUI.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 //  GEOM GEOMGUI : GUI for Geometry component
00024 //  File   : GEOMToolsGUI.h
00025 //  Author : Damien COQUERET, Open CASCADE S.A.S.
00026 //
00027 #ifndef GEOMTOOLSGUI_H
00028 #define GEOMTOOLSGUI_H
00029 
00030 #include "GEOM_ToolsGUI.hxx"
00031 
00032 #include <GEOMGUI.h>
00033 
00034 #include <SALOMEDSClient.hxx>
00035 
00036 class GEOM_Displayer;
00037 class SALOME_View;
00038 class SALOME_ListIO;
00039 
00040 #include <QList>
00041 
00042 //=================================================================================
00043 // class    : GEOMToolsGUI
00044 // purpose  :
00045 //=================================================================================
00046 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI : public GEOMGUI
00047 {
00048 public:
00049   GEOMToolsGUI( GeometryGUI* ); // hide constructor to avoid direct creation
00050   ~GEOMToolsGUI();
00051 
00052   bool         OnGUIEvent( int, SUIT_Desktop* );
00053   virtual void deactivate();
00054 
00055   enum ActionType { SHOWDLG, INCR, DECR };
00056 
00057 private:
00058   // Import and export topology methods
00059   bool         Import();
00060   bool         Export();
00061 
00062   void         OnEditDelete();
00063   void         OnCheckGeometry();
00064 
00065   // Popup commands
00066   void         OnAutoColor();
00067   void         OnDisableAutoColor();
00068   void         OnColor();
00069   void         OnTexture();
00070   void         OnTransparency();
00071   void         OnNbIsos( ActionType actionType = SHOWDLG );
00072   void         OnDeflection();
00073   void         OnSelectOnly(int mode);
00074   void         OnShowHideChildren( bool );
00075   void         OnUnpublishObject();
00076   void         OnPublishObject() ;
00077   void         OnPointMarker();
00078   void         OnMaterialProperties();
00079   void         OnEdgeWidth();
00080   void         OnIsosWidth();
00081   void         OnBringToFront();
00082   void         OnClsBringToFront();
00083 
00084   // Shortcut commands
00085   void         OnChangeTransparency( bool );
00086 
00087   // Recursive deletion of object with children
00088   void         removeObjectWithChildren( _PTR(SObject),
00089                                          _PTR(Study),
00090                                          QList<SALOME_View*>,
00091                                          GEOM_Displayer* );
00092 };
00093 
00094 #endif // GEOMTOOLSGUI_H