]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix problems with "AllCurvesInverted", "UseAbsoluteLength" CutLines parameters
authorapo <apo@opencascade.com>
Mon, 21 May 2007 07:38:45 +0000 (07:38 +0000)
committerapo <apo@opencascade.com>
Mon, 21 May 2007 07:38:45 +0000 (07:38 +0000)
src/VISU_I/VISU_CutLines_i.cc
src/VISU_I/VISU_CutLines_i.hh

index 1602d29a6ae8bc9d787fc64ddff4cc0579ce487b..dc066034a37c3260d35ae38b774f4c299eb80d2d 100644 (file)
@@ -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<const CutLines_i*>(theOrigin)){
+    CutLines_i* anOrigin = const_cast<CutLines_i*>(aPrs3d);
+    myUseAbsLength = anOrigin->IsUseAbsoluteLength();
+    CopyCurvesInverted(anOrigin->GetCurvesInverted());
+  }
+}
+
+
 //---------------------------------------------------------------
 /*! Copy map to /a myMapCurvesInverted.
  * \param theCurves - map
index a4cc8999f7d68ba2d8c5a7aacb3e5c780991cd6d..21a97641498e7b8d5318f81a9c167de665053ed5 100644 (file)
@@ -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*