#include <DraftDxf.h>
Public Member Functions | |
void AddGraphics () const | |
void AddObject (Part::TopoShape *shape) | |
std::string Deformat (const char *text) | |
DraftDxfRead (std::string filepath, App::Document *pcDoc) | |
void OnReadArc (const double *s, const double *e, const double *c, bool dir, bool hidden) | |
void OnReadCircle (const double *s, const double *c, bool dir, bool hidden) | |
void OnReadDimension (const double *s, const double *e, const double *point, double rotation) | |
void OnReadEllipse (const double *c, double major_radius, double minor_radius, double rotation, double start_angle, double end_angle, bool dir) | |
void OnReadInsert (const double *point, const double *scale, const char *name, double rotation) | |
void OnReadLine (const double *s, const double *e, bool hidden) | |
void OnReadPoint (const double *s) | |
void OnReadSpline (struct SplineData &sd) | |
void OnReadText (const double *point, const double height, const char *text) | |
![]() | |
CDxfRead (const char *filepath) | |
CDxfRead (const char *filepath) | |
CDxfRead (const char *filepath) | |
void DoRead (const bool ignore_errors=false) | |
void DoRead (const bool ignore_errors=false) | |
void DoRead (const bool ignore_errors=false) | |
bool Failed () | |
bool Failed () | |
bool Failed () | |
bool IgnoreErrors () const | |
bool IgnoreErrors () const | |
bool IgnoreErrors () const | |
std::string LayerName () const | |
std::string LayerName () const | |
std::string LayerName () const | |
double mm (const double &value) const | |
double mm (double value) const | |
double mm (double value) const | |
virtual void OnReadArc (const double *, const double *, const double *, bool) | |
virtual void OnReadCircle (const double *, const double *, bool) | |
virtual void OnReadLine (const double *, const double *) | |
~CDxfRead () | |
~CDxfRead () | |
~CDxfRead () | |
Protected Attributes | |
App::Document * document | |
std::map< std::string, std::vector< Part::TopoShape * > > layers | |
bool optionGroupLayers | |
bool optionImportAnnotations | |
double optionScaling | |
![]() | |
Aci_t m_aci | |
Constructor & Destructor Documentation
◆ DraftDxfRead()
DraftDxfRead::DraftDxfRead | ( | std::string | filepath, |
App::Document * | pcDoc | ||
) |
Member Function Documentation
◆ AddGraphics()
|
virtual |
Reimplemented from CDxfRead.
References App::Document::addObject(), document, optionGroupLayers, Part::PropertyPartShape::setValue(), and Part::Feature::Shape.
◆ AddObject()
void DraftDxfRead::AddObject | ( | Part::TopoShape * | shape | ) |
References App::Document::addObject(), document, CDxfRead::LayerName(), optionGroupLayers, Part::PropertyPartShape::setValue(), and Part::Feature::Shape.
Referenced by OnReadArc(), OnReadCircle(), OnReadEllipse(), OnReadInsert(), OnReadLine(), and OnReadPoint().
◆ Deformat()
std::string DraftDxfRead::Deformat | ( | const char * | text | ) |
Referenced by OnReadText().
◆ OnReadArc()
|
virtual |
Reimplemented from CDxfRead.
References AddObject().
◆ OnReadCircle()
|
virtual |
Reimplemented from CDxfRead.
References AddObject().
◆ OnReadDimension()
|
virtual |
Reimplemented from CDxfRead.
References Base::Interpreter(), optionImportAnnotations, optionScaling, Base::InterpreterSingleton::runString(), and Base::InterpreterSingleton::runStringArg().
◆ OnReadEllipse()
|
virtual |
Reimplemented from CDxfRead.
References AddObject(), and optionScaling.
◆ OnReadInsert()
|
virtual |
Reimplemented from CDxfRead.
References AddObject(), Base::Matrix4D::move(), optionScaling, Base::Matrix4D::rotZ(), Base::Matrix4D::scale(), and Part::TopoShape::transformShape().
◆ OnReadLine()
|
virtual |
Reimplemented from CDxfRead.
References AddObject().
◆ OnReadPoint()
|
virtual |
Reimplemented from CDxfRead.
References AddObject().
◆ OnReadSpline()
|
virtual |
Reimplemented from CDxfRead.
◆ OnReadText()
|
virtual |
Member Data Documentation
◆ document
|
protected |
Referenced by AddGraphics(), AddObject(), DraftDxfRead(), femtest.app.test_ccxtools.TestCcxTools::input_file_writing_test(), OnReadText(), Mod.Show.mTempoVis.TempoVis::restoreCamera(), femtest.app.test_ccxtools.TestCcxTools::result_reading_test(), Mod.Show.mTempoVis.TempoVis::saveCamera(), femtest.app.test_material.TestMaterialUnits::tearDown(), femtest.app.test_result.TestResult::tearDown(), femtest.app.test_common.TestFemCommon::tearDown(), femtest.app.test_mesh.TestMeshCommon::tearDown(), femtest.app.test_object.TestObjectCreate::tearDown(), femtest.app.test_solverframework.TestSolverFrameWork::tearDown(), femtest.app.test_ccxtools.TestCcxTools::tearDown(), femtest.app.test_open.TestObjectOpen::tearDown(), femtest.gui.test_open.TestObjectOpen::tearDown(), femtest.app.test_femimport.TestObjectExistance::tearDown(), femtest.app.test_object.TestObjectType::tearDown(), femtest.app.test_mesh.TestMeshEleTetra10::tearDown(), femtest.app.test_mesh.TestMeshGroups::tearDown(), femtest.app.test_common.TestFemCommon::test_adding_refshaps(), femtest.app.test_object.TestObjectType::test_femobjects_derivedfromfem(), femtest.app.test_object.TestObjectType::test_femobjects_derivedfromstd(), femtest.app.test_object.TestObjectType::test_femobjects_isoftype(), femtest.app.test_object.TestObjectCreate::test_femobjects_make(), femtest.gui.test_open.TestObjectOpen::test_femobjects_open_de9b3fb438(), femtest.app.test_open.TestObjectOpen::test_femobjects_open_de9b3fb438(), femtest.gui.test_open.TestObjectOpen::test_femobjects_open_head(), femtest.app.test_open.TestObjectOpen::test_femobjects_open_head(), femtest.app.test_object.TestObjectType::test_femobjects_type(), femtest.app.test_ccxtools.TestCcxTools::test_freq_analysis(), femtest.app.test_femimport.TestObjectExistance::test_objects_existance(), femtest.app.test_solverframework.TestSolverFrameWork::test_solver_calculix(), femtest.app.test_solverframework.TestSolverFrameWork::test_solver_elmer(), femtest.app.test_ccxtools.TestCcxTools::test_static_analysis(), femtest.app.test_ccxtools.TestCcxTools::test_static_constraint_contact_shell_shell(), femtest.app.test_ccxtools.TestCcxTools::test_static_constraint_contact_solid_solid(), femtest.app.test_ccxtools.TestCcxTools::test_static_constraint_force_faceload_hexa20(), femtest.app.test_ccxtools.TestCcxTools::test_static_constraint_tie(), femtest.app.test_ccxtools.TestCcxTools::test_static_material_multiple(), femtest.app.test_ccxtools.TestCcxTools::test_static_material_nonlinar(), femtest.app.test_ccxtools.TestCcxTools::test_thermomech_bimetall(), femtest.app.test_ccxtools.TestCcxTools::test_thermomech_flow1D_analysis(), femtest.app.test_ccxtools.TestCcxTools::test_thermomech_spine_analysis(), Mod.Show.TVStack.TVStack::unwindForSaving(), and femsolver.calculix.writer.FemInputWriterCcx::write_footer().
◆ layers
|
protected |
◆ optionGroupLayers
|
protected |
Referenced by AddGraphics(), AddObject(), and DraftDxfRead().
◆ optionImportAnnotations
|
protected |
Referenced by DraftDxfRead(), OnReadDimension(), and OnReadText().
◆ optionScaling
|
protected |
Referenced by DraftDxfRead(), OnReadDimension(), OnReadEllipse(), OnReadInsert(), and OnReadText().
The documentation for this class was generated from the following files:
- src/Mod/Draft/App/DraftDxf.h
- src/Mod/Draft/App/DraftDxf.cpp