From b1689bc0a2fec8c7e11deeba73f6d57cfd71e4e4 Mon Sep 17 00:00:00 2001 From: epa Date: Wed, 25 Oct 2006 08:30:48 +0000 Subject: [PATCH] PAL 13374 - EDF PAL 274:VISU easily visualize element edges --- src/SVTK/SVTK_DeviceActor.cxx | 14 +++++++++++--- src/SVTK/SVTK_DeviceActor.h | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/SVTK/SVTK_DeviceActor.cxx b/src/SVTK/SVTK_DeviceActor.cxx index 1d8add18f..abee0506c 100644 --- a/src/SVTK/SVTK_DeviceActor.cxx +++ b/src/SVTK/SVTK_DeviceActor.cxx @@ -293,7 +293,6 @@ SVTK_DeviceActor myShrinkFilter->SetShrinkFactor(theValue); } - /*! Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on) param theMode - new mode @@ -307,13 +306,17 @@ SVTK_DeviceActor switch(myRepresentation){ case Points : case Surface : - myProperty->DeepCopy(GetProperty()); + myProperty->SetAmbient(GetProperty()->GetAmbient()); + myProperty->SetDiffuse(GetProperty()->GetDiffuse()); + myProperty->SetSpecular(GetProperty()->GetSpecular()); } switch(theMode){ case Points : case Surface : - GetProperty()->DeepCopy(myProperty); + GetProperty()->SetAmbient(myProperty->GetAmbient()); + GetProperty()->SetDiffuse(myProperty->GetDiffuse()); + GetProperty()->SetSpecular(myProperty->GetSpecular()); break; default: GetProperty()->SetAmbient(1.0); @@ -490,3 +493,8 @@ SVTK_DeviceActor factor = myPolygonOffsetFactor; units = myPolygonOffsetUnits; } + +vtkDataSetMapper* SVTK_DeviceActor::GetDataSetMapper() +{ + return myMapper; +} diff --git a/src/SVTK/SVTK_DeviceActor.h b/src/SVTK/SVTK_DeviceActor.h index c68829de9..98c5e6d6d 100644 --- a/src/SVTK/SVTK_DeviceActor.h +++ b/src/SVTK/SVTK_DeviceActor.h @@ -172,6 +172,8 @@ class SVTK_EXPORT SVTK_DeviceActor: public vtkLODActor void Render(vtkRenderer *, vtkMapper *); + vtkDataSetMapper* GetDataSetMapper(); + protected: SVTK::Representation::Type myRepresentation; vtkProperty *myProperty; -- 2.39.2