]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix problem with coloring of the objects in the wireframe mode in VTK viewer (GEOM)
authorvsr <vsr@opencascade.com>
Sat, 7 Jun 2008 07:35:01 +0000 (07:35 +0000)
committervsr <vsr@opencascade.com>
Sat, 7 Jun 2008 07:35:01 +0000 (07:35 +0000)
src/OBJECT/GEOM_Actor.cxx
src/OBJECT/GEOM_Actor.h

index 6771efaa98b2f5b0204e744a13ce48c505e138e6..54c88608e2155d03e115e83f896cd1f2da33a1c5 100644 (file)
@@ -573,7 +573,6 @@ void GEOM_Actor::Render(vtkRenderer *ren, vtkMapper *theMapper)
     aMatrix->Delete();    
   } else
     this->Device->Render(ren, theMapper);
-
 }
 
 void GEOM_Actor::ReleaseGraphicsResources(vtkWindow *)
@@ -671,7 +670,11 @@ vtkFloatingPointType GEOM_Actor::GetOpacity()
 void GEOM_Actor::SetColor(vtkFloatingPointType r,vtkFloatingPointType g,vtkFloatingPointType b)
 {
   // enk:tested OK
-  myShadingFaceProp->SetColor(r,g,b);
+  myShadingFaceProp->SetColor(r,g,b);                          // shading color (Shading)
+  myIsolatedEdgeActor->GetProperty()->SetColor(r,g,b);         // standalone edge color (Wireframe)
+  myVertexActor->GetProperty()->SetColor(r,g,b);               // vertex actor (Shading/Wireframe)
+  myOneFaceEdgeActor->GetProperty()->SetColor(r,g,b);          // standalone face edge color (Wireframe)
+  mySharedEdgeActor->GetProperty()->SetColor(r,g,b);           // share edge color (Wireframe)
 }
 
 void GEOM_Actor::GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b)
@@ -684,7 +687,7 @@ void GEOM_Actor::GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFlo
   b = aRGB[2];
 }
 
-bool GEOM_Actor::IsInfinite()
+bool GEOM_Actor::IsInfinitive()
 {
   return (bool)(myShape.Infinite());
 }
index 3ecdce2b6ce227d1528d457f482d03f033822c60..b37692e75f15347b4324efd273c3958d55b67665 100644 (file)
@@ -124,7 +124,7 @@ public:
   void SetColor(vtkFloatingPointType r,vtkFloatingPointType g,vtkFloatingPointType b);
   void GetColor(vtkFloatingPointType& r,vtkFloatingPointType& g,vtkFloatingPointType& b);
 
-  virtual bool IsInfinite();
+  virtual bool IsInfinitive();
 
   // overloaded functions
   //! To map current selection to VTK representation