// Copyright (C) 2007-2013 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 // // 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. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // %ExportedHeaderCode #include %End class HYDROData_Zone : HYDROData_Entity { %TypeHeaderCode #include %End %ConvertToSubClassCode switch ( sipCpp->GetKind() ) { case KIND_ZONE: sipClass = sipClass_HYDROData_Zone; break; default: // We don't recognise the type. sipClass = NULL; } %End public: // Enumeration of mergin types for conflict bathymetries enum MergeBathymetriesType { Merge_ZMIN, // The minimum values Merge_ZMAX, // The maximum values Merge_Object // Only one bathymetry will be taken into account }; public: /** * Sets the merging type for conflict bathymetries. * By default it is set to Merge_ZMIN. */ void SetMergeType( const MergeBathymetriesType& theType ); /** * Returns the merging type for conflict bathymetries. */ MergeBathymetriesType GetMergeType() const; /** * Sets the reference bathymetry to resolve the conflict. * This object is used only in case of "Merge_Object" merge type. */ void SetMergeBathymetry( HYDROData_Bathymetry theBathymetry ) [void (const Handle_HYDROData_Bathymetry&)]; %MethodCode Handle(HYDROData_Bathymetry) aRefBath = Handle(HYDROData_Bathymetry)::DownCast( createHandle( a0 ) ); if ( !aRefBath.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::SetMergeBathymetry( aRefBath ) : sipCpp->SetMergeBathymetry( aRefBath ); Py_END_ALLOW_THREADS } %End /** * Returns the reference bathymetry to resolve the conflict. */ HYDROData_Bathymetry GetMergeBathymetry() const [Handle_HYDROData_Bathymetry ()]; %MethodCode Handle(HYDROData_Bathymetry) aRefBath; Py_BEGIN_ALLOW_THREADS aRefBath = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetMergeBathymetry() : sipCpp->GetMergeBathymetry(); Py_END_ALLOW_THREADS sipRes = (HYDROData_Bathymetry*)createPointer( aRefBath ); %End /** * Removes the reference bathymetry for resolving the conflict. */ void RemoveMergeBathymetry(); /** * dd new one geometry object for zone. */ void AddGeometryObject( HYDROData_Object theRegion ) [void (const Handle_HYDROData_Object&)]; %MethodCode Handle(HYDROData_Object) aGeomObj = Handle(HYDROData_Object)::DownCast( createHandle( a0 ) ); if ( !aGeomObj.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::AddGeometryObject( aGeomObj ) : sipCpp->AddGeometryObject( aGeomObj ); Py_END_ALLOW_THREADS } %End /** * Returns all geometry objects of zone. */ //HYDROData_SequenceOfObjects GetGeometryObjects() const; /** * Removes all geometry objects from zone. */ void RemoveGeometryObjects(); protected: /** * Creates new object in the internal data structure. Use higher level objects * to create objects with real content. */ HYDROData_Zone(); /** * Destructs properties of the object and object itself, removes it from the document. */ ~HYDROData_Zone(); };