#include <HYDROData_Calculation.h>
%End
-class HYDROData_Calculation : HYDROData_Object
+class HYDROData_Calculation : HYDROData_Entity
{
%TypeHeaderCode
%End
- /**
- * Replace the geometry object for calculation case.
- */
- void SetGeometryObject( const int theIndex,
- HYDROData_Object theObject ) [void (const int, const Handle_HYDROData_Object&)];
- %MethodCode
-
- Handle(HYDROData_Object) aGeomObj =
- Handle(HYDROData_Object)::DownCast( createHandle( a1 ) );
- if ( !aGeomObj.IsNull() )
- {
- Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetGeometryObject( a0, aGeomObj ) :
- sipCpp->SetGeometryObject( a0, aGeomObj );
- Py_END_ALLOW_THREADS
- }
-
- %End
-
- /**
- * Sets the geometry object for calculation case.
- */
- //void SetGeometryObjects( const HYDROData_SequenceOfObjects& theObjects );
-
- /**
- * Returns geometry object of calculation case by index.
- */
- HYDROData_Object GetGeometryObject( const int theIndex ) const [Handle_HYDROData_Object (const int)];
- %MethodCode
-
- Handle(HYDROData_Object) aGeomObj;
-
- Py_BEGIN_ALLOW_THREADS
- aGeomObj = sipSelfWasArg ? sipCpp->HYDROData_Calculation::GetGeometryObject( a0 ) :
- sipCpp->GetGeometryObject( a0 );
- Py_END_ALLOW_THREADS
-
- sipRes = (HYDROData_Object*)createPointer( aGeomObj );
-
- %End
-
/**
* Returns all geometry objects of calculation case.
*/
/**
* Add new one region for calculation case.
- * The new region is not added into the list of reference regions.
+ * The new region is added into the list of reference regions.
*/
HYDROData_Region AddNewRegion() [Handle_HYDROData_Region ()];
%MethodCode
%End
- /**
- * Removes all child regions from calculation case.
- */
- void RemoveChildRegions();
-
-
- /**
- * Returns number of reference regions for calculation case.
- */
- int NbRegions() const;
/**
* Add new one reference region for calculation case.
%End
- /**
- * Replace the reference region for calculation case.
- */
- void SetRegion( const int theIndex,
- HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)];
- %MethodCode
-
- Handle(HYDROData_Region) aRegion =
- Handle(HYDROData_Region)::DownCast( createHandle( a1 ) );
- if ( !aRegion.IsNull() )
- {
- Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Calculation::SetRegion( a0, aRegion ) :
- sipCpp->SetRegion( a0, aRegion );
- Py_END_ALLOW_THREADS
- }
-
- %End
-
- /**
- * Inserts the reference region for calculation case before given index.
- */
- void InsertRegion( const int theBeforeIndex,
- HYDROData_Region theRegion ) [void (const int, const Handle_HYDROData_Region&)];
- %MethodCode
-
- Handle(HYDROData_Region) aRegion =
- Handle(HYDROData_Region)::DownCast( createHandle( a1 ) );
- if ( !aRegion.IsNull() )
- {
- Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Calculation::InsertRegion( a0, aRegion ) :
- sipCpp->InsertRegion( a0, aRegion );
- Py_END_ALLOW_THREADS
- }
-
- %End
-
- /**
- * Sets reference regions for calculation case.
- */
- //void SetRegions( const HYDROData_SequenceOfObjects& theRegions );
-
- /**
- * Returns reference region of calculation case by index.
- */
- HYDROData_Region GetRegion( const int theIndex ) const [Handle_HYDROData_Region (const int)];
- %MethodCode
-
- Handle(HYDROData_Region) aRefRegion;
-
- Py_BEGIN_ALLOW_THREADS
- aRefRegion = sipSelfWasArg ? sipCpp->HYDROData_Region::GetRegion( a0 ) :
- sipCpp->GetRegion( a0 );
- Py_END_ALLOW_THREADS
-
- sipRes = (HYDROData_Region*)createPointer( aRefRegion );
-
- %End
-
/**
* Returns all reference regions of calculation case.
*/
/**
* Removes reference region from calculation case.
*/
- void RemoveRegion( HYDROData_Region theRegion ) const [void (const Handle_HYDROData_Region&)];
+ void RemoveRegion( HYDROData_Region theRegion ) [void (const Handle_HYDROData_Region&)];
%MethodCode
Handle(HYDROData_Region) aRegion =
%End
- /**
- * Removes region from calculation case by it index.
- */
- void RemoveRegion( const int theIndex );
-
/**
* Removes all reference regions from calculation case.
*/