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
8e5665c2
Commit
8e5665c2
authored
Mar 13, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added calls to bool EDA_Rect::Intersects()
parent
c6cee52c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
change_log.txt
change_log.txt
+11
-1
eeredraw.cpp
eeschema/eeredraw.cpp
+5
-14
No files found.
change_log.txt
View file @
8e5665c2
...
...
@@ -5,11 +5,21 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2008-Mar-13 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
+all
Added bool EDA_Rect::Intersects().
+eeschema
Added provisionary calls to eeschema/eeredraw.cpp for
if( panel->m_ClipBox.Intersects( item->GetBoundingBox() ) )
2008-Mar-11 UPDATE Per Uddén <p.udden@telia.com>
================================================================================
+3d-viewer
* Fix TODO: Add S_ARC and S_CIRCLE shape render to board edge and module edge.
Ex. Now is a board with arcs at corners showing correctly.
Ex. Now is a board with arcs at corners showing correctly.
2008-Mar-10 UPDATE Dick Hollenbeck <dick@softplc.com>
...
...
eeschema/eeredraw.cpp
View file @
8e5665c2
...
...
@@ -158,24 +158,14 @@ void WinEDA_DrawPanel::PrintPage( wxDC* DC, bool Print_Sheet_Ref, int PrintMask
void
RedrawStructList
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
EDA_BaseStruct
*
Structs
,
int
DrawMode
,
int
Color
)
{
#if 0
// enable this when we have virtual GetBoundingBox():
wxRegion upd = panel->GetUpdateRegion(); // get the update rect list
// get the union of all rectangles in the update region, 'upd'
wxRect dirtyRects = upd.GetBox();
EDA_Rect boxtest;
#endif
while
(
Structs
)
{
if
(
Structs
->
Type
()
==
DRAW_PICK_ITEM_STRUCT_TYPE
)
{
EDA_BaseStruct
*
item
=
(
(
DrawPickedStruct
*
)
Structs
)
->
m_PickedStruct
;
// if( dirtyRects.Intersects( item->GetBoundingBox() ) )
// uncomment line below when there is a virtual EDA_BaseStruct::GetBoundingBox()
// if( panel->m_ClipBox.Intersects( item->GetBoundingBox() ) )
{
RedrawOneStruct
(
panel
,
DC
,
item
,
DrawMode
,
Color
);
}
...
...
@@ -184,7 +174,8 @@ void RedrawStructList( WinEDA_DrawPanel* panel, wxDC* DC,
{
if
(
!
(
Structs
->
m_Flags
&
IS_MOVED
)
)
{
// if( dirtyRects.Intersects( Structs->GetBoundingBox() ) )
// uncomment line below when there is a virtual EDA_BaseStruct::GetBoundingBox()
// if( panel->m_ClipBox.Intersects( Structs->GetBoundingBox() ) )
RedrawOneStruct
(
panel
,
DC
,
Structs
,
DrawMode
,
Color
);
}
}
...
...
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