// 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_Domain : HYDROData_Object /Abstract/ { %TypeHeaderCode #include %End %ConvertToSubClassCode // HYDROData_Object sub-classes provide a unique kind ID. switch ( sipCpp->GetKind() ) { case KIND_REGION: sipClass = sipClass_HYDROData_Region; break; case KIND_ZONE: sipClass = sipClass_HYDROData_Zone; break; case KIND_UNKNOWN: sipClass = sipClass_HYDROData_Object; break; default: // We don't recognise the type. sipClass = NULL; } %End public: /** * Sets filling color for zone. */ void SetFillingColor( const QColor& theColor ); /** * Returns filling color of zone. */ QColor GetFillingColor() const; /** * Sets border color for zone. */ void SetBorderColor( const QColor& theColor ); /** * Returns border color of zone. */ QColor GetBorderColor() const; /** * Returns number of bathymetry objects for zone. */ int NbBathymetries() const; /** * Add reference bathymetry object for zone. */ void AddBathymetry( 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_Domain::AddBathymetry( aRefBath ) : sipCpp->AddBathymetry( aRefBath ); Py_END_ALLOW_THREADS } %End /** * Change reference bathymetry object with given index for zone. */ void SetBathymetry( const int theIndex, HYDROData_Bathymetry theBathymetry ) [void (const int, const Handle_HYDROData_Bathymetry&)]; %MethodCode Handle(HYDROData_Bathymetry) aRefBath = Handle(HYDROData_Bathymetry)::DownCast( createHandle( a1 ) ); if ( !aRefBath.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Domain::SetBathymetry( a0, aRefBath ) : sipCpp->SetBathymetry( a0, aRefBath ); Py_END_ALLOW_THREADS } %End /** * Returns reference bathymetry object of zone by it index. */ HYDROData_Bathymetry GetBathymetry( const int theIndex ) const [Handle_HYDROData_Bathymetry (const int)]; %MethodCode Handle(HYDROData_Bathymetry) aRefBath; Py_BEGIN_ALLOW_THREADS aRefBath = sipSelfWasArg ? sipCpp->HYDROData_Domain::GetBathymetry( a0 ) : sipCpp->GetBathymetry( a0 ); Py_END_ALLOW_THREADS sipRes = (HYDROData_Bathymetry*)createPointer( aRefBath ); %End /** * Returns list of all reference bathymetry objects of zone. */ //HYDROData_SequenceOfObjects GetBathymetries() const; /** * Clear list of bathymetry objects of zone. */ void RemoveBathymetries(); protected: /** * Creates new object in the internal data structure. Use higher level objects * to create objects with real content. */ HYDROData_Domain(); /** * Destructs properties of the object and object itself, removes it from the document. */ ~HYDROData_Domain(); };