// 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_Domain { %TypeHeaderCode #include %End %ConvertToSubClassCode if ( !Handle(HYDROData_Zone)::DownCast( sipCpp ).IsNull() ) sipClass = sipClass_HYDROData_Zone; else sipClass = NULL; %End public: const ObjectKind GetKind() const; public: /** * Sets reference polyline object for zone. */ void SetPolyline( HYDROData_Polyline thePolyline ) [void (const Handle_HYDROData_Polyline&)]; %MethodCode Handle(HYDROData_Polyline) aRefPolyline = Handle(HYDROData_Polyline)::DownCast( createHandle( a0 ) ); if ( !aRefPolyline.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_Zone::SetPolyline( aRefPolyline ) : sipCpp->SetPolyline( aRefPolyline ); Py_END_ALLOW_THREADS } %End /** * Returns reference polyline object of zone. */ HYDROData_Polyline GetPolyline() const [Handle_HYDROData_Polyline ()]; %MethodCode Handle(HYDROData_Polyline) aRefPolyline; Py_BEGIN_ALLOW_THREADS aRefPolyline = sipSelfWasArg ? sipCpp->HYDROData_Zone::GetPolyline() : sipCpp->GetPolyline(); Py_END_ALLOW_THREADS sipRes = (HYDROData_Polyline*)createPointer( aRefPolyline ); %End /** * Remove reference polyline object of zone. */ void RemovePolyline(); /** * Returns the painter path. The painter path is construct by polyline */ QPainterPath GetPainterPath() const; 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(); };