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
5dd89861
Commit
5dd89861
authored
Sep 11, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
0a420fd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
36 deletions
+12
-36
collectors.h
pcbnew/collectors.h
+12
-36
No files found.
pcbnew/collectors.h
View file @
5dd89861
...
@@ -183,17 +183,19 @@ protected:
...
@@ -183,17 +183,19 @@ protected:
/**
/**
* Determines which items are to be collected by Inspect()
* Determines which items are to be collected by Inspect()
*/
*/
const
COLLECTORS_GUIDE
*
m_Guide
;
const
COLLECTORS_GUIDE
*
m_Guide
;
public
:
public
:
/// A scan list for all editable board items, like PcbGeneralLocateAndDisplay()
/**
* A scan list for all editable board items, like PcbGeneralLocateAndDisplay()
*/
static
const
KICAD_T
AllBoardItems
[];
static
const
KICAD_T
AllBoardItems
[];
/**
/**
* A scan list for all primary board items, omitting items which are sub
sidiary
to
* A scan list for all primary board items, omitting items which are sub
ordinate
to
* a MODULE, such as D_PAD and TEXTEMODULE.
* a MODULE, such as D_PAD and TEXTEMODULE.
*/
*/
static
const
KICAD_T
PrimaryItems
[];
static
const
KICAD_T
PrimaryItems
[];
...
@@ -220,31 +222,12 @@ public:
...
@@ -220,31 +222,12 @@ public:
/**
/**
* Function SetGuide
* Function SetGuide
* records which COLLECTORS_GUIDE to use
d
.
* records which COLLECTORS_GUIDE to use.
* @param aGuide Which guide to use in the collection.
* @param aGuide Which guide to use in the collection.
*/
*/
void
SetGuide
(
const
COLLECTORS_GUIDE
*
aGuide
)
{
m_Guide
=
aGuide
;
}
void
SetGuide
(
const
COLLECTORS_GUIDE
*
aGuide
)
{
m_Guide
=
aGuide
;
}
/**
* Function SetLayerMask
* takes a bit-mapped layer mask and records it. During the scan/search,
* this is used as a secondary search criterion. That is, if there is no direct
* layer match with COLLECTOR::m_PreferredLayer (the primary criterion),
* then an object on any layer given in this bit-map is recorded as a
* second choice object if it also HitTest()s true.
*
* @param aLayerMask A layer mask which has bits in it indicating which
* layers are acceptable. Caller must pay attention to which layers are
* visible, selected, etc. All those concerns are handled outside this
* class, as stated in the class Philosophy above.
void SetLayerMask( int aLayerMask )
{
m_LayerMask = aLayerMask;
}
*/
/**
/**
* Function operator[int]
* Function operator[int]
* overloads COLLECTOR::operator[](int) to return a BOARD_ITEM* instead of
* overloads COLLECTOR::operator[](int) to return a BOARD_ITEM* instead of
...
@@ -276,22 +259,15 @@ public:
...
@@ -276,22 +259,15 @@ public:
/**
/**
* Function Collect
* Function Collect
* scans a BOARD using this class's Inspector method, which does the collection.
* scans a BOARD using this class's Inspector method, which does the collection.
* @param board A BOARD to scan.
* @param aItem A BOARD_ITEM to scan, may be a BOARD or MODULE, or whatever.
* @param refPos A wxPoint to use in hit-testing.
* @param aScanList A list of KICAD_Ts with a terminating EOT, that specs
* @param aPreferredLayer The layer meeting the primary search criterion.
* what is to be collected and the priority order of the resultant
* @param aLayerMask The layers, in bit-mapped form, meeting the secondary search criterion.
* collection in "m_List".
void Collect( BOARD* board, const wxPoint& refPos, int aPreferredLayer, int aLayerMask );
*/
/**
* Function Collect
* scans a BOARD using this class's Inspector method, which does the collection.
* @param aItem A BOARD_ITEM to scan, may be a BOARD or MODULE, or whatever.
* @param aRefPos A wxPoint to use in hit-testing.
* @param aRefPos A wxPoint to use in hit-testing.
* @param aGuide The COLLECTORS_GUIDE to use in collecting items.
* @param aGuide The COLLECTORS_GUIDE to use in collecting items.
*/
*/
void
Collect
(
BOARD_ITEM
*
aItem
,
const
wxPoint
&
aRefPos
,
const
COLLECTORS_GUIDE
*
aGuide
);
void
Collect
(
BOARD_ITEM
*
aItem
,
const
KICAD_T
aScanList
[],
const
wxPoint
&
aRefPos
,
const
COLLECTORS_GUIDE
&
aGuide
);
};
};
...
...
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