From: vsv Date: Tue, 17 May 2005 11:27:35 +0000 (+0000) Subject: Introduce Set/Get Offset function in Prs3d X-Git-Tag: V2_2_0_VISU_improvement_2005-05-27~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0a42b233068ebf27fb3bd10b96a503252697bd55;p=modules%2Fvisu.git Introduce Set/Get Offset function in Prs3d --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 2711fb59..45c01285 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -194,3 +194,9 @@ void VISU::Prs3d_i::GetOffset(float* theOffsets) theOffsets[1] = myOffset[1]; theOffsets[2] = myOffset[2]; } +void VISU::Prs3d_i::GetOffset(float& theDx, float& theDy, float& theDz) +{ + theDx = myOffset[0]; + theDy = myOffset[1]; + theDz = myOffset[2]; +} diff --git a/src/VISU_I/VISU_Prs3d_i.hh b/src/VISU_I/VISU_Prs3d_i.hh index 136a6e4e..135d9621 100644 --- a/src/VISU_I/VISU_Prs3d_i.hh +++ b/src/VISU_I/VISU_Prs3d_i.hh @@ -78,9 +78,10 @@ namespace VISU{ void GetBounds(float aBounds[6]); void SetOffset(const float* theOffsets); - void SetOffset(float theDx, float theDy, float theDz); + virtual void SetOffset(float theDx, float theDy, float theDz); void GetOffset(float* theOffsets); + virtual void GetOffset(float& theDx, float& theDy, float& theDz); virtual const char* GetComment() const = 0; virtual QString GenerateName() = 0;