#include <Graphic3d_AspectFillArea3d.hxx>
#include <Graphic3d_MaterialAspect.hxx>
+#include <HYDROData_Channel.h>
#include <HYDROData_Document.h>
#include <HYDROData_Image.h>
#include <HYDROData_ImmersibleZone.h>
HYDROGUI_Shape::~HYDROGUI_Shape()
{
- erase();
+ erase( false );
if ( !myShape.IsNull() )
myShape.Nullify();
QColor aFillingColor = aStream->GetFillingColor();
QColor aBorderColor = aStream->GetBorderColor();
+ setFillingColor( aFillingColor, false, false );
+ setBorderColor( aBorderColor, false, false );
+ }
+ else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Channel) ) )
+ {
+ Handle(HYDROData_Channel) aChannel =
+ Handle(HYDROData_Channel)::DownCast( myObject );
+
+ TopoDS_Face aChannelShape = TopoDS::Face( aChannel->GetTopShape() );
+
+ setShape( aChannelShape, false, false );
+
+ QColor aFillingColor = aChannel->GetFillingColor();
+ QColor aBorderColor = aChannel->GetBorderColor();
+
setFillingColor( aFillingColor, false, false );
setBorderColor( aBorderColor, false, false );
}