From: enk Date: Wed, 9 Jan 2008 14:08:44 +0000 (+0000) Subject: Fix for Bug IPAL17725: X-Git-Tag: for_M2008_07022008~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d3703226ee0b475ac38d60f662a89350ab502225;p=modules%2Fgeom.git Fix for Bug IPAL17725: TC71: shapes in shading selected in VTK become in wireframe --- diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index 5331a3729..6771efaa9 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -306,11 +306,6 @@ SetVisibility(int theVisibility) this->myHighlightActor->SetVisibility(theVisibility && (myIsSelected || myIsPreselected)); -// if(myDisplayMode == (int)eShading) -// this->myHighlightActor->SetInput(myShadingFaceSource->GetOutput(),false); -// else -// this->myHighlightActor->SetInput(myAppendFilter->GetOutput(),false); - myShadingFaceActor->SetVisibility(theVisibility && (myDisplayMode == (int)eShading) && (!myIsSelected || !myIsPreselected)); myWireframeFaceActor->SetVisibility(theVisibility && (myDisplayMode ==(int)eWireframe) && !myIsSelected); @@ -508,7 +503,7 @@ void GEOM_Actor::SetShadingProperty(vtkProperty* Prop) } -void GEOM_Actor::Render(vtkRenderer *ren, vtkMapper *Mapper) +void GEOM_Actor::Render(vtkRenderer *ren, vtkMapper *theMapper) { #ifdef MYDEBUG cout << "GEOM_Actor::Render"<Property) { // force creation of a property this->GetProperty(); @@ -574,10 +569,11 @@ void GEOM_Actor::Render(vtkRenderer *ren, vtkMapper *Mapper) vtkMatrix4x4 *aMatrix = vtkMatrix4x4::New(); this->GetMatrix(ren->GetActiveCamera(), aMatrix); this->Device->SetUserMatrix(aMatrix); - this->Device->Render(ren,this->Mapper); + this->Device->Render(ren,theMapper); aMatrix->Delete(); } else - this->Device->Render(ren, this->Mapper); + this->Device->Render(ren, theMapper); + } void GEOM_Actor::ReleaseGraphicsResources(vtkWindow *) @@ -653,7 +649,7 @@ void GEOM_Actor::SubShapeOff() void GEOM_Actor::highlight(bool highlight) { #ifdef MYDEBUG - cout << "GEOM_Actor::highlight highlight="<