Salome HOME
Bugfix for issue #107 which also works for issue #82
[modules/shaper.git] / src / PartSet / PartSet_Module.h
index d95a75ebed77a62be1fea5b7629fd646df5827bc..39ee6a763a40fc68d16900c91a1ed8b3e1c5da82 100644 (file)
@@ -23,11 +23,11 @@ class XGUI_ViewerPrs;
 class ModuleBase_Operation;
 class GeomAPI_AISObject;
 
-class PARTSET_EXPORT PartSet_Module: public ModuleBase_IModule
+class PARTSET_EXPORT PartSet_Module : public ModuleBase_IModule
 {
 Q_OBJECT
 
-public:
+ public:
   PartSet_Module(XGUI_Workshop* theWshop);
   virtual ~PartSet_Module();
 
@@ -56,25 +56,24 @@ public:
   /// \param theFeature the feature instance to be displayed
   /// \param isDisplay the state whether the presentation should be displayed or erased
   /// \param isUpdateViewer the flag whether the viewer should be updated
-  void visualizePreview(FeaturePtr theFeature, bool isDisplay,
-                        const bool isUpdateViewer = true);
+  //void visualizePreview(FeaturePtr theFeature, bool isDisplay,
+  //                      const bool isUpdateViewer = true);
 
   /// Activates the feature in the displayer
   /// \param theFeature the feature instance to be displayed
   /// \param isUpdateViewer the flag whether the viewer should be updated
-  void activateFeature(ObjectPtr theFeature,
-                       const bool isUpdateViewer);
+  void activateFeature(ObjectPtr theFeature, const bool isUpdateViewer);
 
   /// Updates current operation preview, if it has it.
   /// \param theCmdId the operation name
   void updateCurrentPreview(const std::string& theCmdId);
 
   /// Creates custom widgets for property panel
-  virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent, 
-    Config_WidgetAPI* theWidgetApi, QList<ModuleBase_ModelWidget*>& theModelWidgets);
+  virtual QWidget* createWidgetByType(const std::string& theType, QWidget* theParent,
+                                      Config_WidgetAPI* theWidgetApi,
+                                      QList<ModuleBase_ModelWidget*>& theModelWidgets);
 
-
-public slots:
+ public slots:
   void onFeatureTriggered();
   /// SLOT, that is called after the operation is started. Connect on the focus activated signal
   void onOperationStarted();
@@ -113,7 +112,7 @@ public slots:
   /// SLOT, to fit all current viewer
   void onFitAllView();
 
-  void onLaunchOperation(std::string theName, FeaturePtr theFeature);
+  void onRestartOperation(std::string theName, ObjectPtr theFeature);
 
   /// SLOT, to switch on/off the multi selection in the viewer
   /// \param theEnabled the enabled state
@@ -134,15 +133,14 @@ public slots:
   /// SLOT, to visualize the feature in another local context mode
   /// \param theFeature the feature to be put in another local context mode
   /// \param theMode the mode appeared on the feature
-  void onFeatureConstructed(FeaturePtr theFeature,
-                            int theMode);
+  void onFeatureConstructed(ObjectPtr theFeature, int theMode);
 
   /// Slot which reacts to the point 2d set to the feature. Creates a constraint
   /// \param the feature
   /// \param the attribute of the feature
-  void onStorePoint2D(FeaturePtr theFeature, const std::string& theAttribute);
+  void onStorePoint2D(ObjectPtr theFeature, const std::string& theAttribute);
 
-protected:
+ protected:
   /// Creates a new operation
   /// \param theCmdId the operation name
   /// \param theFeatureKind a kind of feature to get the feature xml description
@@ -153,24 +151,15 @@ protected:
   /// \param theOperation the operation
   void sendOperation(ModuleBase_Operation* theOperation);
 
-protected:
+ protected:
   //! Edits the feature
   void editFeature(FeaturePtr theFeature);
 
-
-  //! Shopws working planes in viewer 3d
-  void showPlanes();
-  void erasePlanes();
-
-private:
+ private:
   XGUI_Workshop* myWorkshop;
   PartSet_Listener* myListener;
 
   std::map<std::string, std::string> myFeaturesInFiles;
-
-  boost::shared_ptr<GeomAPI_AISObject> myXPlane;
-  boost::shared_ptr<GeomAPI_AISObject> myYPlane;
-  boost::shared_ptr<GeomAPI_AISObject> myZPlane;
 };
 
 #endif