From 0a42b233068ebf27fb3bd10b96a503252697bd55 Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 17 May 2005 11:27:35 +0000 Subject: [PATCH] Introduce Set/Get Offset function in Prs3d --- src/VISU_I/VISU_Prs3d_i.cc | 6 ++++++ src/VISU_I/VISU_Prs3d_i.hh | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.39.2