Salome HOME
PAL12607: Static objects in Geometry GUI libraries.
[modules/geom.git] / src / EntityGUI / EntityGUI.h
index fe2f7d816aac992c684af9019b1c59a9d8821f28..f69297f8fbc9d785442007098c4cb3affef2d53c 100644 (file)
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  File   : EntityGUI.h
 //  Author : Damien COQUERET
 //  Module : GEOM
-//  $Header$
 
 #ifndef ENTITYGUI_H
 #define ENTITYGUI_H
 
 #include "GEOMGUI.h"
-#include "GEOMBase.h"
 
 #include "SALOMEDSClient.hxx"
 
+#include <TopoDS_Shape.hxx>
+#include <AIS_Shape.hxx>
+
 //=================================================================================
 // class    : EntityGUI
 // purpose  :
 //=================================================================================
 class EntityGUI : public GEOMGUI
 {
-protected:
-  EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
-
 public :
+  EntityGUI( GeometryGUI* parent ); // hide constructor to avoid direct creation
   ~EntityGUI();
 
-  // Get the only EntityGUI object
-  static EntityGUI* GetEntityGUI( GeometryGUI* parent );
-
   bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
 
-  void OnSketchEnd(const char *Cmd);
-
   void DisplaySimulationShape(const TopoDS_Shape& S1, const TopoDS_Shape& S2); 
   void EraseSimulationShape();
 
-  void MakeInterpolAndDisplay(GEOM::string_array& listShapesIOR);
-  void MakeBezierAndDisplay(GEOM::string_array& listShapesIOR);
-
-    /* Methods for sub shapes explode */
+  // Methods for sub shapes explode
   bool SObjectExist(const _PTR(SObject)& theFatherObject, const char* IOR);
-  bool OnSubShapeGetAll(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType);  
-  bool OnSubShapeGetSelected(const TopoDS_Shape& ShapeTopo, const char* ShapeTopoIOR, const int SubShapeType,
-                            Standard_Integer& aLocalContextId, bool& myUseLocalContext);
 
-  /* AIS shape used only during topo/geom simulations */
+  // AIS shape used only during topo/geom simulations
   Handle(AIS_Shape) mySimulationShape1;
   Handle(AIS_Shape) mySimulationShape2;
-
-  GEOMBase* myGeomBase;
-  GEOM::GEOM_Gen_var myGeom;   /* Current Geom Component */
-
-private:
-  static EntityGUI* myGUIObject;    // the only EntityGUI object
 };
 
 #endif