*/
void RemoveGeometryGroups();
+
+ /**
+ * Add new boundary polygon to calculation case.
+ */
+ bool AddBoundaryPolygon( HYDROData_BCPolygon theObject ) [bool ( const opencascade::handle<HYDROData_BCPolygon>& )];
+ %MethodCode
+ Handle(HYDROData_BCPolygon) aRef =
+ Handle(HYDROData_BCPolygon)::DownCast( createHandle( a0 ) );
+ if ( !aRef.IsNull() )
+ {
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::AddBoundaryPolygon( aRef ):
+ sipCpp->AddBoundaryPolygon( aRef );
+ Py_END_ALLOW_THREADS
+ }
+ %End
+
+ /**
+ * Returns all boundary polygons of calculation case.
+ */
+ HYDROData_SequenceOfObjects GetBoundaryPolygons() const;
+
+ /**
+ * Removes boundary polygon from calculation case.
+ */
+ void RemoveBoundaryPolygon( HYDROData_BCPolygon theObject )
+ [void ( const opencascade::handle<HYDROData_BCPolygon>& )];
+ %MethodCode
+ Handle(HYDROData_BCPolygon) aRef =
+ Handle(HYDROData_BCPolygon)::DownCast( createHandle( a0 ) );
+ if ( !aRef.IsNull() )
+ {
+ Py_BEGIN_ALLOW_THREADS
+ if ( sipSelfWasArg ) {
+ sipCpp->HYDROData_CalculationCase::RemoveBoundaryPolygon( aRef );
+ } else {
+ sipCpp->RemoveBoundaryPolygon( aRef );
+ }
+ Py_END_ALLOW_THREADS
+ }
+ %End
/**
* Sets reference boundary polyline object for calculation case.
*/
void RemoveBoundaryPolyline();
- void SetLandCoverMap( HYDROData_LandCoverMap theLandCoverMap ) [void ( const Handle_HYDROData_LandCoverMap& )];
+ void SetLandCoverMap( HYDROData_LandCoverMap theLandCoverMap ) [void ( const opencascade::handle<HYDROData_LandCoverMap>& )];
%MethodCode
Handle(HYDROData_LandCoverMap) aRef =
Handle(HYDROData_LandCoverMap)::DownCast( createHandle( a0 ) );
}
%End
- void SetStricklerTable( HYDROData_StricklerTable theStricklerTable ) [void ( const Handle_HYDROData_StricklerTable& )];
+ void SetStricklerTable( HYDROData_StricklerTable theStricklerTable ) [void ( const opencascade::handle<HYDROData_StricklerTable>& )];
%MethodCode
Handle(HYDROData_StricklerTable) aRef =
Handle(HYDROData_StricklerTable)::DownCast( createHandle( a0 ) );
%End
+ std::vector<int> GetStricklerTypeForPoints( const NCollection_Sequence<double>& theCoordsX,
+ const NCollection_Sequence<double>& theCoordsY ) const
+ [std::vector<int>( const NCollection_Sequence<gp_XY>& )];
+ %MethodCode
+ std::vector<gp_XY> aPnts;
+ int aLen = qMin( a0->Length(), a1->Length() );
+ for ( int i = 1; i <= aLen; ++i )
+ {
+ gp_XY aPnt( a0->Value( i ), a1->Value( i ) );
+ aPnts.push_back( aPnt );
+ }
+ std::vector<int> aRes;
+ Py_BEGIN_ALLOW_THREADS
+ aRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::GetStricklerTypeForPoints( aPnts ) :
+ sipCpp->GetStricklerTypeForPoints( aPnts );
+ Py_END_ALLOW_THREADS
+ sipRes = new std::vector<int>( aRes );
+ %End
+
+
/**
* Returns altitudes for given points on given zone.
* \param thePoints the points to examine