From: epa Date: Wed, 25 Oct 2006 08:30:48 +0000 (+0000) Subject: PAL 13374 - EDF PAL 274:VISU easily visualize element edges X-Git-Tag: V3_2_3pre1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b1689bc0a2fec8c7e11deeba73f6d57cfd71e4e4;p=modules%2Fgui.git PAL 13374 - EDF PAL 274:VISU easily visualize element edges --- 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;