C3D Toolkit  Kernel - 105435, Vision - 121811.105435
+ Collaboration diagram for Converters Interface:

Namespaces

 c3d
 C3D namespace declaration.
 

Classes

class  IConvertorProperty3D
 Interface of converter's properties. More...
 
class  IConvertor3D
 Converter's interface. 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  ItModelDetail
 Interface of a part. More...
 
class  ItModelDocument
 Interface of document of an assembly model or a part model. More...
 
class  ConvModelDocument
 Implementation of the interface of a document of an assembly model or a part model. More...
 
class  RegularModelDocument
 Implementation of model document which has regular structure. More...
 
class  ConvConvertorProperty3D
 Simple implementation of converter's properties. More...
 

Functions

IConvertor3DGetConvertor3D ()
 Get the converter interface.
 
MbeConvResType ASCIIPointCloudRead (IConvertorProperty3D &prop, ItModelDocument &idoc, IProgressIndicator *indicator=0)
 Read a file of ASCII Point Cloud format. More...
 
MbeConvResType ASCIIPointCloudWrite (IConvertorProperty3D &prop, ItModelDocument &idoc, IProgressIndicator *indicator=0)
 Write a point cloud file of ASCII format. More...
 
MbeConvResType c3d::ImportFromFile (MbModel &model, const path_string &fileName, IConvertorProperty3D *prop=0, IProgressIndicator *indicator=0)
 Read a file of an exchange format into model. More...
 
MbeConvResType c3d::ImportFromFile (ItModelDocument &mDoc, const path_string &filePath, IConvertorProperty3D *prop, IProgressIndicator *indicator)
 Read a file of an exchange format into model. More...
 
MbeConvResType c3d::ExportIntoFile (MbModel &model, const path_string &filePath, IConvertorProperty3D *prop=0, IProgressIndicator *indicator=0)
 Write the model into an exchange format file. More...
 
MbeConvResType c3d::ImportFromBuffer (MbModel &model, const char *data, size_t length, MbeModelExchangeFormat modelFormat, IConvertorProperty3D *prop=0, IProgressIndicator *indicator=0)
 Import data from buffer into model. More...
 
MbeConvResType c3d::ExportIntoBuffer (MbModel &model, MbeModelExchangeFormat modelFormat, char *&data, size_t &length, IConvertorProperty3D *prop=0, IProgressIndicator *indicator=0)
 Export model into buffer. More...
 

Detailed Description

Function Documentation

◆ ASCIIPointCloudRead()

MbeConvResType ASCIIPointCloudRead ( IConvertorProperty3D prop,
ItModelDocument idoc,
IProgressIndicator indicator = 0 
)

Read a file of ASCII Point Cloud format.

Parameters
[in]prop- Implementation of converter's properties interface.
[in]idoc- Implementation of document interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ASCIIPointCloudWrite()

MbeConvResType ASCIIPointCloudWrite ( IConvertorProperty3D prop,
ItModelDocument idoc,
IProgressIndicator indicator = 0 
)

Write a point cloud file of ASCII format.

Parameters
[in]prop- Implementation of converter's properties interface.
[in]idoc- Implementation of document interface.
[in]indicator- The process progress indicator.
Returns
Code of the operation termination.

◆ ImportFromFile() [1/2]

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

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 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/2]

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

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.

◆ ExportIntoFile()

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

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 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.

◆ ImportFromBuffer()

MbeConvResType c3d::ImportFromBuffer ( MbModel model,
const char *  data,
size_t  length,
MbeModelExchangeFormat  modelFormat,
IConvertorProperty3D prop = 0,
IProgressIndicator indicator = 0 
)

Import data from buffer into model.

Parameters
[out]model- the model.
[in]data- Buffer.
[in]length- Buffer size.
[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()

MbeConvResType c3d::ExportIntoBuffer ( MbModel model,
MbeModelExchangeFormat  modelFormat,
char *&  data,
size_t &  length,
IConvertorProperty3D prop = 0,
IProgressIndicator indicator = 0 
)

Export model into buffer.

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