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();
/// Called on creation of menu item in desktop
virtual void featureCreated(QAction* theFeature);
- /// Returnc list of nested commands for the given feature
- virtual QStringList nestedFeatures(QString theFeature);
std::string featureFile(const std::string&);
/// Creates an operation and send it to loop
/// \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();
/// SLOT, to fit all current viewer
void onFitAllView();
- void onLaunchOperation(std::string theName, ObjectPtr theFeature);
+ void onRestartOperation(std::string theName, ObjectPtr theFeature);
/// SLOT, to switch on/off the multi selection in the viewer
/// \param theEnabled the enabled state
/// 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
/// \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