X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Zone.sip;h=b3eb9bac5bee845f0238240d2f77766b16e13c65;hb=474c2cd65280d793f1c81ca528bc92e1cff988e6;hp=2b4f4d7da1ddc61c8c9bad433cd609009931d8f6;hpb=8543e637cbb4ae48998c596241fce567a729eb67;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Zone.sip b/src/HYDROPy/HYDROData_Zone.sip index 2b4f4d7d..b3eb9bac 100644 --- a/src/HYDROPy/HYDROData_Zone.sip +++ b/src/HYDROPy/HYDROData_Zone.sip @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -24,13 +24,9 @@ #include %End -class HYDROData_Zone : HYDROData_Entity +class HYDROData_Zone : public HYDROData_Entity { -%TypeHeaderCode -#include -%End - %ConvertToSubClassCode switch ( sipCpp->GetKind() ) { @@ -44,6 +40,10 @@ class HYDROData_Zone : HYDROData_Entity } %End +%TypeHeaderCode +#include +%End + public: // Enumeration of mergin types for conflict altitudes @@ -131,13 +131,27 @@ public: /** * Returns all geometry objects of zone. */ - //HYDROData_SequenceOfObjects GetGeometryObjects() const; + HYDROData_SequenceOfObjects GetGeometryObjects() const; /** * Removes all geometry objects from zone. */ void RemoveGeometryObjects(); + + /** + * Sets the interpolator for zone. By default it is NULL and original + * interpolation algorithms are used to calculate points altitudes. + * If you set interpolator it won't be stored in the data model structure, + * it will be deleted during that time as this zone will be freed. + */ + void SetInterpolator( HYDROData_IInterpolator* theInter ); + + /** + * * Returns the interpolator of zone object. + */ + HYDROData_IInterpolator* GetInterpolator() const; + protected: /**