// 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 <ExchangePlugin.h>
#include <ModelAPI_Feature.h>
+#include <ModelAPI_Result.h>
#include <map>
-/**\class ExchangePlugin_ImportFeature
+ /**\class ExchangePlugin_ImportFeature
* \ingroup Plugins
* \brief Feature for import shapes from the external files in CAD formats.
*
/// 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<GeomAPI_Shape> theGeomShape,
- std::shared_ptr<ModelAPI_ResultBody> theResultBody);
+ std::shared_ptr<ModelAPI_ResultBody> theResultBody);
};
#endif /* IMPORT_IMPORTFEATURE_H_ */