Import::ImpExpDxfRead Class Reference

#include <ImpExpDxf.h>

Public Member Functions

void AddGraphics () const
 
void AddObject (Part::TopoShape *shape)
 
std::string Deformat (const char *text)
 
std::string getOptionSource ()
 
 ImpExpDxfRead (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)
 
void setOptions (void)
 
void setOptionSource (std::string s)
 
- Public Member Functions inherited from CDxfRead
virtual void AddGraphics () const
 
virtual void AddGraphics () const
 
virtual void AddGraphics () const
 
 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 OnReadArc (const double *, const double *, const double *, bool, bool)
 
virtual void OnReadArc (const double *, const double *, const double *, bool, bool)
 
virtual void OnReadCircle (const double *, const double *, bool)
 
virtual void OnReadCircle (const double *, const double *, bool, bool)
 
virtual void OnReadCircle (const double *, const double *, bool, bool)
 
virtual void OnReadDimension (const double *, const double *, const double *, double)
 
virtual void OnReadDimension (const double *, const double *, const double *, double)
 
virtual void OnReadEllipse (const double *, double, double, double, double, double, bool)
 
virtual void OnReadEllipse (const double *, double, double, double, double, double, bool)
 
virtual void OnReadEllipse (const double *, double, double, double, double, double, bool)
 
virtual void OnReadInsert (const double *, const double *, const char *, double)
 
virtual void OnReadInsert (const double *, const double *, const char *, double)
 
virtual void OnReadInsert (const double *, const double *, const char *, double)
 
virtual void OnReadLine (const double *, const double *)
 
virtual void OnReadLine (const double *, const double *, bool)
 
virtual void OnReadLine (const double *, const double *, bool)
 
virtual void OnReadPoint (const double *)
 
virtual void OnReadPoint (const double *)
 
virtual void OnReadPoint (const double *)
 
virtual void OnReadSpline (struct SplineData &)
 
virtual void OnReadSpline (struct SplineData &)
 
virtual void OnReadSpline (struct SplineData &)
 
virtual void OnReadText (const double *, const double, const char *)
 
virtual void OnReadText (const double *, const double, const char *)
 
virtual void OnReadText (const double *, const double, const char *)
 
virtual ~CDxfRead ()
 
virtual ~CDxfRead ()
 
virtual ~CDxfRead ()
 

Protected Attributes

App::Documentdocument
 
std::map< std::string, std::vector< Part::TopoShape * > > layers
 
std::string m_optionSource
 
bool optionGroupLayers
 
bool optionImportAnnotations
 
double optionScaling
 
- Protected Attributes inherited from CDxfRead
Aci_t m_aci
 

Constructor & Destructor Documentation

◆ ImpExpDxfRead()

ImpExpDxfRead::ImpExpDxfRead ( std::string  filepath,
App::Document pcDoc 
)

Member Function Documentation

◆ AddGraphics()

void ImpExpDxfRead::AddGraphics ( ) const
virtual

◆ AddObject()

◆ Deformat()

std::string ImpExpDxfRead::Deformat ( const char *  text)

Referenced by OnReadText().

◆ getOptionSource()

std::string Import::ImpExpDxfRead::getOptionSource ( )

Referenced by setOptions().

◆ OnReadArc()

void ImpExpDxfRead::OnReadArc ( const double *  s,
const double *  e,
const double *  c,
bool  dir,
bool  hidden 
)
virtual

◆ OnReadCircle()

void ImpExpDxfRead::OnReadCircle ( const double *  s,
const double *  c,
bool  dir,
bool  hidden 
)
virtual

◆ OnReadDimension()

void ImpExpDxfRead::OnReadDimension ( const double *  s,
const double *  e,
const double *  point,
double  rotation 
)
virtual

◆ OnReadEllipse()

void ImpExpDxfRead::OnReadEllipse ( const double *  c,
double  major_radius,
double  minor_radius,
double  rotation,
double  start_angle,
double  end_angle,
bool  dir 
)
virtual

◆ OnReadInsert()

void ImpExpDxfRead::OnReadInsert ( const double *  point,
const double *  scale,
const char *  name,
double  rotation 
)
virtual

◆ OnReadLine()

void ImpExpDxfRead::OnReadLine ( const double *  s,
const double *  e,
bool  hidden 
)
virtual

Reimplemented from CDxfRead.

References AddObject().

◆ OnReadPoint()

void ImpExpDxfRead::OnReadPoint ( const double *  s)
virtual

Reimplemented from CDxfRead.

References AddObject().

◆ OnReadSpline()

void ImpExpDxfRead::OnReadSpline ( struct SplineData sd)
virtual

◆ OnReadText()

void ImpExpDxfRead::OnReadText ( const double *  point,
const double  height,
const char *  text 
)
virtual

◆ setOptions()

◆ setOptionSource()

void Import::ImpExpDxfRead::setOptionSource ( std::string  s)

Referenced by ImpExpDxfRead().

Member Data Documentation

◆ document

App::Document* Import::ImpExpDxfRead::document
protected

Referenced by AddGraphics(), AddObject(), ImpExpDxfRead(), femtest.app.test_solver_calculix.TestSolverCalculix::input_file_writing_test(), femtest.app.test_solver_elmer.TestSolverElmer::input_file_writing_test(), femtest.app.test_solver_mystran.TestSolverMystran::input_file_writing_test(), femtest.app.test_ccxtools.TestCcxTools::input_file_writing_test(), femtest.app.test_solver_z88.TestSolverZ88::inputfile_writing_test(), OnReadText(), Mod.Show.mTempoVis.TempoVis::restoreCamera(), femtest.app.test_ccxtools.TestCcxTools::result_reading_test(), Mod.Show.mTempoVis.TempoVis::saveCamera(), femtest.app.test_ccxtools.TestCcxTools::tearDown(), femtest.app.test_common.TestFemCommon::tearDown(), femtest.app.test_femimport.TestObjectExistance::tearDown(), femtest.app.test_material.TestMaterialUnits::tearDown(), femtest.app.test_mesh.TestMeshCommon::tearDown(), femtest.app.test_mesh.TestMeshEleTetra10::tearDown(), femtest.app.test_mesh.TestMeshGroups::tearDown(), femtest.app.test_object.TestObjectCreate::tearDown(), femtest.app.test_object.TestObjectType::tearDown(), femtest.app.test_open.TestObjectOpen::tearDown(), femtest.app.test_result.TestResult::tearDown(), femtest.app.test_solver_calculix.TestSolverCalculix::tearDown(), femtest.app.test_solver_elmer.TestSolverElmer::tearDown(), femtest.app.test_solver_mystran.TestSolverMystran::tearDown(), femtest.app.test_solver_z88.TestSolverZ88::tearDown(), femtest.gui.test_open.TestObjectOpen::tearDown(), femtest.app.test_common.TestFemCommon::test_adding_refshaps(), femtest.app.test_ccxtools.TestCcxTools::test_box_frequency(), femtest.app.test_solver_calculix.TestSolverCalculix::test_box_frequency(), femtest.app.test_ccxtools.TestCcxTools::test_box_static(), femtest.app.test_solver_calculix.TestSolverCalculix::test_box_static(), femtest.app.test_solver_elmer.TestSolverElmer::test_box_static_0_mm(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_buckling_flexuralbuckling(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_beam_circle(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_beam_pipe(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_beam_rect(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_hexa20(), femtest.app.test_solver_z88.TestSolverZ88::test_ccx_cantilever_ele_hexa20(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_quad4(), femtest.app.test_solver_mystran.TestSolverMystran::test_ccx_cantilever_ele_quad4(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_quad8(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_seg2(), femtest.app.test_solver_mystran.TestSolverMystran::test_ccx_cantilever_ele_seg2(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_seg3(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_tria3(), femtest.app.test_solver_mystran.TestSolverMystran::test_ccx_cantilever_ele_tria3(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_ele_tria6(), femtest.app.test_solver_z88.TestSolverZ88::test_ccx_cantilever_ele_tria6(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_faceload(), femtest.app.test_solver_mystran.TestSolverMystran::test_ccx_cantilever_faceload(), femtest.app.test_solver_z88.TestSolverZ88::test_ccx_cantilever_faceload(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_nodeload(), femtest.app.test_solver_mystran.TestSolverMystran::test_ccx_cantilever_nodeload(), femtest.app.test_solver_z88.TestSolverZ88::test_ccx_cantilever_nodeload(), femtest.app.test_solver_calculix.TestSolverCalculix::test_ccx_cantilever_prescribeddisplacement(), femtest.app.test_solver_elmer.TestSolverElmer::test_ccxcantilever_faceload_0_mm(), femtest.app.test_solver_elmer.TestSolverElmer::test_ccxcantilever_faceload_1_si(), femtest.app.test_solver_elmer.TestSolverElmer::test_ccxcantilever_nodeload_0_mm(), femtest.app.test_solver_elmer.TestSolverElmer::test_ccxcantilever_prescribeddisplacement_0_mm(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_centrif(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_contact_shell_shell(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_contact_solid_solid(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_sectionprint(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_selfweight_cantilever(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_tie(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_transform_beam_hinged(), femtest.app.test_solver_calculix.TestSolverCalculix::test_constraint_transform_torque(), 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.app.test_open.TestObjectOpen::test_femobjects_open_de9b3fb438(), femtest.gui.test_open.TestObjectOpen::test_femobjects_open_de9b3fb438(), femtest.app.test_open.TestObjectOpen::test_femobjects_open_head(), femtest.gui.test_open.TestObjectOpen::test_femobjects_open_head(), femtest.app.test_object.TestObjectType::test_femobjects_type(), femtest.app.test_solver_calculix.TestSolverCalculix::test_frequency_beamsimple(), femtest.app.test_solver_calculix.TestSolverCalculix::test_material_multiple_bendingbeam_fiveboxes(), femtest.app.test_solver_calculix.TestSolverCalculix::test_material_multiple_bendingbeam_fivefaces(), femtest.app.test_solver_calculix.TestSolverCalculix::test_material_multiple_tensionrod_twoboxes(), femtest.app.test_solver_calculix.TestSolverCalculix::test_material_nonlinear(), femtest.app.test_solver_mystran.TestSolverMystran::test_mystran_plate(), femtest.app.test_femimport.TestObjectExistance::test_objects_existance(), femtest.app.test_solver_calculix.TestSolverCalculix::test_square_pipe_end_twisted_edgeforces(), femtest.app.test_solver_calculix.TestSolverCalculix::test_square_pipe_end_twisted_nodeforces(), femtest.app.test_solver_calculix.TestSolverCalculix::test_thermomech_bimetall(), femtest.app.test_ccxtools.TestCcxTools::test_thermomech_flow1D(), femtest.app.test_solver_calculix.TestSolverCalculix::test_thermomech_flow1D(), femtest.app.test_ccxtools.TestCcxTools::test_thermomech_spine(), femtest.app.test_solver_calculix.TestSolverCalculix::test_thermomech_spine(), and Mod.Show.TVStack.TVStack::unwindForSaving().

◆ layers

std::map<std::string, std::vector <Part::TopoShape*> > Import::ImpExpDxfRead::layers
protected

◆ m_optionSource

std::string Import::ImpExpDxfRead::m_optionSource
protected

◆ optionGroupLayers

bool Import::ImpExpDxfRead::optionGroupLayers
protected

Referenced by AddGraphics(), AddObject(), and setOptions().

◆ optionImportAnnotations

bool Import::ImpExpDxfRead::optionImportAnnotations
protected

◆ optionScaling

double Import::ImpExpDxfRead::optionScaling
protected

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