C3D Toolkit  Kernel - 118069, Vision - 2.16.7.1844
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.
 
 ~ConvConvertorProperty3D () override=default
 Destructor.
 
const std::string GetDocumentName () const override
 Get document's name.
 
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 ).
 
DEPRECATE_DECLARE 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 file header string.
 
void SetPropertyString (MbeConverterStrings nString, const std::string &propertyString) override
 Set file header string.
 
DEPRECATE_DECLARE eTextForm GetAnnotationTextRepresentation () const override
 Text representation in annotation objects.
 
DEPRECATE_DECLARE 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< IProductIdMaker > ProductIdentifierGenerator () const override
 Get generator of one-line product identifier.
 
SPtr< IScaleRequestor > GetScaleRequester () const override
 Get scale requester.
 
SPtr< IStitchRequestor > GetStitchRequester () const override
 Get stitch requester.
 
SPtr< IC3DCharEncodingTransformer > GetUserCharEncodingTransformer () const override
 Get user string transformer.
 
ColorProcessing GetC3DVisualPropertiesResolutionStrategy () const override
 Specify the way how visual properties form while reading from C3D.
 
bool ImportMeshesWithTopology () const override
 Import polygonal objects as objects with topological information.
 
bool RepairInconsistentMesh (MbRepairInconsistentMeshParams &params) const override
 Get parameters for repairing inconsistent meshes.
 
bool ImportInstanceAttributes () const override
 Import instances attributes (STEP).
 
bool ExportWithSeamRemoval () const override
 Remove seams from loops when exporting to ACIS.
 
void Update (IConvertorProperty3D const &init)
 Update properties, exept : GetPropertyString() и LogReport()
 
- Public Member Functions inherited from IConvertorProperty3D
virtual 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< IC3DCharEncodingTransformer > userEncodingTransformer
 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 importMeshesWithTopology
 Save meshes to MbMesh (false) or to MbPolymesh (true).
 
bool importInstanceAttributes
 Whether to repair inconsistent meshes. More...
 
MbRepairInconsistentMeshParams repairInconsistentMeshParams
 Remove seams from loops when exporting to ACIS.
 
ColorProcessing visualPropertiesFormation
 Parameters for repairing inconsistent meshes. More...
 
SPtr< IProductIdMaker > pruductIdMaker
 Generator of a single-line id based on product information attribute.
 
SPtr< IStitchRequestor > stitchRequester
 Scale requester.
 
C3DConverterDebugSettings debugSettings
 Stitch requester.
 
std::vector< LogRecord > logRecords
 Converter messages.
 

Detailed Description

Pre-defined implementation of converter's properties.

Member Function Documentation

◆ ExportComponentsSeparately()

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

◆ importInstanceAttributes

bool ConvConvertorProperty3D::importInstanceAttributes

Whether to repair inconsistent meshes.

Whether to import instances attributes (STEP).

◆ visualPropertiesFormation

ColorProcessing ConvConvertorProperty3D::visualPropertiesFormation

Parameters for repairing inconsistent meshes.

The way how visual properties form while reading from C3D.


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