]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
PAL 13374 - EDF PAL 274:VISU easily visualize element edges
authorepa <epa@opencascade.com>
Wed, 25 Oct 2006 08:30:48 +0000 (08:30 +0000)
committerepa <epa@opencascade.com>
Wed, 25 Oct 2006 08:30:48 +0000 (08:30 +0000)
src/SVTK/SVTK_DeviceActor.cxx
src/SVTK/SVTK_DeviceActor.h

index 1d8add18ff615b089c9852301eaaf41a60cde19c..abee0506c645e1155fa46e387f3e5c7ab2b23379 100644 (file)
@@ -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;
+}
index c68829de92886477771cefaa1d7fee2e7e668d42..98c5e6d6dc7a9ce38195a014f36d903b8042f88a 100644 (file)
@@ -172,6 +172,8 @@ class SVTK_EXPORT SVTK_DeviceActor: public vtkLODActor
   void
   Render(vtkRenderer *, vtkMapper *);
 
+  vtkDataSetMapper* GetDataSetMapper();
+
  protected:
   SVTK::Representation::Type myRepresentation;
   vtkProperty *myProperty;