/* * Copyright (C) 2010 Thorsten Liebig (Thorsten.Liebig@gmx.de) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef ENGINE_INTERFACE_FDTD_H #define ENGINE_INTERFACE_FDTD_H #include #include "Common/engine_interface_base.h" #include "operator.h" #include "engine.h" class Engine_Interface_FDTD : public Engine_Interface_Base { public: Engine_Interface_FDTD(); Engine_Interface_FDTD(Operator* op, Engine* eng); virtual ~Engine_Interface_FDTD(); //! Set the FDTD operator virtual void SetOperator(Operator* op) {m_Op=op;} //! Set the FDTD engine virtual void SetEngine(Engine* eng) {m_Eng=eng;} //! Get the FDTD engine in case direct access is needed. Direct access is not recommended! const Engine* GetFDTDEngine() const {return m_Eng;} //! Get the FDTD operator in case direct access is needed. Direct access is not recommended! const Operator* GetFDTDOperator() const {return m_Op;} virtual double* GetEField(const unsigned int* pos, double* out) const; virtual double* GetHField(const unsigned int* pos, double* out) const; protected: Operator* m_Op; Engine* m_Eng; }; #endif // ENGINE_INTERFACE_FDTD_H