X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_ImportImageDlg.h;h=3473fdfb89352a94fb21dcf89266895067b08430;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=c49bdac01d0a594684f2192a14e9073cb0e4438c;hpb=41f291766eb87fc4ed3871fc89d3371581b8014d;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_ImportImageDlg.h b/src/HYDROGUI/HYDROGUI_ImportImageDlg.h index c49bdac0..3473fdfb 100644 --- a/src/HYDROGUI/HYDROGUI_ImportImageDlg.h +++ b/src/HYDROGUI/HYDROGUI_ImportImageDlg.h @@ -32,6 +32,7 @@ class QComboBox; class QGroupBox; class QLabel; class QLineEdit; +class QCheckBox; class QtxDoubleSpinBox; class QtxIntSpinBox; @@ -40,9 +41,6 @@ class HYDROGUI_ImportImageDlg : public HYDROGUI_InputPanel { Q_OBJECT -public: - enum TransformationMode { ManualLambert = 0, ManualCartesian, RefImage }; - public: struct TransformationData { @@ -52,6 +50,9 @@ public: TransformationData() {} + TransformationData( const QPoint& theImagePoint ) : + ImagePoint( theImagePoint ) {} + TransformationData( const QPoint& theImagePoint, const QPointF& theLambertPoint, const QPointF& theCartesianPoint ) : @@ -75,6 +76,9 @@ public: void setImageName( const QString& theName ); QString getImageName() const; + void setRefImageName( const QString& theName ); + QString getRefImageName() const; + QString getFileName() const; void setImageSize( const QSize& theSize, @@ -83,18 +87,25 @@ public: void setTransformationMode( const int theMode ); int getTransformationMode() const; + void setByTwoPoints( const bool theIsByTwoPoints ); + bool isByTwoPoints() const; + void setTransformationDataMap( const TransformationDataMap& theMap, const bool theIsOnlyInput = false, const bool theIsRefImage = false ); bool getTransformationDataMap( TransformationDataMap& theMap, const bool theIsRefImage = false ) const; - QString getRefImageName() const; - void setPrsPointDataList( const PrsPointDataList& theList ); void initializePointSelection(); +public: + + static TransformationData ComputeTrsfData( const int theMode, + const QPoint& theLocalPoint, + const QPointF& theGlobalPoint ); + protected slots: void onBrowse(); void onModeActivated( int ); @@ -152,6 +163,8 @@ private: QMap myRefPointXMap; QMap myRefPointYMap; + QCheckBox* myPointCEnabler; + PrsPointDataList myPrsPointDataList; bool myIsInitialized;