From f67fa6ecaf97f419c0b6c1c90a50f2295fc68632 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 21 May 2007 07:38:45 +0000 Subject: [PATCH] To fix problems with "AllCurvesInverted", "UseAbsoluteLength" CutLines parameters --- src/VISU_I/VISU_CutLines_i.cc | 15 +++++++++++++++ src/VISU_I/VISU_CutLines_i.hh | 4 ++++ 2 files changed, 19 insertions(+) diff --git a/src/VISU_I/VISU_CutLines_i.cc b/src/VISU_I/VISU_CutLines_i.cc index 1602d29a..dc066034 100644 --- a/src/VISU_I/VISU_CutLines_i.cc +++ b/src/VISU_I/VISU_CutLines_i.cc @@ -105,6 +105,21 @@ CutLines_i(EPublishInStudyMode thePublishInStudyMode) : {} +//--------------------------------------------------------------- +void +VISU::CutLines_i +::SameAs(const Prs3d_i* theOrigin) +{ + TSuperClass::SameAs(theOrigin); + + if(const CutLines_i* aPrs3d = dynamic_cast(theOrigin)){ + CutLines_i* anOrigin = const_cast(aPrs3d); + myUseAbsLength = anOrigin->IsUseAbsoluteLength(); + CopyCurvesInverted(anOrigin->GetCurvesInverted()); + } +} + + //--------------------------------------------------------------- /*! Copy map to /a myMapCurvesInverted. * \param theCurves - map diff --git a/src/VISU_I/VISU_CutLines_i.hh b/src/VISU_I/VISU_CutLines_i.hh index a4cc8999..21a97641 100644 --- a/src/VISU_I/VISU_CutLines_i.hh +++ b/src/VISU_I/VISU_CutLines_i.hh @@ -241,6 +241,10 @@ namespace VISU Restore(SALOMEDS::Study_ptr theStudy, const Storable::TRestoringMap& theMap); + virtual + void + SameAs(const Prs3d_i* theOrigin); + //! Extends VISU_ColoredPrs3d_i::CreateActor virtual VISU_Actor* -- 2.39.2