20 #ifndef SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
21 #define SRC_EXCHANGEAPI_EXCHANGEAPI_IMPORT_H_
24 #include "ExchangeAPI.h"
28 #include <ExchangePlugin_ImportFeature.h>
30 #include <ModelHighAPI_Interface.h>
31 #include <ModelHighAPI_Macro.h>
32 #include <ModelHighAPI_Reference.h>
33 #include <ModelHighAPI_Selection.h>
52 const std::string & theFilePath);
57 const std::string & theFilePath,
58 const std::string & theBuffer);
63 const std::string & theFilePath,
64 const bool theScalInterUnits,
65 const bool theMaterials,
93 void setParameters(const std::
string & theFilePath,
94 const
bool theScalInterUnits,
95 const
bool theMaterials,
111 const std::
string & theFilePath);
118 PyObject* theBuffer);
125 const std::
string & theFilePath,
126 const
bool theScalInterUnits,
127 const
bool theMaterials,
128 const
bool theColor);
136 const std::
string & theFilePath,
154 const std::string & theFilePath);
180 ImportImagePtr addImportImage(const std::shared_ptr<
ModelAPI_Document> & thePart,
181 const std::
string & theFilePath);
Interface for Import feature.
Definition: ExchangeAPI_Import.h:146
virtual ~ExchangeAPI_Import_Image()=default
Destructor.
Interface for Import feature.
Definition: ExchangeAPI_Import.h:43
virtual std::shared_ptr< ModelAPI_AttributeString > importType() const
import type
Definition: ExchangeAPI_Import.h:86
virtual std::shared_ptr< ModelAPI_AttributeBoolean > scalInterUnits() const
Scale internationals units.
Definition: ExchangeAPI_Import.h:86
ExchangeAPI_Import(const std::shared_ptr< ModelAPI_Feature > &theFeature)
Constructor without values.
Definition: ExchangeAPI_Import.cpp:43
virtual ~ExchangeAPI_Import()
Destructor.
Definition: ExchangeAPI_Import.cpp:84
virtual std::shared_ptr< ModelAPI_AttributeString > memoryBuffer() const
Bytes.
Definition: ExchangeAPI_Import.h:86
virtual std::shared_ptr< ModelAPI_AttributeString > stepFilePath() const
step File path
Definition: ExchangeAPI_Import.h:86
virtual void dump(ModelHighAPI_Dumper &theDumper) const
Dump wrapped feature.
Definition: ExchangeAPI_Import.cpp:118
virtual std::shared_ptr< ModelAPI_AttributeBoolean > colors() const
Colors.
Definition: ExchangeAPI_Import.h:86
void setFilePath(const std::string &theFilePath)
Set point values.
Definition: ExchangeAPI_Import.cpp:104
virtual std::shared_ptr< ModelAPI_AttributeBoolean > materials() const
Materials.
Definition: ExchangeAPI_Import.h:86
virtual std::shared_ptr< ModelAPI_AttributeString > filePath() const
File path.
Definition: ExchangeAPI_Import.h:86
static const std::string & FILE_PATH_ID()
attribute name of file path
Definition: ExchangePlugin_ImportFeature.h:42
static const std::string & STEP_MATERIALS_ID()
attribute name of step materiels
Definition: ExchangePlugin_ImportFeature.h:141
static const std::string & ID()
Feature kind.
Definition: ExchangePlugin_ImportFeature.h:111
static const std::string & STEP_COLORS_ID()
attribute name of step colors
Definition: ExchangePlugin_ImportFeature.h:147
static const std::string & MEMORY_BUFFER_ID()
attribute memory buffer
Definition: ExchangePlugin_ImportFeature.h:153
static const std::string & STEP_FILE_PATH_ID()
attribute name of file path
Definition: ExchangePlugin_ImportFeature.h:123
static const std::string & STEP_SCALE_INTER_UNITS_ID()
attribute name of step Scale to International System Units
Definition: ExchangePlugin_ImportFeature.h:135
static const std::string & IMPORT_TYPE_ID()
Feature kind.
Definition: ExchangePlugin_ImportFeature.h:117
static const std::string & ID()
Feature kind.
Definition: ExchangePlugin_ImportFeature.h:201
Attribute that contains boolean value.
Definition: ModelAPI_AttributeBoolean.h:31
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Document for internal data structure of any object storage.
Definition: ModelAPI_Document.h:52
Dump engine for the model.
Definition: ModelHighAPI_Dumper.h:81
Base class for feature interfaces.
Definition: ModelHighAPI_Interface.h:42
Class for filling ModelAPI_AttributeReference.
Definition: ModelHighAPI_Reference.h:41
ImportPtr addImportXAOMem(const std::shared_ptr< ModelAPI_Document > &thePart, PyObject *theBuffer)
Create Import feature to import XAO data from bytes buffer.
Definition: ExchangeAPI_Import.cpp:192
ImportPtr addImport(const std::shared_ptr< ModelAPI_Document > &thePart, const std::string &theFilePath)
Create Import feature.
Definition: ExchangeAPI_Import.cpp:184
void importPart(const std::shared_ptr< ModelAPI_Document > &thePart, const std::string &theFilePath, const ModelHighAPI_Reference &theAfterThis=ModelHighAPI_Reference())
Import features from the file to the document after the current feature (or to the end).
Definition: ExchangeAPI_Import.cpp:212
ImportPtr addImportSTEP(const std::shared_ptr< ModelAPI_Document > &thePart, const std::string &theFilePath, const bool theScalInterUnits, const bool theMaterials, const bool theColor)
Create Import Step feature.
Definition: ExchangeAPI_Import.cpp:200