2 #include "HYDROData_Channel.h"
4 #include "HYDROData_Document.h"
6 #include <TopoDS_Shape.hxx>
10 #define PYTHON_CHANNEL_ID "KIND_CHANNEL"
12 IMPLEMENT_STANDARD_HANDLE(HYDROData_Channel,HYDROData_ArtificialObject)
13 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Channel,HYDROData_ArtificialObject)
16 HYDROData_Channel::HYDROData_Channel()
17 : HYDROData_ArtificialObject()
21 HYDROData_Channel::~HYDROData_Channel()
25 QStringList HYDROData_Channel::DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const
29 Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( this );
30 if ( aDocument.IsNull() )
33 QString aDocName = aDocument->GetDocPyName();
34 QString aChannelName = GetName();
36 aResList << QString( "%1 = %2.CreateObject( %3 );" )
37 .arg( aChannelName ).arg( aDocName ).arg( PYTHON_CHANNEL_ID );
38 aResList << QString( "%1.SetName( \"%2\" );" )
39 .arg( aChannelName ).arg( aChannelName );
40 aResList << QString( "" );
47 TopoDS_Shape HYDROData_Channel::GetTopShape() const
53 TopoDS_Shape HYDROData_Channel::GetShape3D() const