Salome HOME
Image from QImage object converted to Image_PixMap object without save/load temp...
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ShapeImage.h
index f028dd757851f726af4f76ca5fbc24e333d0dbd5..ed7347f8824e8d1c64509ca2a775c304d09d5453 100644 (file)
@@ -25,8 +25,9 @@
 
 #include <HYDROGUI_Shape.h>
 
+#include <QPolygonF>
+
 class Handle_HYDROData_Image;
-class QImage;
 
 class HYDROGUI_ShapeImage : public HYDROGUI_Shape
 {
@@ -36,25 +37,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