Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for the bug #255: VTK viewer is not updated after modification of objects.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_PolylineOp.h
diff --git
a/src/HYDROGUI/HYDROGUI_PolylineOp.h
b/src/HYDROGUI/HYDROGUI_PolylineOp.h
index be473d9774e553d6b6a3f71e6a5b7a517cf603de..2192aa5fe4df7aa955b62f43dcd8efde547b9b34 100755
(executable)
--- a/
src/HYDROGUI/HYDROGUI_PolylineOp.h
+++ b/
src/HYDROGUI/HYDROGUI_PolylineOp.h
@@
-25,19
+25,44
@@
#include "HYDROGUI_Operation.h"
#include "HYDROGUI_Operation.h"
+#include <HYDROData_PolylineXY.h>
+
+class OCCViewer_ViewManager;
+class CurveCreator_Curve;
+
class HYDROGUI_PolylineOp : public HYDROGUI_Operation
{
Q_OBJECT
public:
class HYDROGUI_PolylineOp : public HYDROGUI_Operation
{
Q_OBJECT
public:
- HYDROGUI_PolylineOp( HYDROGUI_Module* theModule );
+ HYDROGUI_PolylineOp( HYDROGUI_Module* theModule
, bool isEdit
);
virtual ~HYDROGUI_PolylineOp();
virtual ~HYDROGUI_PolylineOp();
+ void deleteSelected();
+ bool deleteEnabled();
+
protected:
protected:
+ virtual void startOperation();
+ virtual void abortOperation();
+ virtual void commitOperation();
+
virtual HYDROGUI_InputPanel* createInputPanel() const;
virtual HYDROGUI_InputPanel* createInputPanel() const;
- virtual bool processApply( int& theUpdateFlags );
+ virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg );
+
+protected slots:
+ void onEditorSelectionChanged();
+
+private:
+ void displayPreview();
+ void erasePreview();
+
+private:
+ OCCViewer_ViewManager* myViewManager;
+ bool myIsEdit;
+ Handle(HYDROData_PolylineXY) myEditedObject;
+ CurveCreator_Curve* myCurve;
};
#endif
};
#endif