From: apo Date: Mon, 21 May 2007 07:38:45 +0000 (+0000) Subject: To fix problems with "AllCurvesInverted", "UseAbsoluteLength" CutLines parameters X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f67fa6ecaf97f419c0b6c1c90a50f2295fc68632;p=modules%2Fvisu.git To fix problems with "AllCurvesInverted", "UseAbsoluteLength" CutLines parameters --- 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*