X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Image.h;h=7860f41bfbad391ad6269c582e6f073ea8645c8c;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=7fe84c9329f1d50c8026fd0e2ec95ff6fd9a7f4d;hpb=90314a195b4d4951ba61a7333cb0de16c253dea9;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Image.h b/src/HYDROData/HYDROData_Image.h index 7fe84c93..7860f41b 100644 --- a/src/HYDROData/HYDROData_Image.h +++ b/src/HYDROData/HYDROData_Image.h @@ -22,8 +22,9 @@ public: enum TransformationMode { - ManualLambert = 0, + ManualGeodesic = 0, ManualCartesian, + CartesianFromFile, ReferenceImage }; @@ -62,6 +63,11 @@ public: */ HYDRODATA_EXPORT virtual void Update(); + /** + * Checks that object has 2D presentation. Reimlemented to retun true. + */ + HYDRODATA_EXPORT virtual bool IsHas2dPrs() const; + /** * Returns data of object wrapped to QVariant. * Reimplemented to wrap and return saved image. @@ -69,6 +75,12 @@ public: */ HYDRODATA_EXPORT virtual QVariant GetDataVariant(); + /** + * Returns the list of all reference objects of this object. + */ + HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; + + /** * Stores the image * \param theImage new image @@ -186,6 +198,13 @@ public: QPointF& thePointB, QPointF& thePointC ) const; + /** + * Get transformation points from the file and stores them in global cs + * \param theFileName the image georeferencement file name + * \return true in case of success + */ + HYDRODATA_EXPORT bool SetGlobalPointsFromFile( const QString& theFileName ); + /** * Returns true if global points has been set before */ @@ -316,17 +335,6 @@ public: */ HYDRODATA_EXPORT QByteArray Args() const; - /** - * Sets the "MustBeUpdated" flag: if image is depended on updated features. - * \param theFlag is true for images that must be updated, false for up-to-date - */ - HYDRODATA_EXPORT void MustBeUpdated(bool theFlag); - - /** - * Returns the "MustBeUpdated" flag: is image must be recomputed or not - * \returns false if image is up to date - */ - HYDRODATA_EXPORT bool MustBeUpdated() const; /** * Marks the image as self-splitted. @@ -354,12 +362,12 @@ protected: * Creates new object in the internal data structure. Use higher level objects * to create objects with real content. */ - HYDROData_Image(); + HYDRODATA_EXPORT HYDROData_Image(); /** * Destructs properties of the object and object itself, removes it from the document. */ - ~HYDROData_Image(); + HYDRODATA_EXPORT ~HYDROData_Image(); };