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
Fix for the bug #42: point C is not activated, but point C is shown in preview in...
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_PrsImage.h
diff --git
a/src/HYDROGUI/HYDROGUI_PrsImage.h
b/src/HYDROGUI/HYDROGUI_PrsImage.h
index 651c787cf08df9a6e85e2434fa97b215068b17e6..f51ab35e69638eb20e499ea6ac23af952c1f4545 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_PrsImage.h
+++ b/
src/HYDROGUI/HYDROGUI_PrsImage.h
@@
-46,21
+46,31
@@
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 setIsByTwoPoints( const bool theIsByTwoPoints );
+ bool getIsByTwoPoints() const;
+
+ void setTransformationPointType( const int thePointType );
void setTransformationPointMap( const TransformationPointMap& theMap );
const TransformationPointMap& getTransformationPointMap() const { return myTransformationPointMap; }
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;
public:
// from QGraphicsItem
virtual QRectF boundingRect() const;
@@
-81,23
+91,27
@@
public:
protected:
void computeTransformationPoints();
protected:
void computeTransformationPoints();
+ /**
+ * Show/hide a transformation point if necessary.
+ */
+ void updateTrsfPoint( const int thePointType );
protected:
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 myTransformationPointMode;
+ bool myIsByTwoPoints;
+ int myTransformationPointType;
TransformationPointMap myTransformationPointMap;
private:
TransformationPointMap myTransformationPointMap;
private:
- QCursor* myHighlightCursor;
QCursor* myTransformationPointCursor;
};
QCursor* myTransformationPointCursor;
};