X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ImportImageOp.h;h=ad45664edab7f1b025326372048b95cc786f8cf8;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=67be1e103784649f083021239f43a67a0dabda66;hpb=e621d05044c11066b12460ca748f67ab6ee7879f;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ImportImageOp.h b/src/HYDROGUI/HYDROGUI_ImportImageOp.h index 67be1e10..ad45664e 100644 --- a/src/HYDROGUI/HYDROGUI_ImportImageOp.h +++ b/src/HYDROGUI/HYDROGUI_ImportImageOp.h @@ -56,28 +56,40 @@ protected slots: void onCreatePreview( QImage ); void onActivatePointSelection( int ); void onPointCoordChanged( bool, int, bool, int ); + void onModeActivated( int ); void onRefImageActivated( const QString& ); void onLastViewClosed( SUIT_ViewManager* ); void onPointSelected(); + void onRefPointSelected(); void onPointSelected( bool theIsRefImage ); private: void closePreview(); + void closeView( GraphicsView_ViewManager* &aViewMgr ); + + bool checkPoints( const QPointF& thePointA, + const QPointF& thePointB, + const QPointF& thePointC, + const bool theIsByTwoPoints, + const QString& theLineErrMsg, + const QString& thePoinErrMsg, + QString& theErrorMsg, + const bool theIsToCheckInvertibles ) const; private: bool myIsEdit; Handle(HYDROData_Image) myEditedObject; - SUIT_ViewManager* myActiveViewManager; + SUIT_ViewManager* myActiveViewManager; //!< The previous view to come back to after the operation - GraphicsView_ViewManager* myPreviewViewManager; - HYDROGUI_PrsImage* myPreviewPrs; - HYDROGUI_PrsImage* myRefPreviewPrs; + GraphicsView_ViewManager* myPreviewViewManager; //!< The operation preview window + GraphicsView_ViewManager* myRefViewManager; //!< The reference image view window + HYDROGUI_PrsImage* myPreviewPrs; //!< The loaded image preview presentation + HYDROGUI_PrsImage* myRefPreviewPrs; //!< The reference image presentation - QImage myImage; - QTransform myRefTransform; + QImage myImage; //!< The loaded image to import int myPointType; };