C3D Toolkit  Kernel - 118060, Vision - 2.15.0.1825
+ Collaboration diagram for Converters Interface:

Classes

struct  C3DConverterDebugSettings
 Settings of the debug features of the C3D Converter. More...
 
struct  IProductIdMaker
 Interface of component's identifier generator. More...
 
class  IConvertorProperty3D
 Interface of converter's properties. More...
 
struct  NameProductIdMaker
 Implementation of component's identifier generator. More...
 
class  ConvConvertorProperty3D
 Pre-defined implementation of converter's properties. More...
 
class  c3d::FormatInfo
 Information about supported 3D model format. More...
 
class  ItModelDocument
 Interface of document of an assembly model or a part model. More...
 
class  C3DSymbolToItem
 Generator of text element's geometry shape. More...
 
class  C3DPmiToItem
 Generator of PMI's geometry shape. More...
 
class  C3dModelDocument
 Implementation of model document which has regular structure. More...
 
class  ItModelInstanceProperties
 Interface of properties of an instance, a subassembly or a part. More...
 
class  ItModelInstance
 Interface of the component instance. More...
 
class  ItModelAssembly
 Interface of the assembly. More...
 
class  ItModelPart
 Interface of a part. More...
 
class  c3d::C3DExchangeBuffer
 Memory buffer for data exchange. More...
 
class  IConverter3D
 Converter's interface. More...
 
struct  c3d::PluginVersionInfo
 Information about plugin version. More...
 

Enumerations

enum  eLoggingMode { elm_LoggingOff , elm_LoggingAll , elm_LoggingForId }
 Logging mode.
More...
 
enum  MbeModelExchangeFormat {
  mxf_autodetect , mxf_ACIS , mxf_IGES , mxf_JT ,
  mxf_Parasolid , mxf_STEP , mxf_STL , mxf_VRML ,
  mxf_3MF , mxf_OBJ , mxf_GRDECL , mxf_ASCIIPoint ,
  mxf_C3D , mxf_ACISBinary , mxf_ParasolidBinary
}
 Model exchange format. More...
 

Functions

MbeConvResType c3d::ImportFromFile (MbModel &model, const path_string &fileName, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Read a file of an exchange format into model. More...
 
MbeConvResType c3d::ImportFromFile (c3d::ItemSPtr &item, const path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Read a file of an exchange format into element. More...
 
MbeConvResType c3d::ImportFromFile (ItModelDocument &mDoc, const path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Read a file of an exchange format into model. More...
 
MbeConvResType c3d::ExportIntoFile (MbModel &model, const path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Write the model into an exchange format file. More...
 
MbeConvResType c3d::ExportIntoFile (MbItem &item, const path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Write the model into an exchange format file. More...
 
MbeConvResType c3d::ExportIntoFile (ItModelDocument &mDoc, const path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Write the model into an exchange format file. More...
 
MbeConvResType c3d::ImportFromBuffer (MbModel &model, const C3DExchangeBuffer &buffer, MbeModelExchangeFormat modelFormat, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Import data from buffer into model. More...
 
MbeConvResType c3d::ImportFromBuffer (c3d::ItemSPtr &item, const C3DExchangeBuffer &buffer, MbeModelExchangeFormat modelFormat, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Import data from buffer into model. More...
 
MbeConvResType c3d::ImportFromBuffer (ItModelDocument &mDoc, const C3DExchangeBuffer &buffer, MbeModelExchangeFormat modelFormat, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Import data from buffer into model. More...
 
MbeConvResType c3d::ExportIntoBuffer (MbModel &model, MbeModelExchangeFormat modelFormat, C3DExchangeBuffer &buffer, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Export model into buffer. More...
 
MbeConvResType c3d::ExportIntoBuffer (MbItem &item, MbeModelExchangeFormat modelFormat, C3DExchangeBuffer &buffer, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Export model into buffer. More...
 
MbeConvResType c3d::ExportIntoBuffer (ItModelDocument &item, MbeModelExchangeFormat modelFormat, C3DExchangeBuffer &buffer, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)
 Export model document into buffer. More...
 
std::vector< FormatInfoc3d::GetSupportedFormats ()
 Get list of supported formats. More...
 
std::vector< PluginVersionInfoc3d::GetLoadedPluginsVersions ()
 Get versions of loaded plugins. More...
 
virtual MbeConvResType IConverter3D::ImportFromFile (ItModelDocument &mDoc, const c3d::path_string &filePath, IConvertorProperty3D *prop=nullptr, IProgressIndicator *indicator=nullptr)=0
 Read a file of an exchange format into model. More...
 
virtual std::vector< c3d::FormatInfoIConverter3D::GetSupportedImportFormats () const =0
 Get list of supported formats. More...
 
virtual std::vector< c3d::FormatInfoIConverter3D::GetSupportedImportForeignFormats () const =0
 Get list of supported formats for import via the ImportForeign() method. More...
 
IConverter3DGetConverter3D ()
 Get the converter interface.
 
void ReleaseConverter3D (IConverter3D *)
 Release the converter interface.
 
IConverter3DGetConvertor3D ()
 Get the converter interface.
 
void ReleaseConvertor3D (IConverter3D *convInstance)
 Release the converter interface.
 
MbeConvResType c3d_conv_user::ImportSolid (c3d::SolidSPtr &solid, std::shared_ptr< ObContainer const > obContainer, IConvertorProperty3D *prop, IProgressIndicator *indicator=nullptr)
 Read a model document using a set of custom objects. More...
 

Detailed Description

Enumeration Type Documentation

◆ eLoggingMode

Logging mode.

Enumerator
elm_LoggingOff 

Logging disabled.

elm_LoggingAll 

Logging enabled for all objects.

elm_LoggingForId 

Logging enabled for an object with the specified id.

◆ MbeModelExchangeFormat

Model exchange format.

Enumerator
mxf_autodetect 

File extension defines format.

mxf_ACIS 

Read data from buffer as ACIS (.sat).

mxf_IGES 

Read data from buffer as IGES (.igs or .iges).

mxf_JT 

Read data from buffer as JT (.jt).

mxf_Parasolid 

Read data from buffer as Parasolid (.x_t, .xmt_txt or .xmp_txt).

mxf_STEP 

Read data from buffer as STEP (.stp or .step).

mxf_STL 

Read data from buffer as STL (.stl).

mxf_VRML 

Read data from buffer as VRML (.wrl).

mxf_3MF 

Read data from buffer as 3MF (.3mf).

mxf_OBJ 

Read data from buffer as OBJ (.obj).

mxf_GRDECL 

Read data from buffer as GRDECL (.grdecl).

mxf_ASCIIPoint 

Read data from buffer as ASCII point cloud (.txt, .asc or .xyz).

mxf_C3D 

Read data from buffer as C3D (.c3d).

mxf_ACISBinary 

Read data from buffer as binary ACIS (.sab).

mxf_ParasolidBinary 

Read data from buffer as binary Parasolid (.x_b, .xmt_bin or .xmp_bin).

Function Documentation

◆ ImportFromFile() [1/4]

MbeConvResType c3d::ImportFromFile ( MbModel model,
const path_string &  fileName,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Read a file of an exchange format into model.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for import.

Parameters
[out]model- The imported model.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromFile() [2/4]

MbeConvResType c3d::ImportFromFile ( c3d::ItemSPtr item,
const path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Read a file of an exchange format into element.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for import.

Parameters
[out]item- The imported element.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromFile() [3/4]

MbeConvResType c3d::ImportFromFile ( ItModelDocument mDoc,
const path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Read a file of an exchange format into model.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for import.

Parameters
[out]mDoc- The imported model document.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoFile() [1/3]

MbeConvResType c3d::ExportIntoFile ( MbModel model,
const path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Write the model into an exchange format file.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for export.

Parameters
[out]model- The exported model.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoFile() [2/3]

MbeConvResType c3d::ExportIntoFile ( MbItem item,
const path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Write the model into an exchange format file.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for export.

Parameters
[out]item- The exported element.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoFile() [3/3]

MbeConvResType c3d::ExportIntoFile ( ItModelDocument mDoc,
const path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Write the model into an exchange format file.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for export.

Parameters
[in]mDoc- The exported model document.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromBuffer() [1/3]

MbeConvResType c3d::ImportFromBuffer ( MbModel model,
const C3DExchangeBuffer buffer,
MbeModelExchangeFormat  modelFormat,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Import data from buffer into model.

Parameters
[out]model- The imported model.
[in]buffer- Buffer.
[in]modelFormat- Model format.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromBuffer() [2/3]

MbeConvResType c3d::ImportFromBuffer ( c3d::ItemSPtr item,
const C3DExchangeBuffer buffer,
MbeModelExchangeFormat  modelFormat,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Import data from buffer into model.

Parameters
[out]item- The imported item.
[in]buffer- Buffer.
[in]modelFormat- Model format.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromBuffer() [3/3]

MbeConvResType c3d::ImportFromBuffer ( ItModelDocument mDoc,
const C3DExchangeBuffer buffer,
MbeModelExchangeFormat  modelFormat,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Import data from buffer into model.

Parameters
[out]mDoc- The imported model document.
[in]buffer- Buffer.
[in]modelFormat- Model format.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoBuffer() [1/3]

MbeConvResType c3d::ExportIntoBuffer ( MbModel model,
MbeModelExchangeFormat  modelFormat,
C3DExchangeBuffer buffer,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Export model into buffer.

Parameters
[in]model- The exported model.
[in]modelFormat- Model format.
[out]buffer- Buffer.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoBuffer() [2/3]

MbeConvResType c3d::ExportIntoBuffer ( MbItem item,
MbeModelExchangeFormat  modelFormat,
C3DExchangeBuffer buffer,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Export model into buffer.

Parameters
[in]item- The exported item.
[in]modelFormat- Model format.
[out]buffer- Buffer.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ExportIntoBuffer() [3/3]

MbeConvResType c3d::ExportIntoBuffer ( ItModelDocument item,
MbeModelExchangeFormat  modelFormat,
C3DExchangeBuffer buffer,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)

Export model document into buffer.

Parameters
[in]mDoc- The exported model document.
[in]modelFormat- Model format.
[out]buffer- Buffer.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ GetSupportedFormats()

std::vector<FormatInfo> c3d::GetSupportedFormats ( )

Get list of supported formats.

Returns
A list of supported formats accounting the license key and presence of format-specific converter libraries.

If some plugin does not support format listing, then its formats will not be included into the list.

◆ GetLoadedPluginsVersions()

std::vector<PluginVersionInfo> c3d::GetLoadedPluginsVersions ( )

Get versions of loaded plugins.

Returns
Versions of loaded plugins.

Version value is defined by plugin implementation. If plugin does not submit its version, "n/a" is used instead.

◆ ImportFromFile() [4/4]

virtual MbeConvResType IConverter3D::ImportFromFile ( ItModelDocument mDoc,
const c3d::path_string &  filePath,
IConvertorProperty3D prop = nullptr,
IProgressIndicator indicator = nullptr 
)
pure virtual

Read a file of an exchange format into model.

The fileName argument is not used if converter properties are defined obviously, file path comes from the FullFilePath method. Otherwise default parameters corresponding ConvConvertorProperty3D implementation are used for import.

Parameters
[out]mDoc- The model.
[in]filePath- File path.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ GetSupportedImportFormats()

virtual std::vector<c3d::FormatInfo> IConverter3D::GetSupportedImportFormats ( ) const
pure virtual

Get list of supported formats.

Returns
A list of supported formats accounting the license key and presence of format-specific converter libraries.

If some plugin does not support format listing, then its formats will not be included into the list.

◆ GetSupportedImportForeignFormats()

virtual std::vector<c3d::FormatInfo> IConverter3D::GetSupportedImportForeignFormats ( ) const
pure virtual

Get list of supported formats for import via the ImportForeign() method.

Returns
A list of supported formats. The list is expected to be empty when the LoadForeignReader() has not been called or failed.

If some plugin does not support format listing, then its formats will not be included into the list.

◆ ImportSolid()

MbeConvResType c3d_conv_user::ImportSolid ( c3d::SolidSPtr solid,
std::shared_ptr< ObContainer const >  obContainer,
IConvertorProperty3D prop,
IProgressIndicator indicator = nullptr 
)

Read a model document using a set of custom objects.

Parameters
[out]solid- The imported solid.
[in]obContainer-Custom object container.
[in]prop- Implementation of converter's properties interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.
Note
EXPEREIMENTAL.