KiCad PCB EDA Suite
DXF2BRD_ENTITY_DATA Class Reference

A helper class to parse a DXF entity (polyline and spline) More...

#include <dxf_import_plugin.h>

Public Member Functions

 DXF2BRD_ENTITY_DATA ()
 
void Clear ()
 

Public Attributes

int m_EntityType
 
int m_EntityParseStatus
 
int m_EntityFlag
 
VECTOR2D m_LastCoordinate
 
VECTOR2D m_PolylineStart
 
double m_BulgeVertex
 
unsigned int m_SplineDegree
 
unsigned int m_SplineKnotsCount
 
unsigned int m_SplineControlCount
 
unsigned int m_SplineFitCount
 
double m_SplineTangentStartX
 
double m_SplineTangentStartY
 
double m_SplineTangentEndX
 
double m_SplineTangentEndY
 
std::vector< double > m_SplineKnotsList
 
std::vector< SPLINE_CTRL_POINTm_SplineControlPointList
 
std::vector< VECTOR2Dm_SplineFitPointList
 

Detailed Description

A helper class to parse a DXF entity (polyline and spline)

Definition at line 56 of file dxf_import_plugin.h.

Constructor & Destructor Documentation

◆ DXF2BRD_ENTITY_DATA()

DXF2BRD_ENTITY_DATA::DXF2BRD_ENTITY_DATA ( )
inline

Definition at line 88 of file dxf_import_plugin.h.

88 { Clear(); };

References Clear().

Member Function Documentation

◆ Clear()

void DXF2BRD_ENTITY_DATA::Clear ( )
inline

Definition at line 91 of file dxf_import_plugin.h.

92  {
93  m_EntityType = DL_UNKNOWN;
95  m_EntityFlag = 0;
96  m_SplineDegree = 1;
99  m_SplineFitCount = 0;
100  m_SplineTangentStartX = 0.0;
101  m_SplineTangentStartY = 0.0;
102  m_SplineTangentEndX = 0.0;
103  m_SplineTangentEndY = 0.0;
104  m_BulgeVertex = 0.0;
105  m_SplineKnotsList.clear();
106  m_SplineControlPointList.clear();
107  m_SplineFitPointList.clear();
108  }
unsigned int m_SplineFitCount
unsigned int m_SplineControlCount
std::vector< VECTOR2D > m_SplineFitPointList
unsigned int m_SplineKnotsCount
unsigned int m_SplineDegree
std::vector< double > m_SplineKnotsList
std::vector< SPLINE_CTRL_POINT > m_SplineControlPointList

References m_BulgeVertex, m_EntityFlag, m_EntityParseStatus, m_EntityType, m_SplineControlCount, m_SplineControlPointList, m_SplineDegree, m_SplineFitCount, m_SplineFitPointList, m_SplineKnotsCount, m_SplineKnotsList, m_SplineTangentEndX, m_SplineTangentEndY, m_SplineTangentStartX, and m_SplineTangentStartY.

Referenced by DXF_IMPORT_PLUGIN::addPolyline(), DXF_IMPORT_PLUGIN::addSpline(), DXF2BRD_ENTITY_DATA(), and DXF_IMPORT_PLUGIN::endEntity().

Member Data Documentation

◆ m_BulgeVertex

double DXF2BRD_ENTITY_DATA::m_BulgeVertex

◆ m_EntityFlag

int DXF2BRD_ENTITY_DATA::m_EntityFlag

◆ m_EntityParseStatus

int DXF2BRD_ENTITY_DATA::m_EntityParseStatus

◆ m_EntityType

int DXF2BRD_ENTITY_DATA::m_EntityType

◆ m_LastCoordinate

VECTOR2D DXF2BRD_ENTITY_DATA::m_LastCoordinate

◆ m_PolylineStart

VECTOR2D DXF2BRD_ENTITY_DATA::m_PolylineStart

◆ m_SplineControlCount

unsigned int DXF2BRD_ENTITY_DATA::m_SplineControlCount

Definition at line 74 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineControlPointList

std::vector<SPLINE_CTRL_POINT> DXF2BRD_ENTITY_DATA::m_SplineControlPointList

◆ m_SplineDegree

unsigned int DXF2BRD_ENTITY_DATA::m_SplineDegree

◆ m_SplineFitCount

unsigned int DXF2BRD_ENTITY_DATA::m_SplineFitCount

Definition at line 75 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineFitPointList

std::vector<VECTOR2D> DXF2BRD_ENTITY_DATA::m_SplineFitPointList

◆ m_SplineKnotsCount

unsigned int DXF2BRD_ENTITY_DATA::m_SplineKnotsCount

Definition at line 73 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineKnotsList

std::vector<double> DXF2BRD_ENTITY_DATA::m_SplineKnotsList

◆ m_SplineTangentEndX

double DXF2BRD_ENTITY_DATA::m_SplineTangentEndX

Definition at line 78 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineTangentEndY

double DXF2BRD_ENTITY_DATA::m_SplineTangentEndY

Definition at line 79 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineTangentStartX

double DXF2BRD_ENTITY_DATA::m_SplineTangentStartX

Definition at line 76 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().

◆ m_SplineTangentStartY

double DXF2BRD_ENTITY_DATA::m_SplineTangentStartY

Definition at line 77 of file dxf_import_plugin.h.

Referenced by DXF_IMPORT_PLUGIN::addSpline(), and Clear().


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