Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Image positioning by two points.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_PrsImage.h
diff --git
a/src/HYDROGUI/HYDROGUI_PrsImage.h
b/src/HYDROGUI/HYDROGUI_PrsImage.h
index 8f385185a869ad4441e566082b71415a87e5613e..c5d57981ad8c57084b82adb4f98e829d99d06b15 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_PrsImage.h
+++ b/
src/HYDROGUI/HYDROGUI_PrsImage.h
@@
-46,19
+46,28
@@
public:
typedef QMapIterator< int, TransformationPoint > TransformationPointMapIterator;
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;
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 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; }
const TransformationPointMap& getTransformationPointMap() const { return myTransformationPointMap; }
+ void updateTransformationPoint( const int thePointType,
+ const bool theIsY,
+ const int theValue );
+
public:
// from QGraphicsItem
virtual QRectF boundingRect() const;
public:
// from QGraphicsItem
virtual QRectF boundingRect() const;
@@
-81,21
+90,20
@@
protected:
void computeTransformationPoints();
protected:
void computeTransformationPoints();
protected:
- QCursor* getHighlightCursor() const { return myHighlightCursor; }
QCursor* getTransformationPointCursor() const { return myTransformationPointCursor; }
protected:
QImage myImage;
QGraphicsPixmapItem* myPixmapItem;
QCursor* getTransformationPointCursor() const { return myTransformationPointCursor; }
protected:
QImage myImage;
QGraphicsPixmapItem* myPixmapItem;
+ QGraphicsSimpleTextItem* myCaptionItem;
HYDROGUI_PrsImageFrame* myPrsImageFrame;
bool myIsTransformationPointPreview;
HYDROGUI_PrsImageFrame* myPrsImageFrame;
bool myIsTransformationPointPreview;
- int myTransformationPoint
Mod
e;
+ int myTransformationPoint
Typ
e;
TransformationPointMap myTransformationPointMap;
private:
TransformationPointMap myTransformationPointMap;
private:
- QCursor* myHighlightCursor;
QCursor* myTransformationPointCursor;
};
QCursor* myTransformationPointCursor;
};