X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Obstacle.cxx;h=b7c8eb54c8eb67c8bcd3b8e14ce4e3228773e869;hb=7810759dad7d7f4552ad1008af73112509256813;hp=5a108d6ed36a968f714cbce20954af2ecf0390ba;hpb=2b8ea8694fde14b8536ace837c4e3b87cbb88b93;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Obstacle.cxx b/src/HYDROData/HYDROData_Obstacle.cxx index 5a108d6e..b7c8eb54 100644 --- a/src/HYDROData/HYDROData_Obstacle.cxx +++ b/src/HYDROData/HYDROData_Obstacle.cxx @@ -107,6 +107,11 @@ void HYDROData_Obstacle::Update() HYDROData_Entity::Update(); } +bool HYDROData_Obstacle::IsHas2dPrs() const +{ + return true; +} + TopoDS_Shape HYDROData_Obstacle::GetTopShape() const { return getTopShape(); @@ -477,3 +482,8 @@ bool HYDROData_Obstacle::getTranslation( double& theDx, double& theDy, double& t return true; } +void HYDROData_Obstacle::UpdateLocalCS( double theDx, double theDy ) +{ + Translate( theDx, theDy, 0 ); +} +