C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
ConvConvertorProperty3D Class Reference

Pre-defined implementation of converter's properties. More...

#include <conv_exchange_settings.h>

+ Inheritance diagram for ConvConvertorProperty3D:
+ Collaboration diagram for ConvConvertorProperty3D:

Classes

struct  LogRecord
 Converter message data. More...
 

Public Member Functions

 ConvConvertorProperty3D ()
 Constructor.
 
const std::string GetDocumentName () const override
 Destructor. More...
 
const c3d::path_string FullFilePath () const override
 Get file name for converting.
 
bool IsFileAscii () const override
 Whether the file is a text file.
 
long int GetFormatVersion () const override
 Get the version of format for export.
 
bool IsOutOnlySurfaces () const override
 Whether to export only surfaces (introduced for work with converter IGES ).
 
bool IsAssembling () const override
 Whether the document for export is an assembly.
 
bool GetIoPermission (MbeIOPermiss nPermission) const override
 Get the value of permission for import-export of objects of a certain type.
 
void GetIoPermissions (std::vector< bool > &ioPermissions) const override
 Get values of permission for import-export of objects of certain types.
 
void SetIoPermission (MbeIOPermiss nPermission, bool isSet) override
 Set permission for import-export of objects of a certain type.
 
bool GetPropertyString (MbeConverterStrings nString, std::string &propertyString) const override
 Get the value of a certain string for the converter.
 
void SetPropertyString (MbeConverterStrings nString, const std::string &propertyString) override
 Set the value of a certain string for the converter.
 
eTextForm GetAnnotationTextRepresentation () const override
 Text representation in annotation objects.
 
bool ExportComponentsSeparately () const override
 Export components into separate files ( if provided in format). More...
 
MbPlacement3D GetOriginLocation () const override
 Get the location, the model is placed in.
 
bool ReplaceLocationsToRight () const override
 Replace components' placements to right-oriented.
 
bool EnableAutoStitch (double &) const override
 If surfaces should be stitched automatically. More...
 
double LengthUnitsFactor () const override
 Get the factor of the length units to millimeters.
 
double AppLengthUnitsFactor () const override
 Get the factor of the length units to millimeters in the application model.

 
void LogReport (ptrdiff_t id, eMsgType msgType, eMsgDetail msgText) override
 Make a record in the converter report. More...
 
MbStepData TesselationParameters () const override
 Get data for step calculation during triangulation (for STL, VRML only).
 
MbStepData LOD0TesselationParameters () const override
 Get data for step calculation during triangulation of LOD0 (for JTonly).
 
bool DualSeams () const override
 Whether to keep coincident points of seams (for STL, VRML only).
 
void DualSeams (bool)
 Whether to keep coincident points of seams (for STL, VRML only).
 
C3DConverterDebugSettings GetDebugSettings () const override
 Get the settings of debug info.
 
bool JoinSimilarFaces () const override
 Whether to join similar faces.
 
bool AddRemovedFacesAsShells () const override
 Whether to add removed faces as shells.
 
SPtr< IProductIdMakerProductIdentifierGenerator () const override
 Get generator of one-line product identifier.
 
SPtr< IC3DCharEncodingTransformerGetUserCharEncodingTransformer () const override
 Get user string transformer.
 
- Public Member Functions inherited from IConvertorProperty3D
virtual DEPRECATE_DECLARE bool ImportComponentsWithColoredReplica ()
 Create colored replicas of components on import.
 

Public Attributes

std::string docName
 Document name.

 
c3d::path_string fileName
 File name.
 
bool fileASCII
 Export to text file (if format supports binary one).
 
bool exportIGESTopology
 The version of format for export. More...
 
std::vector< bool > ioPermissions
 Type objects filter.
 
SPtr< IC3DCharEncodingTransformeruserEncodingTransformer
 User string transformer.
 
std::map< MbeConverterStrings, std::string > propertyStrings
 Specific values of documents properties.
 
eTextForm annotTextReprSTEP
 Text representation in annotation items.
 
MbPlacement3D originLocation
 Own placement of the document.
 
bool replaceLocationsToRight
 Force replacement of locations to right ones.
 
bool enableAutostitch
 Automatically stitch surfaces into shells.
 
double autostitchPrecision
 Stitch precision.
 
bool showMessages
 Invoke messages show.
 
MbStepData tesseleationStepData
 Tessellation parameters for export into STL and VRML.
 
MbStepData LOD0StepData
 Tessellation parameters for export into JT.
 
bool dualSeams
 Make dual seams when export into STL and VRML.
 
bool joinSimilarFaces
 Whether to join similar faces.
 
bool addRemovedFacesAsShells
 Whether to add removed faces as shells.
 
double lengthUnitsFactor
 Length units of the model.
 
double appUnitsFactor
 Length units of the model used in user application.
 
bool attatchIdAttributes
 Whether to attatch the element's id in file as attribute.
 
SPtr< IProductIdMakerpruductIdMaker
 Generator of a single-line id based on product information attribute.
 
std::vector< LogRecordlogRecords
 Converter messages.
 

Detailed Description

Pre-defined implementation of converter's properties.

Member Function Documentation

◆ GetDocumentName()

const std::string ConvConvertorProperty3D::GetDocumentName ( ) const
inlineoverridevirtual

Destructor.

Get document's name.

Implements IConvertorProperty3D.

◆ ExportComponentsSeparately()

bool ConvConvertorProperty3D::ExportComponentsSeparately ( ) const
overridevirtual

Export components into separate files ( if provided in format).

Note
EXPEREIMENTAL.

Reimplemented from IConvertorProperty3D.

◆ EnableAutoStitch()

bool ConvConvertorProperty3D::EnableAutoStitch ( double &  ) const
overridevirtual

If surfaces should be stitched automatically.

Returns
true - Stitch surfaces automatically, false - Ask user first time.
Parameters
[out]stitchPrecision- Stitch precision.

Implements IConvertorProperty3D.

◆ LogReport()

void ConvConvertorProperty3D::LogReport ( ptrdiff_t  id,
eMsgType  msgType,
eMsgDetail  msgText 
)
overridevirtual

Make a record in the converter report.

Parameters
[in]id- Identifier of an element inside the file of a foreign format.
[in]msgType- Message type.
[in]msgText- Message code.

Implements IConvertorProperty3D.

Member Data Documentation

◆ exportIGESTopology

bool ConvConvertorProperty3D::exportIGESTopology

The version of format for export.

Export topology items into IGES.


The documentation for this class was generated from the following file: