// Purpose : Constructor
//=======================================================================
HYDROGUI_VTKPrsShape::HYDROGUI_VTKPrsShape( const Handle(HYDROData_Entity)& theObject )
-: HYDROGUI_VTKPrs( theObject )
+: HYDROGUI_VTKPrs( theObject ),
+myDisplayMode( GEOM_Actor::eWireframe )
{
}
{
GEOM_Actor* anActor = GEOM_Actor::New();
anActor->SetShape( myTopoShape, VTK_MIN_DEFLECTION );
+ anActor->setDisplayMode( myDisplayMode );
anActor->setIO( getIO() );
AddObject( anActor );
setWire( aPolylineWire, false, false );
} else {
myTopoShape = aPolylineShape;
+ myDisplayMode = GEOM_Actor::eWireframe;
}
}
setWire( aPolylineWire, false, false );
} else {
myTopoShape = aPolylineShape;
+ myDisplayMode = GEOM_Actor::eWireframe;
}
}
}
void HYDROGUI_VTKPrsShape::setWire( const TopoDS_Wire& theWire,
- const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theToDisplay,
+ const bool theIsUpdateViewer )
{
myTopoShape = theWire;
+ myDisplayMode = GEOM_Actor::eWireframe;
}
void HYDROGUI_VTKPrsShape::setFaces( const TopoDS_Compound& theWires,
- const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theToDisplay,
+ const bool theIsUpdateViewer )
{
TopExp_Explorer anExp( theWires, TopAbs_WIRE );
TopoDS_Compound aCompound;
}
myTopoShape = aCompound;
+ myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Wire& theWire,
- const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theToDisplay,
+ const bool theIsUpdateViewer )
{
BRepBuilderAPI_MakeFace aFaceBuilder( theWire, Standard_True );
aFaceBuilder.Build();
}
void HYDROGUI_VTKPrsShape::setFace( const TopoDS_Face& theFace,
- const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theToDisplay,
+ const bool theIsUpdateViewer )
{
myTopoShape = theFace;
+ myDisplayMode = GEOM_Actor::eShading;
}
void HYDROGUI_VTKPrsShape::setShape( const TopoDS_Shape& theShape,
- const bool theToDisplay,
- const bool theIsUpdateViewer )
+ const bool theToDisplay,
+ const bool theIsUpdateViewer )
{
myTopoShape = theShape;
+ myDisplayMode = GEOM_Actor::eShading;
}