X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Image.h;h=5a25af9ee633a20ce5e2f760476b7bd1aa2aa770;hb=cde2ec476486fcd7c9b7b38ce814c648d73e7fd3;hp=633edbe8cc879a3ed5476cee61d3391f9534f00d;hpb=7e825ec456c9331ef0df1cb59865cc55f0d8516a;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Image.h b/src/HYDROData/HYDROData_Image.h index 633edbe8..5a25af9e 100644 --- a/src/HYDROData/HYDROData_Image.h +++ b/src/HYDROData/HYDROData_Image.h @@ -1,12 +1,37 @@ +// Copyright (C) 2014-2015 EDF-R&D +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef HYDROData_Image_HeaderFile #define HYDROData_Image_HeaderFile #include +#ifdef WIN32 + #pragma warning ( disable: 4251 ) +#endif + #include #include +#ifdef WIN32 + #pragma warning ( default: 4251 ) +#endif + DEFINE_STANDARD_HANDLE(HYDROData_Image, HYDROData_Entity) /**\class HYDROData_Image @@ -24,6 +49,7 @@ public: { ManualGeodesic = 0, ManualCartesian, + CartesianFromFile, ReferenceImage }; @@ -52,7 +78,8 @@ public: /** * Dump Image object to Python script representation. */ - HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const; + HYDRODATA_EXPORT virtual QStringList DumpToPython( const QString& thePyScriptPath, + MapOfTreatedObjects& theTreatedObjects ) const; /** * Updates object state. @@ -62,6 +89,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 +101,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 +224,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 */ @@ -318,16 +363,16 @@ public: /** - * Marks the image as self-splitted. - * \param theFlag is true for self-splitted image + * Marks the image as self-split. + * \param theFlag is true for self-plit image */ - HYDRODATA_EXPORT void SetIsSelfSplitted(bool theFlag); + HYDRODATA_EXPORT void SetIsSelfSplit(bool theFlag); /** - * Checks that the image is self-splitted. - * \returns true if image is self-splitted + * Checks that the image is self-split. + * \returns true if image is self-split */ - HYDRODATA_EXPORT bool IsSelfSplitted() const; + HYDRODATA_EXPORT bool IsSelfSplit() const; private: