//================================================================
void HYDROGUI_VTKPrsShape::compute()
{
+ HYDROGUI_VTKPrs::compute();
+
if ( !getObject().IsNull() )
{
buildShape();
if ( !myTopoShape.IsNull() )
{
- HYDROGUI_Actor* anActor = HYDROGUI_Actor::New();
+ HYDROGUI_Actor* anActor = getActor<HYDROGUI_Actor>(this);
anActor->SetShape( myTopoShape, VTK_MIN_DEFLECTION );
anActor->setDisplayMode( myDisplayMode );
anActor->setIO( getIO() );
- AddObject( anActor );
-
- //double bounds[6];
- //anActor->GetBounds( bounds );
-
- anActor->Delete();
}
}
}
}
myTopoShape = aCompound;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Wire& theWire,
const bool theIsUpdateViewer )
{
myTopoShape = theFace;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setShape( const TopoDS_Shape& theShape,
const bool theIsUpdateViewer )
{
myTopoShape = theShape;
- myDisplayMode = GEOM_Actor::eShading;
+ //myDisplayMode = GEOM_Actor::eShading;
}