2021-03-03 11:48:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{
|
|
|
|
#include <pcb_group.h>
|
|
|
|
%}
|
2023-04-16 19:08:10 +00:00
|
|
|
%include pcb_group.h
|
|
|
|
|
|
|
|
%extend PCB_GROUP
|
|
|
|
{
|
|
|
|
std::deque<BOARD_ITEM*> GetItemsDeque()
|
|
|
|
{
|
|
|
|
std::deque<BOARD_ITEM*> result;
|
|
|
|
|
|
|
|
const std::unordered_set<BOARD_ITEM*> items = $self->GetItems();
|
|
|
|
|
|
|
|
for(BOARD_ITEM* item: items)
|
|
|
|
result.push_back(item);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
%pythoncode
|
|
|
|
%{
|
|
|
|
def GetItems(self):
|
|
|
|
return [item.Cast() for item in self.GetItemsDeque()]
|
|
|
|
%}
|
|
|
|
}
|