// 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_IInterpolator * \brief The base class to provide interface for interpolation. */ class HYDROData_IInterpolator { %TypeHeaderCode #include %End public: /** * Public empty constructor. */ HYDROData_IInterpolator(); /** * Public virtual destructor. */ virtual ~HYDROData_IInterpolator(); public: /** * Returns the altitude value for given point. * Reimplement this method in order to change the interpolation algorithm. */ virtual double GetAltitudeForPoint( const double theCoordX, const double theCoordY ) const; public: /** * Sets the altitude object for interpolation. */ void SetAltitudeObject( HYDROData_IAltitudeObject theAltitude ) [void ( const opencascade::handle& )]; %MethodCode Handle(HYDROData_IAltitudeObject) anAltitude = Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) ); if ( !anAltitude.IsNull() ) { Py_BEGIN_ALLOW_THREADS sipSelfWasArg ? sipCpp->HYDROData_IInterpolator::SetAltitudeObject( anAltitude ): sipCpp->SetAltitudeObject( anAltitude ); Py_END_ALLOW_THREADS } %End /** * Returns the altitude object for interpolation. */ HYDROData_IAltitudeObject GetAltitudeObject() const [opencascade::handle ()]; %MethodCode Handle(HYDROData_IAltitudeObject) aRes; Py_BEGIN_ALLOW_THREADS aRes = sipSelfWasArg ? sipCpp->HYDROData_IInterpolator::GetAltitudeObject() : sipCpp->GetAltitudeObject(); Py_END_ALLOW_THREADS sipRes = (HYDROData_IAltitudeObject*)createPointer( aRes ); %End };