2 #include "HYDROData_Region.h"
4 #include <TNaming_Builder.hxx>
5 #include <TNaming_NamedShape.hxx>
10 #define PYTHON_REGION_ID "KIND_REGION"
13 IMPLEMENT_STANDARD_HANDLE(HYDROData_Region, HYDROData_Domain)
14 IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Region, HYDROData_Domain)
17 HYDROData_Region::HYDROData_Region()
21 HYDROData_Region::~HYDROData_Region()
25 void HYDROData_Region::SetFace( const TopoDS_Face& theFace )
27 TNaming_Builder aBuilder( myLab );
28 aBuilder.Generated( theFace );
31 TopoDS_Face HYDROData_Region::Face() const
33 Handle(TNaming_NamedShape) aNamedShape;
34 if( myLab.FindAttribute( TNaming_NamedShape::GetID(), aNamedShape ) )
35 return TopoDS::Face( aNamedShape->Get() );
39 QString HYDROData_Region::getPythonKindId() const
41 return QString( PYTHON_REGION_ID );