X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FInitializationPlugin%2FInitializationPlugin_Plugin.h;h=53d95b059591129711a34a9706a5f17e352752ce;hb=db25cb9e9be0ce3e2332141f7f2f47f088956bea;hp=64d4c951f60be5c23921d54807c20d49722525d6;hpb=b12bbd2a734142a2596a91c729b6670060b6b7e9;p=modules%2Fshaper.git diff --git a/src/InitializationPlugin/InitializationPlugin_Plugin.h b/src/InitializationPlugin/InitializationPlugin_Plugin.h index 64d4c951f..53d95b059 100644 --- a/src/InitializationPlugin/InitializationPlugin_Plugin.h +++ b/src/InitializationPlugin/InitializationPlugin_Plugin.h @@ -1,14 +1,33 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// Copyright (C) 2014-2017 CEA/DEN, 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 +// #ifndef INITIALIZATIONPLUGIN_PLUGIN_H_ #define INITIALIZATIONPLUGIN_PLUGIN_H_ #include - #include #include +class InitializationPlugin_EvalListener; + /**\class InitializationPlugin_Plugin * \ingroup Plugins * This class is represents a plugin. @@ -40,7 +59,7 @@ class InitializationPlugin_Plugin : public Events_Listener /// \param theX - X coordinate /// \param theY - Y coordinate /// \param theZ - Z coordinate - FeaturePtr createPoint(DocumentPtr theDoc, const std::string& theName, + FeaturePtr createPoint(DocumentPtr theDoc, const std::string& theName, double theX, double theY, double theZ); /// Creates an axis which is started from origin point @@ -49,8 +68,11 @@ class InitializationPlugin_Plugin : public Events_Listener /// \param theX - X of direction point /// \param theY - Y of direction point /// \param theZ - Z of direction point - FeaturePtr createAxis(DocumentPtr theDoc, FeaturePtr theOrigin, + FeaturePtr createAxis(DocumentPtr theDoc, FeaturePtr theOrigin, double theX, double theY, double theZ); + + private: + std::shared_ptr myEvalListener; }; #endif