C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

DXF - converter. More...

#include <dxf_converter.h>

Public Member Functions

void SetStitch (bool stitch)
 Set a flag of stitching.
 
bool IsStitch () const
 Get flag of stitching.
 
void SetFactor (double factor)
 Set a value of multiplier.
 
double GetFactor () const
 Get value of multiplier.
 
void SetProperty (IConvertorProperty3D *property)
 Specify converter properties.
 
IConvertorProperty3DGetProperty ()
 Get converter properties.
 
void BeginComposite ()
 Initialize an empty block.
 
bool BeginComposite (MbMatrix3D &matr, const DXFCompositeData &data)
 Initialize block with data. More...
 
bool EndComposite ()
 Complete creation of a composite element. More...
 
void Reset ()
 Clear the converter.
 
bool Indicate (ptrdiff_t count)
 Show the current state of operation progress.
 
void CompleteDocument (ItModelDocument &model_document, IProgressIndicator *indicator=nullptr)
 Complete the document creation.
 
void ConvertLastComposite (uint32 defaultColor)
 Show the current state of operation progress.
 
void AddFace (MbFace &m_face)
 Add the model face.
 
void AddGrid (MbGrid &m_grid)
 Add the model face.
 
void AddSolidBody (MbPlacement3D &placement, const std::vector< SPtr< MbItem > > &m_solids, const std::vector< SPtr< MbFace > > &m_faces)
 Add a solid. More...
 
void AddSpaceCurve (MbCurve3D &spaceCurve)
 Add a spatial curves.
 
void RemoveData (const DXFCompositeData &data)
 Delete a value from the list of read identifiers.
 

Detailed Description

DXF - converter.

Member Function Documentation

◆ BeginComposite()

bool DXFConverter::BeginComposite ( MbMatrix3D matr,
const DXFCompositeData data 
)

Initialize block with data.

Parameters
[in]matr- Matrix transforming block data to coordinate system of the enclosing block.
[in]data- Data of the block.

◆ EndComposite()

bool DXFConverter::EndComposite ( )

Complete creation of a composite element.

If the last composite element has:

  • no identifier;
  • no inserts,
    then it is a creterion that the block is created only for stitching the geometry. In this case the last block is united with the last but one: the geometry is moved to the last but one, the last one is deleted.

◆ AddSolidBody()

void DXFConverter::AddSolidBody ( MbPlacement3D placement,
const std::vector< SPtr< MbItem > > &  m_solids,
const std::vector< SPtr< MbFace > > &  m_faces 
)

Add a solid.

Parameters
[in]placement- Position of the solid in LCS.
[in]model_solids- Model solids.
[in]model_faces- Model solids.

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