Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
kicad
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
KiCad
KiCad Source Code
kicad
Commits
5b574901
Commit
5b574901
authored
2 years ago
by
qu1ck
Committed by
jean-pierre charras
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix swig mappings for PCB_BITMAP
From Master branch.
parent
59b68154
No related branches found
No related tags found
Loading
Pipeline
#789196846
passed
2 years ago
Stage: build
Stage: test
Stage: report
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pcbnew/python/swig/board.i
+1
-0
1 addition, 0 deletions
pcbnew/python/swig/board.i
pcbnew/python/swig/board_item.i
+6
-0
6 additions, 0 deletions
pcbnew/python/swig/board_item.i
with
7 additions
and
0 deletions
pcbnew/python/swig/board.i
+
1
−
0
View file @
5b574901
...
...
@@ -64,6 +64,7 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints)
%
include
netclass
.
i
%
include
pcb_plot_params
.
i
%
include
pcb_group
.
i
%
include
pcb_bitmap
.
i
// std::vector templates
%
template
(
VIA_DIMENSION_Vector
)
std
::
vector
<
VIA_DIMENSION
>
;
...
...
This diff is collapsed.
Click to expand it.
pcbnew/python/swig/board_item.i
+
6
−
0
View file @
5b574901
...
...
@@ -68,6 +68,7 @@ class PCB_ARC;
class ZONE;
class FP_ZONE;
class PCB_TARGET;
class PCB_BITMAP;
// Anything targeted to the %wrapper section is extern "C" whereas code targeted
// to %header section is C++.
...
...
@@ -97,6 +98,7 @@ static PCB_ARC* Cast_to_PCB_ARC( BOARD_ITEM* );
static ZONE* Cast_to_ZONE( BOARD_ITEM* );
static FP_ZONE* Cast_to_FP_ZONE( BOARD_ITEM* );
static PCB_TARGET* Cast_to_PCB_TARGET( BOARD_ITEM* );
static PCB_BITMAP* Cast_to_PCB_BITMAP( BOARD_ITEM* );
#ifdef __cplusplus
} // extern "C"
...
...
@@ -126,6 +128,7 @@ static PCB_ARC* Cast_to_PCB_ARC( BOARD_ITEM* );
static
ZONE
*
Cast_to_ZONE
(
BOARD_ITEM
*
)
;
static
FP_ZONE
*
Cast_to_FP_ZONE
(
BOARD_ITEM
*
)
;
static
PCB_TARGET
*
Cast_to_PCB_TARGET
(
BOARD_ITEM
*
)
;
static
PCB_BITMAP
*
Cast_to_PCB_BITMAP
(
BOARD_ITEM
*
)
;
%
extend
BOARD_ITEM
...
...
@@ -174,6 +177,8 @@ static PCB_TARGET* Cast_to_PCB_TARGET( BOARD_ITEM* );
return Cast_to_PCB_ARC(self)
elif ct=="PCB_TARGET":
return Cast_to_PCB_TARGET(self)
elif ct=="PCB_BITMAP":
return Cast_to_PCB_BITMAP(self)
elif ct=="ZONE":
return Cast_to_ZONE(self)
else:
...
...
@@ -226,4 +231,5 @@ static PCB_ARC* Cast_to_PCB_ARC( BOARD_ITEM* self ) {
static ZONE* Cast_to_ZONE( BOARD_ITEM* self ) { return dynamic_cast<ZONE*>(self); }
static FP_ZONE* Cast_to_FP_ZONE( BOARD_ITEM* self ) { return dynamic_cast<FP_ZONE*>(self); }
static PCB_TARGET* Cast_to_PCB_TARGET( BOARD_ITEM* self ) { return dynamic_cast<PCB_TARGET*>(self); }
static PCB_BITMAP* Cast_to_PCB_BITMAP( BOARD_ITEM* self ) { return dynamic_cast<PCB_BITMAP*>(self); }
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment