#include <HYDROData_LandCoverMap.h>
+#include <AIS_InteractiveContext.hxx>
+
+class SUIT_ViewWindow;
+class QMouseEvent;
+
class HYDROGUI_LandCoverMapOp : public HYDROGUI_Operation
{
Q_OBJECT
virtual ~HYDROGUI_LandCoverMapOp();
protected:
- virtual void startOperation();
- virtual void abortOperation();
- virtual void commitOperation();
+ virtual void startOperation();
+ virtual void abortOperation();
+ virtual void commitOperation();
+
+ virtual HYDROGUI_InputPanel* createInputPanel() const;
- virtual HYDROGUI_InputPanel* createInputPanel() const;
+ virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg,
+ QStringList& theBrowseObjectsEntries );
- virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg,
- QStringList& theBrowseObjectsEntries );
+ virtual HYDROGUI_Shape* getPreviewShape() const { return myPreviewPrs; };
- virtual HYDROGUI_Shape* getPreviewShape() const { return myPreviewPrs; };
+signals:
+ void selectionChanged();
+ void deselection();
protected slots:
- void onCreatePreview( const QStringList& thePolylineNames );
+ void onLandCoverMapChanged( const QString& theName );
+ void onPolylineFaceChanged();
+ void onCreatePreview();
+ void onViewerSelectionChanged();
+ void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
+ void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
private:
- void closePreview();
+ void closePreview();
+
+ Handle(AIS_InteractiveContext) getInteractiveContext();
+ void getSelectedShapes( TopTools_ListOfShape& theSelectedShapes );
+ int getNbSelected();
+ void selectLandCoverInPreview();
private:
int myOperationId;
Handle(HYDROData_LandCoverMap) myEditedObject;
HYDROGUI_Shape* myPreviewPrs;
+ HYDROGUI_Shape* myPolylineFacePreviewPrs;
+
+ QPoint myStartPnt, myEndPnt;
};
#endif