// Copyright (C) 2014-2015 EDF-R&D // 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, 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 // 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 : public HYDROData_Entity { %ConvertToSubClassCode switch ( sipCpp->GetKind() ) { case KIND_ZONE: sipClass = sipClass_HYDROData_Zone; break; default: // We don't recognise the type. sipClass = NULL; } %End %TypeHeaderCode #include %End public: // Enumeration of mergin types for conflict altitudes enum MergeType { Merge_ZMIN, // The minimum values Merge_ZMAX, // The maximum values Merge_Object // Only one altitude will be taken into account }; public: void SetMergeType( const MergeType& theType ); MergeType GetMergeType() const; void SetMergeAltitude( HYDROData_IAltitudeObject theAltitude ) [void (const Handle_HYDROData_IAltitudeObject&)]; %MethodCode Handle(HYDROData_IAltitudeObject) aRefAltitude = Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) ); if ( !aRefAltitude.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::SetMergeObject( aRefAltitude ) : sipCpp->SetMergeObject( aRefAltitude ); Py_END_ALLOW_THREADS } %End HYDROData_IAltitudeObject GetMergeAltitude() const [Handle_HYDROData_IAltitudeObject ()]; %MethodCode Handle(HYDROData_IAltitudeObject) aRefAltitude; Py_BEGIN_ALLOW_THREADS Handle(HYDROData_Entity) aRefObject = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetMergeObject() : sipCpp->GetMergeObject(); aRefAltitude = Handle(HYDROData_IAltitudeObject)::DownCast( aRefObject ); Py_END_ALLOW_THREADS sipRes = (HYDROData_IAltitudeObject*)createPointer( aRefAltitude ); %End void RemoveMergeAltitude(); %MethodCode Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::RemoveMergeObject() : sipCpp->RemoveMergeObject(); Py_END_ALLOW_THREADS %End void SetMergeObject( HYDROData_Entity theObject ) [void (const Handle_HYDROData_Entity&)]; %MethodCode Handle(HYDROData_Entity) aRefObject = Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) ); if ( !aRefObject.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::SetMergeObject( aRefObject ) : sipCpp->SetMergeObject( aRefObject ); Py_END_ALLOW_THREADS } %End HYDROData_Entity GetMergeObject() const [Handle_HYDROData_Entity ()]; %MethodCode Handle(HYDROData_Entity) aRefObject; Py_BEGIN_ALLOW_THREADS aRefObject = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetMergeObject() : sipCpp->GetMergeObject(); Py_END_ALLOW_THREADS sipRes = (HYDROData_Entity*)createPointer( aRefObject ); %End void RemoveMergeObject(); void AddObject( HYDROData_Entity theObject ) [void (const Handle_HYDROData_Entity&)]; %MethodCode Handle(HYDROData_Entity) anObj = Handle(HYDROData_Entity)::DownCast( createHandle( a0 ) ); if ( !anObj.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::AddObject( anObj ) : sipCpp->AddObject( anObj ); Py_END_ALLOW_THREADS } %End HYDROData_SequenceOfObjects GetObjects() const; void RemoveObjects(); void SetInterpolator( HYDROData_IInterpolator* theInter ); HYDROData_IInterpolator* GetInterpolator() const; protected: HYDROData_Zone(); ~HYDROData_Zone(); };