Salome HOME
refs #568: Land Cover: a draft of data model and implementation of dialog box and...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ShapeImage.h
index f028dd757851f726af4f76ca5fbc24e333d0dbd5..e9cf07a4dd26e721c216bea9a71aeb63a36aeeac 100644 (file)
@@ -1,8 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// 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
@@ -25,8 +21,9 @@
 
 #include <HYDROGUI_Shape.h>
 
+#include <QPolygonF>
+
 class Handle_HYDROData_Image;
-class QImage;
 
 class HYDROGUI_ShapeImage : public HYDROGUI_Shape
 {
@@ -36,25 +33,12 @@ public:
                        const int                             theZLayer = -1 );
   virtual ~HYDROGUI_ShapeImage();
 
-  virtual void               setTextureFileName( const QString& theFileName,
-                                                 const bool     theToDisplay = true,
-                                                 const bool     theIsUpdateViewer = true );
-  virtual QString            getTextureFileName() const;
-
-  virtual void               update( bool isUpdateViewer,
-                                     bool isDeactivateSelection );
+  virtual void                         update( bool isUpdateViewer, bool isDeactivateSelection );
 
 protected:
   virtual Handle_AIS_InteractiveObject createShape() const;
-
-private:
-  static QString             generateTextureFileName( const Handle(HYDROData_Entity)& theImageObj );
-  void                       removeTextureFile() const;
-
-  static QImage              reduceTexture( const QImage& theImage, const int theSizeLimit );
-
-private:
-  QString myTextureFileName;
+  Handle(Image_PixMap)                 imagePixMap( const Handle_HYDROData_Image& ) const;
+  QPolygonF                            imageContour( const Handle_HYDROData_Image& ) const;
 };
 
 #endif