X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_VTKPrsShape.cxx;h=4d7bd19e177998e1217192e5bc8218a3517a9e80;hb=f34b90e9e4e02ba65419134d5d37a2e42aecfabf;hp=3a841ee33cbc9c67aabb2437ab98256d1321a0a6;hpb=4120ff72aa360a8d1b74b262a619f63bb84a37ce;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx index 3a841ee3..4d7bd19e 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsShape.cxx @@ -55,7 +55,7 @@ #include -#include +#include #include #include @@ -88,19 +88,18 @@ HYDROGUI_VTKPrsShape::~HYDROGUI_VTKPrsShape() //================================================================ void HYDROGUI_VTKPrsShape::compute() { + HYDROGUI_VTKPrs::compute(); + if ( !getObject().IsNull() ) { buildShape(); if ( !myTopoShape.IsNull() ) { - GEOM_Actor* anActor = GEOM_Actor::New(); + HYDROGUI_Actor* anActor = getActor(this); anActor->SetShape( myTopoShape, VTK_MIN_DEFLECTION ); anActor->setDisplayMode( myDisplayMode ); anActor->setIO( getIO() ); - AddObject( anActor ); - - anActor->Delete(); } } } @@ -301,7 +300,7 @@ void HYDROGUI_VTKPrsShape::setFaces( const TopoDS_Compound& theWires, } myTopoShape = aCompound; - myDisplayMode = GEOM_Actor::eShading; + //myDisplayMode = GEOM_Actor::eShading; } void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Wire& theWire, @@ -322,7 +321,7 @@ void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Face& theFace, const bool theIsUpdateViewer ) { myTopoShape = theFace; - myDisplayMode = GEOM_Actor::eShading; + //myDisplayMode = GEOM_Actor::eShading; } void HYDROGUI_VTKPrsShape::setShape( const TopoDS_Shape& theShape, @@ -330,5 +329,5 @@ void HYDROGUI_VTKPrsShape::setShape( const TopoDS_Shape& theShape, const bool theIsUpdateViewer ) { myTopoShape = theShape; - myDisplayMode = GEOM_Actor::eShading; + //myDisplayMode = GEOM_Actor::eShading; }