{
Q_OBJECT
-public:
- enum TransformationMode { ManualLambert = 0, ManualCartesian, RefImage };
-
public:
struct TransformationData
{
TransformationData() {}
+ TransformationData( const QPoint& theImagePoint ) :
+ ImagePoint( theImagePoint ) {}
+
TransformationData( const QPoint& theImagePoint,
const QPointF& theLambertPoint,
const QPointF& theCartesianPoint ) :
void setImageName( const QString& theName );
QString getImageName() const;
+ void setRefImageName( const QString& theName );
+ QString getRefImageName() const;
+
QString getFileName() const;
void setImageSize( const QSize& theSize,
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 );