2 #include "HYDROData_Digue.h"
4 #include "HYDROData_Document.h"
6 #include <TopoDS_Shape.hxx>
11 #define PYTHON_DIGUE_ID "KIND_DIGUE"
13 IMPLEMENT_STANDARD_HANDLE(HYDROData_Digue,HYDROData_Channel)
14 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Digue,HYDROData_Channel)
17 HYDROData_Digue::HYDROData_Digue()
22 HYDROData_Digue::~HYDROData_Digue()
26 QStringList HYDROData_Digue::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
30 Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
31 if ( aDocument.IsNull() )
34 QString aDocName = aDocument->GetDocPyName();
35 QString aDigueName = GetName();
37 aResList << QString( "%1 = %2.CreateObject( %3 );" )
38 .arg( aDigueName ).arg( aDocName ).arg( PYTHON_DIGUE_ID );
39 aResList << QString( "%1.SetName( \"%2\" );" )
40 .arg( aDigueName ).arg( aDigueName );
41 aResList << QString( "" );
48 QColor HYDROData_Digue::DefaultFillingColor()
50 return QColor( Qt::red );
53 QColor HYDROData_Digue::DefaultBorderColor()
55 return QColor( Qt::transparent );
58 QColor HYDROData_Digue::getDefaultFillingColor() const
60 return DefaultFillingColor();
63 QColor HYDROData_Digue::getDefaultBorderColor() const
65 return DefaultBorderColor();