X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ImportFeature.h;h=480da6a308c794975b9fb13dbb0f50100e6939b7;hb=6239c1880d74ea741d49e06ab9d24b1d9e63a0dc;hp=24bd6964f503b3fdb5d0b6a5db912082f10f52b3;hpb=db0e21ea2f1117dd9af3320009ba8b50dc2e828b;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h index 24bd6964f..480da6a30 100644 --- a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h @@ -1,14 +1,19 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D +// File: ExchangePlugin_ImportFeature.h +// Created: Aug 28, 2014 +// Author: Sergey BELASH + #ifndef EXCHANGEPLUGIN_IMPORTFEATURE_H_ #define EXCHANGEPLUGIN_IMPORTFEATURE_H_ #include #include +#include #include -/**\class ExchangePlugin_ImportFeature + /**\class ExchangePlugin_ImportFeature * \ingroup Plugins * \brief Feature for import shapes from the external files in CAD formats. * @@ -43,19 +48,17 @@ class ExchangePlugin_ImportFeature : public ModelAPI_Feature /// Computes or recomputes the results EXCHANGEPLUGIN_EXPORT virtual void execute(); - EXCHANGEPLUGIN_EXPORT virtual bool isInHistory() - { - return true; - } + /// Reimplemented from ModelAPI_Feature::isPreviewNeeded(). Returns false. + EXCHANGEPLUGIN_EXPORT virtual bool isPreviewNeeded() const { return false; } protected: - /// POerforms the import of the file + /// Performs the import of the file EXCHANGEPLUGIN_EXPORT bool importFile(const std::string& theFileName); private: /// Loads Naming data structure to the document void loadNamingDS(std::shared_ptr theGeomShape, - std::shared_ptr theResultBody); + std::shared_ptr theResultBody); }; #endif /* IMPORT_IMPORTFEATURE_H_ */