X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Image.h;h=fcbb657fa81cdcefc4d57f3074025818f36a0e94;hb=545854182f0363f61284d5abe34c3627d4f3b088;hp=90dec9c3210a6cba816ac85c1825ddb53e46b65c;hpb=c874fabf131c86df3f867c094ed3a2a0813a784e;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Image.h b/src/HYDROData/HYDROData_Image.h index 90dec9c3..fcbb657f 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 }; @@ -62,6 +88,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 +100,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 +223,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 */ @@ -343,12 +387,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(); };