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
1fd73dff
Commit
1fd73dff
authored
Jan 08, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plot PS function now properly plots all sheets in a complex hierarchy.
parent
00dadcbb
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
182 additions
and
118 deletions
+182
-118
common_plot_functions.cpp
common/common_plot_functions.cpp
+4
-5
plothpgl.cpp
eeschema/plothpgl.cpp
+1
-1
plotps.cpp
eeschema/plotps.cpp
+171
-109
plotps.h
eeschema/plotps.h
+3
-2
plot_common.h
include/plot_common.h
+1
-1
wxstruct.h
include/wxstruct.h
+2
-0
No files found.
common/common_plot_functions.cpp
View file @
1fd73dff
...
@@ -57,9 +57,9 @@ void Setg_Plot_PlotOffset( wxPoint offset )
...
@@ -57,9 +57,9 @@ void Setg_Plot_PlotOffset( wxPoint offset )
}
}
/*******************************************************/
/*******************************************************
*******************
/
void
PlotWorkSheet
(
int
format_plot
,
BASE_SCREEN
*
screen
)
void
WinEDA_DrawFrame
::
PlotWorkSheet
(
int
format_plot
,
BASE_SCREEN
*
screen
)
/*******************************************************/
/*******************************************************
*******************
/
/* Plot sheet references
/* Plot sheet references
* margin is in mils (1/1000 inch)
* margin is in mils (1/1000 inch)
...
@@ -400,8 +400,7 @@ void PlotWorkSheet( int format_plot, BASE_SCREEN* screen )
...
@@ -400,8 +400,7 @@ void PlotWorkSheet( int format_plot, BASE_SCREEN* screen )
break
;
break
;
case
WS_FULLSHEETNAME
:
case
WS_FULLSHEETNAME
:
msg
+=
GetScreenDesc
();
// msg += GetScreenDesc();
break
;
break
;
case
WS_COMPANY_NAME
:
case
WS_COMPANY_NAME
:
...
...
eeschema/plothpgl.cpp
View file @
1fd73dff
...
@@ -608,7 +608,7 @@ void WinEDA_PlotHPGLFrame::Plot_1_Page_HPGL( const wxString& FullFileName,
...
@@ -608,7 +608,7 @@ void WinEDA_PlotHPGLFrame::Plot_1_Page_HPGL( const wxString& FullFileName,
/* Init : */
/* Init : */
PrintHeaderHPGL
(
PlotOutput
,
g_HPGL_Pen_Descr
.
m_Pen_Speed
,
g_HPGL_Pen_Descr
.
m_Pen_Num
);
PrintHeaderHPGL
(
PlotOutput
,
g_HPGL_Pen_Descr
.
m_Pen_Speed
,
g_HPGL_Pen_Descr
.
m_Pen_Num
);
PlotWorkSheet
(
PLOT_FORMAT_HPGL
,
screen
);
m_Parent
->
PlotWorkSheet
(
PLOT_FORMAT_HPGL
,
screen
);
DrawList
=
screen
->
EEDrawList
;
DrawList
=
screen
->
EEDrawList
;
while
(
DrawList
)
/* tracage */
while
(
DrawList
)
/* tracage */
...
...
eeschema/plotps.cpp
View file @
1fd73dff
This diff is collapsed.
Click to expand it.
eeschema/plotps.h
View file @
1fd73dff
...
@@ -73,7 +73,7 @@ class WinEDA_PlotPSFrame: public wxDialog
...
@@ -73,7 +73,7 @@ class WinEDA_PlotPSFrame: public wxDialog
public
:
public
:
/// Constructors
/// Constructors
WinEDA_PlotPSFrame
(
);
WinEDA_PlotPSFrame
(
);
WinEDA_PlotPSFrame
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_PLOTPSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_PLOTPSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_PLOTPSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_PLOTPSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_PLOTPSFRAME_STYLE
);
WinEDA_PlotPSFrame
(
WinEDA_DrawFrame
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_PLOTPSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_PLOTPSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_PLOTPSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_PLOTPSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_PLOTPSFRAME_STYLE
);
/// Creation
/// Creation
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_PLOTPSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_PLOTPSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_PLOTPSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_PLOTPSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_PLOTPSFRAME_STYLE
);
bool
Create
(
wxWindow
*
parent
,
wxWindowID
id
=
SYMBOL_WINEDA_PLOTPSFRAME_IDNAME
,
const
wxString
&
caption
=
SYMBOL_WINEDA_PLOTPSFRAME_TITLE
,
const
wxPoint
&
pos
=
SYMBOL_WINEDA_PLOTPSFRAME_POSITION
,
const
wxSize
&
size
=
SYMBOL_WINEDA_PLOTPSFRAME_SIZE
,
long
style
=
SYMBOL_WINEDA_PLOTPSFRAME_STYLE
);
...
@@ -106,7 +106,7 @@ public:
...
@@ -106,7 +106,7 @@ public:
void
InitOptVars
();
void
InitOptVars
();
void
CreatePSFile
(
int
AllPages
,
int
pagesize
);
void
CreatePSFile
(
int
AllPages
,
int
pagesize
);
void
PlotOneSheetPS
(
const
wxString
&
FileName
,
void
PlotOneSheetPS
(
const
wxString
&
FileName
,
BASE
_SCREEN
*
screen
,
Ki_PageDescr
*
sheet
,
int
BBox
[
4
],
wxPoint
plot_offset
);
SCH
_SCREEN
*
screen
,
Ki_PageDescr
*
sheet
,
int
BBox
[
4
],
wxPoint
plot_offset
);
/// Should we show tooltips?
/// Should we show tooltips?
static
bool
ShowToolTips
();
static
bool
ShowToolTips
();
...
@@ -119,6 +119,7 @@ public:
...
@@ -119,6 +119,7 @@ public:
wxBoxSizer
*
m_DefaultLineSizeCtrlSizer
;
wxBoxSizer
*
m_DefaultLineSizeCtrlSizer
;
wxTextCtrl
*
m_MsgBox
;
wxTextCtrl
*
m_MsgBox
;
////@end WinEDA_PlotPSFrame member variables
////@end WinEDA_PlotPSFrame member variables
WinEDA_DrawFrame
*
m_Parent
;
WinEDA_ValueCtrl
*
m_DefaultLineSizeCtrl
;
WinEDA_ValueCtrl
*
m_DefaultLineSizeCtrl
;
};
};
...
...
include/plot_common.h
View file @
1fd73dff
...
@@ -46,7 +46,7 @@ extern int g_Plot_PlotOrientOptions, g_Plot_PenState;
...
@@ -46,7 +46,7 @@ extern int g_Plot_PlotOrientOptions, g_Plot_PenState;
void
SetPlotScale
(
double
aXScale
,
double
aYScale
);
// Set the plot scale for the current plotting)
void
SetPlotScale
(
double
aXScale
,
double
aYScale
);
// Set the plot scale for the current plotting)
void
Setg_Plot_PlotOffset
(
wxPoint
offset
);
// Set the plot offset for the current plotting)
void
Setg_Plot_PlotOffset
(
wxPoint
offset
);
// Set the plot offset for the current plotting)
void
InitPlotParametresGERBER
(
wxPoint
offset
,
double
aXScale
,
double
aYScale
);
void
InitPlotParametresGERBER
(
wxPoint
offset
,
double
aXScale
,
double
aYScale
);
void
PlotWorkSheet
(
int
format_plot
,
BASE_SCREEN
*
screen
);
// void PlotWorkSheet( int format_plot, BASE_SCREEN* screen ); now a member of WinEDA_DrawFrame
void
UserToDeviceCoordinate
(
wxPoint
&
pos
);
void
UserToDeviceCoordinate
(
wxPoint
&
pos
);
// modifie les coord pos.x et pos.y pour le trace selon l'orientation, l'echelle, les offsets de trace
// modifie les coord pos.x et pos.y pour le trace selon l'orientation, l'echelle, les offsets de trace
...
...
include/wxstruct.h
View file @
1fd73dff
...
@@ -279,6 +279,8 @@ public:
...
@@ -279,6 +279,8 @@ public:
void
OnActivate
(
wxActivateEvent
&
event
);
void
OnActivate
(
wxActivateEvent
&
event
);
void
ReDrawPanel
();
void
ReDrawPanel
();
void
TraceWorkSheet
(
wxDC
*
DC
,
BASE_SCREEN
*
screen
,
int
line_width
);
void
TraceWorkSheet
(
wxDC
*
DC
,
BASE_SCREEN
*
screen
,
int
line_width
);
void
PlotWorkSheet
(
int
format_plot
,
BASE_SCREEN
*
screen
);
/** Function GetXYSheetReferences
/** Function GetXYSheetReferences
* Return the X,Y sheet references where the point position is located
* Return the X,Y sheet references where the point position is located
* @param aScreen = screen to use
* @param aScreen = screen to use
...
...
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