X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_PrsImage.h;h=f51ab35e69638eb20e499ea6ac23af952c1f4545;hb=de7cf9bb0a7a41d6487013c87f4a54d0664cd303;hp=c59218ff40401b430137f14eb7f2cd58b721771f;hpb=779d1c3e386947b6fb1f4807aacfaddeefe7f765;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_PrsImage.h b/src/HYDROGUI/HYDROGUI_PrsImage.h index c59218ff..f51ab35e 100644 --- a/src/HYDROGUI/HYDROGUI_PrsImage.h +++ b/src/HYDROGUI/HYDROGUI_PrsImage.h @@ -46,7 +46,7 @@ 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: @@ -59,6 +59,9 @@ public: void setIsTransformationPointPreview( const bool theState ); bool getIsTransformationPointPreview() const; + void setIsByTwoPoints( const bool theIsByTwoPoints ); + bool getIsByTwoPoints() const; + void setTransformationPointType( const int thePointType ); void setTransformationPointMap( const TransformationPointMap& theMap ); @@ -88,6 +91,10 @@ public: protected: void computeTransformationPoints(); + /** + * Show/hide a transformation point if necessary. + */ + void updateTrsfPoint( const int thePointType ); protected: QCursor* getTransformationPointCursor() const { return myTransformationPointCursor; } @@ -100,6 +107,7 @@ protected: HYDROGUI_PrsImageFrame* myPrsImageFrame; bool myIsTransformationPointPreview; + bool myIsByTwoPoints; int myTransformationPointType; TransformationPointMap myTransformationPointMap;