Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
a674dd65
Commit
a674dd65
authored
Dec 19, 2012
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: class DIMENSION: code cleaning
parent
ea603c4d
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
354 additions
and
421 deletions
+354
-421
length.h.usuned
include/length.h.usuned
+0
-0
class_dimension.cpp
pcbnew/class_dimension.cpp
+199
-250
class_dimension.h
pcbnew/class_dimension.h
+38
-38
dimension.cpp
pcbnew/dimension.cpp
+19
-35
kicad_plugin.cpp
pcbnew/kicad_plugin.cpp
+28
-28
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+42
-42
pcb_parser.cpp
pcbnew/pcb_parser.cpp
+14
-14
plot_brditems_plotter.cpp
pcbnew/plot_brditems_plotter.cpp
+14
-14
No files found.
include/length.h
→
include/length.h
.usuned
View file @
a674dd65
File moved
pcbnew/class_dimension.cpp
View file @
a674dd65
This diff is collapsed.
Click to expand it.
pcbnew/class_dimension.h
View file @
a674dd65
...
@@ -43,21 +43,21 @@ class TEXTE_PCB;
...
@@ -43,21 +43,21 @@ class TEXTE_PCB;
class
DIMENSION
:
public
BOARD_ITEM
class
DIMENSION
:
public
BOARD_ITEM
{
{
public
:
public
:
int
m_Width
;
int
m_Width
;
wxPoint
m_Pos
;
int
m_Shape
;
// / Currently always 0.
int
m_Shape
;
/// Current always 0.
int
m_Unit
;
// / 0 = inches, 1 = mm
int
m_Unit
;
/// 0 = inches, 1 = mm
int
m_Value
;
// / value of PCB dimensions.
int
m_Value
;
/// value of PCB dimensions.
TEXTE_PCB
m_Text
;
TEXTE_PCB
m_Text
;
int
m_crossBarOx
,
m_crossBarOy
,
m_crossBarFx
,
m_crossBarFy
;
// private: These member should be private. they are public only due to legacy code
int
m_featureLineGOx
,
m_featureLineGOy
,
m_featureLineGFx
,
m_featureLineGFy
;
wxPoint
m_crossBarO
,
m_crossBarF
;
int
m_featureLineDOx
,
m_featureLineDOy
,
m_featureLineDFx
,
m_featureLineDFy
;
wxPoint
m_featureLineGO
,
m_featureLineGF
;
int
m_arrowD1Ox
,
m_arrowD1Oy
,
m_arrowD1Fx
,
m_arrowD1Fy
;
wxPoint
m_featureLineDO
,
m_featureLineDF
;
int
m_arrowD2Ox
,
m_arrowD2Oy
,
m_arrowD2Fx
,
m_arrowD2Fy
;
wxPoint
m_arrowD1O
,
m_arrowD1F
;
int
m_arrowG1Ox
,
m_arrowG1Oy
,
m_arrowG1Fx
,
m_arrowG1Fy
;
wxPoint
m_arrowD2O
,
m_arrowD2F
;
int
m_arrowG2Ox
,
m_arrowG2Oy
,
m_arrowG2Fx
,
m_arrowG2Fy
;
wxPoint
m_arrowG1O
,
m_arrowG1F
;
wxPoint
m_arrowG2O
,
m_arrowG2F
;
public
:
public
:
DIMENSION
(
BOARD_ITEM
*
aParent
);
DIMENSION
(
BOARD_ITEM
*
aParent
);
...
@@ -65,9 +65,9 @@ public:
...
@@ -65,9 +65,9 @@ public:
~
DIMENSION
();
~
DIMENSION
();
const
wxPoint
&
GetPosition
()
const
{
return
m_Pos
;
}
const
wxPoint
&
GetPosition
()
const
;
void
SetPosition
(
const
wxPoint
&
aPos
);
// override, sets m_Text's position too
void
SetPosition
(
const
wxPoint
&
aPos
);
// override, sets m_Text's position too
void
SetTextSize
(
const
wxSize
&
aTextSize
)
void
SetTextSize
(
const
wxSize
&
aTextSize
)
{
{
...
@@ -77,9 +77,9 @@ public:
...
@@ -77,9 +77,9 @@ public:
void
SetLayer
(
int
aLayer
);
void
SetLayer
(
int
aLayer
);
void
SetShape
(
int
aShape
)
{
m_Shape
=
aShape
;
}
void
SetShape
(
int
aShape
)
{
m_Shape
=
aShape
;
}
int
GetShape
()
const
{
return
m_Shape
;
}
int
GetShape
()
const
{
return
m_Shape
;
}
int
GetWidth
()
const
{
return
m_Width
;
}
int
GetWidth
()
const
{
return
m_Width
;
}
void
SetWidth
(
int
aWidth
)
{
m_Width
=
aWidth
;
}
void
SetWidth
(
int
aWidth
)
{
m_Width
=
aWidth
;
}
/**
/**
...
@@ -87,25 +87,25 @@ public:
...
@@ -87,25 +87,25 @@ public:
* Calculate coordinates of segments used to draw the dimension.
* Calculate coordinates of segments used to draw the dimension.
* @param aDoNotChangeText (bool) if false, the dimension text is initialized
* @param aDoNotChangeText (bool) if false, the dimension text is initialized
*/
*/
void
AdjustDimensionDetails
(
bool
aDoNotChangeText
=
false
);
void
AdjustDimensionDetails
(
bool
aDoNotChangeText
=
false
);
void
SetText
(
const
wxString
&
NewText
);
void
SetText
(
const
wxString
&
NewText
);
const
wxString
GetText
()
const
;
const
wxString
GetText
()
const
;
void
Copy
(
DIMENSION
*
source
);
void
Copy
(
DIMENSION
*
source
);
void
Draw
(
EDA_DRAW_PANEL
*
panel
,
wxDC
*
DC
,
void
Draw
(
EDA_DRAW_PANEL
*
panel
,
wxDC
*
DC
,
GR_DRAWMODE
aColorMode
,
const
wxPoint
&
offset
=
ZeroOffset
);
GR_DRAWMODE
aColorMode
,
const
wxPoint
&
offset
=
ZeroOffset
);
/**
/**
* Function Move
* Function Move
* @param offset : moving vector
* @param offset : moving vector
*/
*/
void
Move
(
const
wxPoint
&
offset
);
void
Move
(
const
wxPoint
&
offset
);
void
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
);
void
Rotate
(
const
wxPoint
&
aRotCentre
,
double
aAngle
);
void
Flip
(
const
wxPoint
&
aCentre
);
void
Flip
(
const
wxPoint
&
aCentre
);
/**
/**
* Function Mirror
* Function Mirror
...
@@ -114,30 +114,30 @@ public:
...
@@ -114,30 +114,30 @@ public:
* the layer is not changed
* the layer is not changed
* @param axis_pos : vertical axis position
* @param axis_pos : vertical axis position
*/
*/
void
Mirror
(
const
wxPoint
&
axis_pos
);
void
Mirror
(
const
wxPoint
&
axis_pos
);
void
DisplayInfo
(
EDA_DRAW_FRAME
*
frame
);
void
DisplayInfo
(
EDA_DRAW_FRAME
*
frame
);
bool
HitTest
(
const
wxPoint
&
aPosition
);
bool
HitTest
(
const
wxPoint
&
aPosition
);
bool
HitTest
(
const
EDA_RECT
&
aRect
)
const
;
bool
HitTest
(
const
EDA_RECT
&
aRect
)
const
;
wxString
GetClass
()
const
wxString
GetClass
()
const
{
{
return
wxT
(
"DIMENSION"
);
return
wxT
(
"DIMENSION"
);
}
}
EDA_RECT
GetBoundingBox
()
const
;
EDA_RECT
GetBoundingBox
()
const
;
wxString
GetSelectMenuText
()
const
;
wxString
GetSelectMenuText
()
const
;
BITMAP_DEF
GetMenuImage
()
const
{
return
add_dimension_xpm
;
}
BITMAP_DEF
GetMenuImage
()
const
{
return
add_dimension_xpm
;
}
EDA_ITEM
*
Clone
()
const
;
EDA_ITEM
*
Clone
()
const
;
#if defined(DEBUG)
#if defined(DEBUG)
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
void
Show
(
int
nestLevel
,
std
::
ostream
&
os
)
const
{
ShowDummy
(
os
);
}
// override
#endif
#endif
};
};
#endif // DIMENSION_H_
#endif
// DIMENSION_H_
pcbnew/dimension.cpp
View file @
a674dd65
...
@@ -244,26 +244,13 @@ DIMENSION* PCB_EDIT_FRAME::EditDimension( DIMENSION* aDimension, wxDC* aDC )
...
@@ -244,26 +244,13 @@ DIMENSION* PCB_EDIT_FRAME::EditDimension( DIMENSION* aDimension, wxDC* aDC )
aDimension
->
SetLayer
(
getActiveLayer
()
);
aDimension
->
SetLayer
(
getActiveLayer
()
);
aDimension
->
m_crossBarOx
=
aDimension
->
m_crossBarFx
=
pos
.
x
;
aDimension
->
m_crossBarO
=
aDimension
->
m_crossBarF
=
pos
;
aDimension
->
m_crossBarOy
=
aDimension
->
m_crossBarFy
=
pos
.
y
;
aDimension
->
m_featureLineDO
=
aDimension
->
m_featureLineDF
=
pos
;
aDimension
->
m_featureLineGO
=
aDimension
->
m_featureLineGF
=
pos
;
aDimension
->
m_featureLineDOx
=
aDimension
->
m_featureLineDFx
=
pos
.
x
;
aDimension
->
m_arrowG1O
=
aDimension
->
m_arrowG1F
=
pos
;
aDimension
->
m_featureLineDOy
=
aDimension
->
m_featureLineDFy
=
pos
.
y
;
aDimension
->
m_arrowG2O
=
aDimension
->
m_arrowG2F
=
pos
;
aDimension
->
m_arrowD1O
=
aDimension
->
m_arrowD1F
=
pos
;
aDimension
->
m_featureLineGOx
=
aDimension
->
m_featureLineGFx
=
pos
.
x
;
aDimension
->
m_arrowD2O
=
aDimension
->
m_arrowD2F
=
pos
;
aDimension
->
m_featureLineGOy
=
aDimension
->
m_featureLineGFy
=
pos
.
y
;
aDimension
->
m_arrowG1Ox
=
aDimension
->
m_arrowG1Fx
=
pos
.
x
;
aDimension
->
m_arrowG1Oy
=
aDimension
->
m_arrowG1Fy
=
pos
.
y
;
aDimension
->
m_arrowG2Ox
=
aDimension
->
m_arrowG2Fx
=
pos
.
x
;
aDimension
->
m_arrowG2Oy
=
aDimension
->
m_arrowG2Fy
=
pos
.
y
;
aDimension
->
m_arrowD1Ox
=
aDimension
->
m_arrowD1Fx
=
pos
.
x
;
aDimension
->
m_arrowD1Oy
=
aDimension
->
m_arrowD1Fy
=
pos
.
y
;
aDimension
->
m_arrowD2Ox
=
aDimension
->
m_arrowD2Fx
=
pos
.
x
;
aDimension
->
m_arrowD2Oy
=
aDimension
->
m_arrowD2Fy
=
pos
.
y
;
aDimension
->
m_Text
.
m_Size
=
GetBoard
()
->
GetDesignSettings
().
m_PcbTextSize
;
aDimension
->
m_Text
.
m_Size
=
GetBoard
()
->
GetDesignSettings
().
m_PcbTextSize
;
int
width
=
GetBoard
()
->
GetDesignSettings
().
m_PcbTextWidth
;
int
width
=
GetBoard
()
->
GetDesignSettings
().
m_PcbTextWidth
;
...
@@ -327,31 +314,28 @@ static void BuildDimension( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
...
@@ -327,31 +314,28 @@ static void BuildDimension( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
if
(
status_dimension
==
1
)
if
(
status_dimension
==
1
)
{
{
Dimension
->
m_featureLineDOx
=
pos
.
x
;
Dimension
->
m_featureLineDO
=
pos
;
Dimension
->
m_featureLineDOy
=
pos
.
y
;
Dimension
->
m_crossBarF
=
Dimension
->
m_featureLineDO
;
Dimension
->
m_crossBarFx
=
Dimension
->
m_featureLineDOx
;
Dimension
->
m_crossBarFy
=
Dimension
->
m_featureLineDOy
;
Dimension
->
AdjustDimensionDetails
(
);
Dimension
->
AdjustDimensionDetails
(
);
}
}
else
else
{
{
int
deltax
,
deltay
,
dx
,
dy
;
wxPoint
delta
;
int
dx
,
dy
;
float
angle
,
depl
;
float
angle
,
depl
;
deltax
=
Dimension
->
m_featureLineDOx
-
Dimension
->
m_featureLineGOx
;
delta
=
Dimension
->
m_featureLineDO
-
Dimension
->
m_featureLineGO
;
deltay
=
Dimension
->
m_featureLineDOy
-
Dimension
->
m_featureLineGOy
;
/* Calculating the direction of travel perpendicular to the selected axis. */
/* Calculating the direction of travel perpendicular to the selected axis. */
angle
=
atan2
(
(
double
)
delta
y
,
(
double
)
delta
x
)
+
(
M_PI
/
2
);
angle
=
atan2
(
(
double
)
delta
.
y
,
(
double
)
delta
.
x
)
+
(
M_PI
/
2
);
deltax
=
pos
.
x
-
Dimension
->
m_featureLineDOx
;
delta
=
pos
-
Dimension
->
m_featureLineDO
;
deltay
=
pos
.
y
-
Dimension
->
m_featureLineDOy
;
depl
=
(
delta
.
x
*
cos
(
angle
)
)
+
(
delta
.
y
*
sin
(
angle
)
);
depl
=
(
deltax
*
cos
(
angle
)
)
+
(
deltay
*
sin
(
angle
)
);
dx
=
(
int
)
(
depl
*
cos
(
angle
)
);
dx
=
(
int
)
(
depl
*
cos
(
angle
)
);
dy
=
(
int
)
(
depl
*
sin
(
angle
)
);
dy
=
(
int
)
(
depl
*
sin
(
angle
)
);
Dimension
->
m_crossBarO
x
=
Dimension
->
m_featureLineGO
x
+
dx
;
Dimension
->
m_crossBarO
.
x
=
Dimension
->
m_featureLineGO
.
x
+
dx
;
Dimension
->
m_crossBarO
y
=
Dimension
->
m_featureLineGO
y
+
dy
;
Dimension
->
m_crossBarO
.
y
=
Dimension
->
m_featureLineGO
.
y
+
dy
;
Dimension
->
m_crossBarF
x
=
Dimension
->
m_featureLineDO
x
+
dx
;
Dimension
->
m_crossBarF
.
x
=
Dimension
->
m_featureLineDO
.
x
+
dx
;
Dimension
->
m_crossBarF
y
=
Dimension
->
m_featureLineDO
y
+
dy
;
Dimension
->
m_crossBarF
.
y
=
Dimension
->
m_featureLineDO
.
y
+
dy
;
Dimension
->
AdjustDimensionDetails
(
);
Dimension
->
AdjustDimensionDetails
(
);
}
}
...
...
pcbnew/kicad_plugin.cpp
View file @
a674dd65
...
@@ -644,46 +644,46 @@ void PCB_IO::format( DIMENSION* aDimension, int aNestLevel ) const
...
@@ -644,46 +644,46 @@ void PCB_IO::format( DIMENSION* aDimension, int aNestLevel ) const
Format
(
(
TEXTE_PCB
*
)
&
aDimension
->
m_Text
,
aNestLevel
+
1
);
Format
(
(
TEXTE_PCB
*
)
&
aDimension
->
m_Text
,
aNestLevel
+
1
);
m_out
->
Print
(
aNestLevel
+
1
,
"(feature1 (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(feature1 (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_featureLineDOx
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDO
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDOy
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDO
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDFx
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDF
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineDFy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_featureLineDF
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(feature2 (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(feature2 (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_featureLineGOx
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGO
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGOy
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGO
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGFx
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGF
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_featureLineGFy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_featureLineGF
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(crossbar (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(crossbar (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_crossBarOx
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarO
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarOy
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarO
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarFx
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarF
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_crossBarFy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_crossBarF
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow1a (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow1a (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_arrowD1Ox
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1O
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1Oy
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1O
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1Fx
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1F
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD1Fy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_arrowD1F
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow1b (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow1b (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_arrowD2Ox
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2O
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2Oy
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2O
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2Fx
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2F
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowD2Fy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_arrowD2F
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow2a (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow2a (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_arrowG1Ox
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1O
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1Oy
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1O
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1Fx
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1F
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG1Fy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_arrowG1F
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow2b (pts (xy %s %s) (xy %s %s)))
\n
"
,
m_out
->
Print
(
aNestLevel
+
1
,
"(arrow2b (pts (xy %s %s) (xy %s %s)))
\n
"
,
FMT_IU
(
aDimension
->
m_arrowG2Ox
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2O
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2Oy
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2O
.
y
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2Fx
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2F
.
x
).
c_str
(),
FMT_IU
(
aDimension
->
m_arrowG2Fy
).
c_str
()
);
FMT_IU
(
aDimension
->
m_arrowG2F
.
y
).
c_str
()
);
m_out
->
Print
(
aNestLevel
,
")
\n
"
);
m_out
->
Print
(
aNestLevel
,
")
\n
"
);
}
}
...
...
pcbnew/legacy_plugin.cpp
View file @
a674dd65
...
@@ -2485,10 +2485,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2485,10 +2485,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
crossBarFy
=
biuParse
(
data
,
&
data
);
BIU
crossBarFy
=
biuParse
(
data
,
&
data
);
BIU
width
=
biuParse
(
data
);
BIU
width
=
biuParse
(
data
);
dim
->
m_crossBarOx
=
crossBarOx
;
dim
->
m_crossBarO
.
x
=
crossBarOx
;
dim
->
m_crossBarOy
=
crossBarOy
;
dim
->
m_crossBarO
.
y
=
crossBarOy
;
dim
->
m_crossBarFx
=
crossBarFx
;
dim
->
m_crossBarF
.
x
=
crossBarFx
;
dim
->
m_crossBarFy
=
crossBarFy
;
dim
->
m_crossBarF
.
y
=
crossBarFy
;
dim
->
m_Width
=
width
;
dim
->
m_Width
=
width
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2503,10 +2503,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2503,10 +2503,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
featureLineDFx
=
biuParse
(
data
,
&
data
);
BIU
featureLineDFx
=
biuParse
(
data
,
&
data
);
BIU
featureLineDFy
=
biuParse
(
data
);
BIU
featureLineDFy
=
biuParse
(
data
);
dim
->
m_featureLineDOx
=
featureLineDOx
;
dim
->
m_featureLineDO
.
x
=
featureLineDOx
;
dim
->
m_featureLineDOy
=
featureLineDOy
;
dim
->
m_featureLineDO
.
y
=
featureLineDOy
;
dim
->
m_featureLineDFx
=
featureLineDFx
;
dim
->
m_featureLineDF
.
x
=
featureLineDFx
;
dim
->
m_featureLineDFy
=
featureLineDFy
;
dim
->
m_featureLineDF
.
y
=
featureLineDFy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2520,10 +2520,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2520,10 +2520,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
featureLineGFx
=
biuParse
(
data
,
&
data
);
BIU
featureLineGFx
=
biuParse
(
data
,
&
data
);
BIU
featureLineGFy
=
biuParse
(
data
);
BIU
featureLineGFy
=
biuParse
(
data
);
dim
->
m_featureLineGOx
=
featureLineGOx
;
dim
->
m_featureLineGO
.
x
=
featureLineGOx
;
dim
->
m_featureLineGOy
=
featureLineGOy
;
dim
->
m_featureLineGO
.
y
=
featureLineGOy
;
dim
->
m_featureLineGFx
=
featureLineGFx
;
dim
->
m_featureLineGF
.
x
=
featureLineGFx
;
dim
->
m_featureLineGFy
=
featureLineGFy
;
dim
->
m_featureLineGF
.
y
=
featureLineGFy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2537,10 +2537,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2537,10 +2537,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
arrowD1Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowD1Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowD1Fy
=
biuParse
(
data
);
BIU
arrowD1Fy
=
biuParse
(
data
);
dim
->
m_arrowD1Ox
=
arrowD10x
;
dim
->
m_arrowD1O
.
x
=
arrowD10x
;
dim
->
m_arrowD1Oy
=
arrowD10y
;
dim
->
m_arrowD1O
.
y
=
arrowD10y
;
dim
->
m_arrowD1Fx
=
arrowD1Fx
;
dim
->
m_arrowD1F
.
x
=
arrowD1Fx
;
dim
->
m_arrowD1Fy
=
arrowD1Fy
;
dim
->
m_arrowD1F
.
y
=
arrowD1Fy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2554,10 +2554,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2554,10 +2554,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
arrowD2Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowD2Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowD2Fy
=
biuParse
(
data
,
&
data
);
BIU
arrowD2Fy
=
biuParse
(
data
,
&
data
);
dim
->
m_arrowD2Ox
=
arrowD2Ox
;
dim
->
m_arrowD2O
.
x
=
arrowD2Ox
;
dim
->
m_arrowD2Oy
=
arrowD2Oy
;
dim
->
m_arrowD2O
.
y
=
arrowD2Oy
;
dim
->
m_arrowD2Fx
=
arrowD2Fx
;
dim
->
m_arrowD2F
.
x
=
arrowD2Fx
;
dim
->
m_arrowD2Fy
=
arrowD2Fy
;
dim
->
m_arrowD2F
.
y
=
arrowD2Fy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2570,10 +2570,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2570,10 +2570,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
arrowG1Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowG1Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowG1Fy
=
biuParse
(
data
,
&
data
);
BIU
arrowG1Fy
=
biuParse
(
data
,
&
data
);
dim
->
m_arrowG1Ox
=
arrowG1Ox
;
dim
->
m_arrowG1O
.
x
=
arrowG1Ox
;
dim
->
m_arrowG1Oy
=
arrowG1Oy
;
dim
->
m_arrowG1O
.
y
=
arrowG1Oy
;
dim
->
m_arrowG1Fx
=
arrowG1Fx
;
dim
->
m_arrowG1F
.
x
=
arrowG1Fx
;
dim
->
m_arrowG1Fy
=
arrowG1Fy
;
dim
->
m_arrowG1F
.
y
=
arrowG1Fy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
...
@@ -2586,10 +2586,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
...
@@ -2586,10 +2586,10 @@ void LEGACY_PLUGIN::loadDIMENSION()
BIU
arrowG2Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowG2Fx
=
biuParse
(
data
,
&
data
);
BIU
arrowG2Fy
=
biuParse
(
data
,
&
data
);
BIU
arrowG2Fy
=
biuParse
(
data
,
&
data
);
dim
->
m_arrowG2Ox
=
arrowG2Ox
;
dim
->
m_arrowG2O
.
x
=
arrowG2Ox
;
dim
->
m_arrowG2Oy
=
arrowG2Oy
;
dim
->
m_arrowG2O
.
y
=
arrowG2Oy
;
dim
->
m_arrowG2Fx
=
arrowG2Fx
;
dim
->
m_arrowG2F
.
x
=
arrowG2Fx
;
dim
->
m_arrowG2Fy
=
arrowG2Fy
;
dim
->
m_arrowG2F
.
y
=
arrowG2Fy
;
(
void
)
ignore
;
(
void
)
ignore
;
}
}
}
}
...
@@ -3743,38 +3743,38 @@ void LEGACY_PLUGIN::saveDIMENTION( const DIMENSION* me ) const
...
@@ -3743,38 +3743,38 @@ void LEGACY_PLUGIN::saveDIMENTION( const DIMENSION* me ) const
);
);
fprintf
(
m_fp
,
"Sb %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"Sb %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_crossBarO
x
,
me
->
m_crossBarO
y
).
c_str
(),
fmtBIUPair
(
me
->
m_crossBarO
.
x
,
me
->
m_crossBarO
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_crossBarF
x
,
me
->
m_crossBarF
y
).
c_str
(),
fmtBIUPair
(
me
->
m_crossBarF
.
x
,
me
->
m_crossBarF
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"Sd %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"Sd %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_featureLineDO
x
,
me
->
m_featureLineDO
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineDO
.
x
,
me
->
m_featureLineDO
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineDF
x
,
me
->
m_featureLineDF
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineDF
.
x
,
me
->
m_featureLineDF
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"Sg %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"Sg %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_featureLineGO
x
,
me
->
m_featureLineGO
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineGO
.
x
,
me
->
m_featureLineGO
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineGF
x
,
me
->
m_featureLineGF
y
).
c_str
(),
fmtBIUPair
(
me
->
m_featureLineGF
.
x
,
me
->
m_featureLineGF
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"S1 %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"S1 %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_arrowD1O
x
,
me
->
m_arrowD1O
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD1O
.
x
,
me
->
m_arrowD1O
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD1F
x
,
me
->
m_arrowD1F
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD1F
.
x
,
me
->
m_arrowD1F
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"S2 %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"S2 %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_arrowD2O
x
,
me
->
m_arrowD2O
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD2O
.
x
,
me
->
m_arrowD2O
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD2F
x
,
me
->
m_arrowD2F
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowD2F
.
x
,
me
->
m_arrowD2F
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"S3 %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"S3 %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_arrowG1O
x
,
me
->
m_arrowG1O
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG1O
.
x
,
me
->
m_arrowG1O
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG1F
x
,
me
->
m_arrowG1F
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG1F
.
x
,
me
->
m_arrowG1F
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"S4 %d %s %s %s
\n
"
,
S_SEGMENT
,
fprintf
(
m_fp
,
"S4 %d %s %s %s
\n
"
,
S_SEGMENT
,
fmtBIUPair
(
me
->
m_arrowG2O
x
,
me
->
m_arrowG2O
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG2O
.
x
,
me
->
m_arrowG2O
.
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG2F
x
,
me
->
m_arrowG2F
y
).
c_str
(),
fmtBIUPair
(
me
->
m_arrowG2F
.
x
,
me
->
m_arrowG2F
.
y
).
c_str
(),
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fmtBIU
(
me
->
GetWidth
()
).
c_str
()
);
fprintf
(
m_fp
,
"$endCOTATION
\n
"
);
fprintf
(
m_fp
,
"$endCOTATION
\n
"
);
...
...
pcbnew/pcb_parser.cpp
View file @
a674dd65
...
@@ -1418,8 +1418,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1418,8 +1418,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_featureLineDO
x
,
&
dimension
->
m_featureLineDO
y
);
parseXY
(
&
dimension
->
m_featureLineDO
.
x
,
&
dimension
->
m_featureLineDO
.
y
);
parseXY
(
&
dimension
->
m_featureLineDF
x
,
&
dimension
->
m_featureLineDF
y
);
parseXY
(
&
dimension
->
m_featureLineDF
.
x
,
&
dimension
->
m_featureLineDF
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1431,8 +1431,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1431,8 +1431,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_featureLineGO
x
,
&
dimension
->
m_featureLineGO
y
);
parseXY
(
&
dimension
->
m_featureLineGO
.
x
,
&
dimension
->
m_featureLineGO
.
y
);
parseXY
(
&
dimension
->
m_featureLineGF
x
,
&
dimension
->
m_featureLineGF
y
);
parseXY
(
&
dimension
->
m_featureLineGF
.
x
,
&
dimension
->
m_featureLineGF
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1445,8 +1445,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1445,8 +1445,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_crossBarO
x
,
&
dimension
->
m_crossBarO
y
);
parseXY
(
&
dimension
->
m_crossBarO
.
x
,
&
dimension
->
m_crossBarO
.
y
);
parseXY
(
&
dimension
->
m_crossBarF
x
,
&
dimension
->
m_crossBarF
y
);
parseXY
(
&
dimension
->
m_crossBarF
.
x
,
&
dimension
->
m_crossBarF
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1458,8 +1458,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1458,8 +1458,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_arrowD1O
x
,
&
dimension
->
m_arrowD1O
y
);
parseXY
(
&
dimension
->
m_arrowD1O
.
x
,
&
dimension
->
m_arrowD1O
.
y
);
parseXY
(
&
dimension
->
m_arrowD1F
x
,
&
dimension
->
m_arrowD1F
y
);
parseXY
(
&
dimension
->
m_arrowD1F
.
x
,
&
dimension
->
m_arrowD1F
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1471,8 +1471,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1471,8 +1471,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_arrowD2O
x
,
&
dimension
->
m_arrowD2O
y
);
parseXY
(
&
dimension
->
m_arrowD2O
.
x
,
&
dimension
->
m_arrowD2O
.
y
);
parseXY
(
&
dimension
->
m_arrowD2F
x
,
&
dimension
->
m_arrowD2F
y
);
parseXY
(
&
dimension
->
m_arrowD2F
.
x
,
&
dimension
->
m_arrowD2F
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1484,8 +1484,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1484,8 +1484,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_arrowG1O
x
,
&
dimension
->
m_arrowG1O
y
);
parseXY
(
&
dimension
->
m_arrowG1O
.
x
,
&
dimension
->
m_arrowG1O
.
y
);
parseXY
(
&
dimension
->
m_arrowG1F
x
,
&
dimension
->
m_arrowG1F
y
);
parseXY
(
&
dimension
->
m_arrowG1F
.
x
,
&
dimension
->
m_arrowG1F
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
@@ -1497,8 +1497,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
...
@@ -1497,8 +1497,8 @@ DIMENSION* PCB_PARSER::parseDIMENSION() throw( IO_ERROR, PARSE_ERROR )
if
(
token
!=
T_pts
)
if
(
token
!=
T_pts
)
Expecting
(
T_pts
);
Expecting
(
T_pts
);
parseXY
(
&
dimension
->
m_arrowG2O
x
,
&
dimension
->
m_arrowG2O
y
);
parseXY
(
&
dimension
->
m_arrowG2O
.
x
,
&
dimension
->
m_arrowG2O
.
y
);
parseXY
(
&
dimension
->
m_arrowG2F
x
,
&
dimension
->
m_arrowG2F
y
);
parseXY
(
&
dimension
->
m_arrowG2F
.
x
,
&
dimension
->
m_arrowG2F
.
y
);
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
NeedRIGHT
();
break
;
break
;
...
...
pcbnew/plot_brditems_plotter.cpp
View file @
a674dd65
...
@@ -277,32 +277,32 @@ void BRDITEMS_PLOTTER::PlotDimension( DIMENSION* aDim )
...
@@ -277,32 +277,32 @@ void BRDITEMS_PLOTTER::PlotDimension( DIMENSION* aDim )
PlotTextePcb
(
&
aDim
->
m_Text
);
PlotTextePcb
(
&
aDim
->
m_Text
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_crossBarOx
,
aDim
->
m_crossBarOy
)
);
draw
.
SetStart
(
aDim
->
m_crossBarO
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_crossBarFx
,
aDim
->
m_crossBarFy
)
);
draw
.
SetEnd
(
aDim
->
m_crossBarF
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_featureLineGOx
,
aDim
->
m_featureLineGOy
)
);
draw
.
SetStart
(
aDim
->
m_featureLineGO
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_featureLineGFx
,
aDim
->
m_featureLineGFy
)
);
draw
.
SetEnd
(
aDim
->
m_featureLineGF
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_featureLineDOx
,
aDim
->
m_featureLineDOy
)
);
draw
.
SetStart
(
aDim
->
m_featureLineDO
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_featureLineDFx
,
aDim
->
m_featureLineDFy
)
);
draw
.
SetEnd
(
aDim
->
m_featureLineDF
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_arrowD1Ox
,
aDim
->
m_arrowD1Oy
)
);
draw
.
SetStart
(
aDim
->
m_arrowD1O
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_arrowD1Fx
,
aDim
->
m_arrowD1Fy
)
);
draw
.
SetEnd
(
aDim
->
m_arrowD1F
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_arrowD2Ox
,
aDim
->
m_arrowD2Oy
)
);
draw
.
SetStart
(
aDim
->
m_arrowD2O
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_arrowD2Fx
,
aDim
->
m_arrowD2Fy
)
);
draw
.
SetEnd
(
aDim
->
m_arrowD2F
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_arrowG1Ox
,
aDim
->
m_arrowG1Oy
)
);
draw
.
SetStart
(
aDim
->
m_arrowG1O
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_arrowG1Fx
,
aDim
->
m_arrowG1Fy
)
);
draw
.
SetEnd
(
aDim
->
m_arrowG1F
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
draw
.
SetStart
(
wxPoint
(
aDim
->
m_arrowG2Ox
,
aDim
->
m_arrowG2Oy
)
);
draw
.
SetStart
(
aDim
->
m_arrowG2O
);
draw
.
SetEnd
(
wxPoint
(
aDim
->
m_arrowG2Fx
,
aDim
->
m_arrowG2Fy
)
);
draw
.
SetEnd
(
aDim
->
m_arrowG2F
);
PlotDrawSegment
(
&
draw
);
PlotDrawSegment
(
&
draw
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment