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;
void computeTransformationPoints();
protected:
- QCursor* getHighlightCursor() const { return myHighlightCursor; }
QCursor* getTransformationPointCursor() const { return myTransformationPointCursor; }
protected:
QImage myImage;
QGraphicsPixmapItem* myPixmapItem;
+ QGraphicsSimpleTextItem* myCaptionItem;
HYDROGUI_PrsImageFrame* myPrsImageFrame;
bool myIsTransformationPointPreview;
- int myTransformationPointMode;
+ int myTransformationPointType;
TransformationPointMap myTransformationPointMap;
private:
- QCursor* myHighlightCursor;
QCursor* myTransformationPointCursor;
};