Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rectangle correction to have coincidence with point/line selected for the first point...
[modules/shaper.git]
/
src
/
ExchangePlugin
/
ExchangePlugin_ImportFeature.h
diff --git
a/src/ExchangePlugin/ExchangePlugin_ImportFeature.h
b/src/ExchangePlugin/ExchangePlugin_ImportFeature.h
index b1fc310add5dbbae09f14ab85d9955e69fd972e1..d7cf695b438675fe9afb7454f1929f84d55e1e04 100644
(file)
--- a/
src/ExchangePlugin/ExchangePlugin_ImportFeature.h
+++ b/
src/ExchangePlugin/ExchangePlugin_ImportFeature.h
@@
-1,5
+1,9
@@
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
// 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_
#ifndef EXCHANGEPLUGIN_IMPORTFEATURE_H_
#define EXCHANGEPLUGIN_IMPORTFEATURE_H_
@@
-9,30
+13,31
@@
#include <map>
#include <map>
- /**\class ExchangePlugin_ImportFeature
+/**
+ * \class ExchangePlugin_ImportFeature
* \ingroup Plugins
* \brief Feature for import shapes from the external files in CAD formats.
*
* \ingroup Plugins
* \brief Feature for import shapes from the external files in CAD formats.
*
- * The
se
t of supported formats is defined in the configuration file.
+ * The
lis
t of supported formats is defined in the configuration file.
*/
class ExchangePlugin_ImportFeature : public ModelAPI_Feature
{
public:
*/
class ExchangePlugin_ImportFeature : public ModelAPI_Feature
{
public:
- ///
Extrusion
kind
+ ///
Feature
kind
inline static const std::string& ID()
{
static const std::string MY_IMPORT_ID("Import");
return MY_IMPORT_ID;
}
inline static const std::string& ID()
{
static const std::string MY_IMPORT_ID("Import");
return MY_IMPORT_ID;
}
- /// attribute name of
referenced face
+ /// attribute name of
file path
inline static const std::string& FILE_PATH_ID()
{
inline static const std::string& FILE_PATH_ID()
{
- static const std::string MY_FILE_PATH_ID("
import_file_selector
");
+ static const std::string MY_FILE_PATH_ID("
file_path
");
return MY_FILE_PATH_ID;
}
return MY_FILE_PATH_ID;
}
- ///
d
efault constructor
+ ///
D
efault constructor
EXCHANGEPLUGIN_EXPORT ExchangePlugin_ImportFeature();
EXCHANGEPLUGIN_EXPORT ExchangePlugin_ImportFeature();
- ///
d
efault destructor
+ ///
D
efault destructor
EXCHANGEPLUGIN_EXPORT virtual ~ExchangePlugin_ImportFeature();
/// Returns the unique kind of a feature
EXCHANGEPLUGIN_EXPORT virtual ~ExchangePlugin_ImportFeature();
/// Returns the unique kind of a feature
@@
-44,10
+49,8
@@
class ExchangePlugin_ImportFeature : public ModelAPI_Feature
/// Computes or recomputes the results
EXCHANGEPLUGIN_EXPORT virtual void execute();
/// 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:
/// Performs the import of the file
protected:
/// Performs the import of the file