#include <AIS_InteractiveContext.hxx>
+class SUIT_ViewWindow;
+class QMouseEvent;
+
class HYDROGUI_LandCoverMapOp : public HYDROGUI_Operation
{
Q_OBJECT
virtual HYDROGUI_Shape* getPreviewShape() const { return myPreviewPrs; };
+signals:
+ void selectionChanged();
+ void deselection();
+
protected slots:
void onLandCoverMapChanged( const QString& theName );
+ void onPolylineFaceChanged();
void onCreatePreview();
void onViewerSelectionChanged();
+ void onMousePress(SUIT_ViewWindow*, QMouseEvent*);
+ void onMouseRelease(SUIT_ViewWindow*, QMouseEvent*);
private:
void closePreview();
Handle(AIS_InteractiveContext) getInteractiveContext();
- void getSelectedShapes( TopTools_ListOfShape& theSelectedShapes,
- Handle(AIS_InteractiveContext)& theCtx );
+ 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