X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PrsImage.h;h=c5d57981ad8c57084b82adb4f98e829d99d06b15;hb=5cae7e874afd2fc1b6f61023e8ebd33a933db3c7;hp=c09ad6927dd5abcac30ccea783433b6b95efac9d;hpb=f8418d6cb7ab14ad2563bf2aa8fa70b4451c9173;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PrsImage.h b/src/HYDROGUI/HYDROGUI_PrsImage.h index c09ad692..c5d57981 100644 --- a/src/HYDROGUI/HYDROGUI_PrsImage.h +++ b/src/HYDROGUI/HYDROGUI_PrsImage.h @@ -46,21 +46,28 @@ public: typedef QMapIterator< int, TransformationPoint > TransformationPointMapIterator; public: - HYDROGUI_PrsImage( const Handle(HYDROData_Object)& theObject ); + HYDROGUI_PrsImage( const Handle(HYDROData_Entity)& theObject ); virtual ~HYDROGUI_PrsImage(); public: void setImage( const QImage& theImage ); QImage getImage() const; + void setCaption( const QString& theCaption ); + QString getCaption() const; + void setIsTransformationPointPreview( const bool theState ); bool getIsTransformationPointPreview() const; - void setTransformationPointMode( const int theMode ); + void setTransformationPointType( const int thePointType ); void setTransformationPointMap( const TransformationPointMap& theMap ); const TransformationPointMap& getTransformationPointMap() const { return myTransformationPointMap; } + void updateTransformationPoint( const int thePointType, + const bool theIsY, + const int theValue ); + public: // from QGraphicsItem virtual QRectF boundingRect() const; @@ -89,10 +96,11 @@ protected: QImage myImage; QGraphicsPixmapItem* myPixmapItem; + QGraphicsSimpleTextItem* myCaptionItem; HYDROGUI_PrsImageFrame* myPrsImageFrame; bool myIsTransformationPointPreview; - int myTransformationPointMode; + int myTransformationPointType; TransformationPointMap myTransformationPointMap; private: