Fix absence of PCB_TARGET class in python interface.
This commit is contained in:
parent
82339a9235
commit
4280a1f5d3
|
@ -84,6 +84,11 @@ public:
|
|||
|
||||
bool HitTest( const wxPoint& aPosition ) const;
|
||||
|
||||
wxString GetClass() const
|
||||
{
|
||||
return wxT( "PCB_TARGET" );
|
||||
}
|
||||
|
||||
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
|
||||
* bool aContained = true, int aAccuracy ) const
|
||||
*/
|
||||
|
|
|
@ -47,8 +47,9 @@
|
|||
EDGE_MODULE* Cast_to_EDGE_MODULE() { return dynamic_cast<EDGE_MODULE*>(self); }
|
||||
D_PAD* Cast_to_D_PAD() { return dynamic_cast<D_PAD*>(self); }
|
||||
TRACK* Cast_to_TRACK() { return dynamic_cast<TRACK*>(self); }
|
||||
ZONE_CONTAINER* Cast_to_ZONE_CONTAINER() { return dynamic_cast<ZONE_CONTAINER*>(self);}
|
||||
VIA* Cast_to_VIA() { return dynamic_cast<VIA*>(self); }
|
||||
ZONE_CONTAINER* Cast_to_ZONE_CONTAINER() { return dynamic_cast<ZONE_CONTAINER*>(self);}
|
||||
PCB_TARGET* Cast_to_PCB_TARGET() { return dynamic_cast<PCB_TARGET*>(self); }
|
||||
|
||||
|
||||
%pythoncode
|
||||
|
@ -77,6 +78,8 @@
|
|||
return self.Cast_to_VIA()
|
||||
elif ct=="TRACK":
|
||||
return self.Cast_to_TRACK()
|
||||
elif ct=="PCB_TARGET":
|
||||
return self.Cast_to_PCB_TARGET()
|
||||
elif ct=="ZONE_CONTAINER":
|
||||
return self.Cast_to_ZONE_CONTAINER()
|
||||
else:
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
#include <class_dimension.h>
|
||||
#include <class_drawsegment.h>
|
||||
#include <class_marker_pcb.h>
|
||||
#include <class_mire.h>
|
||||
#include <class_text_mod.h>
|
||||
#include <class_edge_mod.h>
|
||||
#include <dlist.h>
|
||||
|
@ -133,6 +134,7 @@
|
|||
%include <class_dimension.h>
|
||||
%include <class_drawsegment.h>
|
||||
%include <class_marker_pcb.h>
|
||||
%include <class_mire.h>
|
||||
%include <class_text_mod.h>
|
||||
%include <class_edge_mod.h>
|
||||
%include <dlist.h>
|
||||
|
|
Loading…
Reference in New Issue