router: move IsFlashedOnLayer to the IFACE_BASE class so that it can be used in the debugger tool
This commit is contained in:
parent
b401e98c80
commit
4192c0a709
|
@ -1178,7 +1178,7 @@ bool PNS_KICAD_IFACE::IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool PNS_KICAD_IFACE::IsFlashedOnLayer( const PNS::ITEM* aItem, int aLayer ) const
|
bool PNS_KICAD_IFACE_BASE::IsFlashedOnLayer( const PNS::ITEM* aItem, int aLayer ) const
|
||||||
{
|
{
|
||||||
/// Default is all layers
|
/// Default is all layers
|
||||||
if( aLayer < 0 )
|
if( aLayer < 0 )
|
||||||
|
|
|
@ -56,8 +56,8 @@ public:
|
||||||
void SetBoard( BOARD* aBoard );
|
void SetBoard( BOARD* aBoard );
|
||||||
void SyncWorld( PNS::NODE* aWorld ) override;
|
void SyncWorld( PNS::NODE* aWorld ) override;
|
||||||
bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const override { return true; };
|
bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const override { return true; };
|
||||||
bool IsFlashedOnLayer( const PNS::ITEM* aItem, int aLayer ) const override { return true; };
|
bool IsFlashedOnLayer( const PNS::ITEM* aItem, int aLayer ) const override;
|
||||||
bool IsItemVisible( const PNS::ITEM* aItem ) const override { return true; }
|
bool IsItemVisible( const PNS::ITEM* aItem ) const override { return true; };
|
||||||
void HideItem( PNS::ITEM* aItem ) override {}
|
void HideItem( PNS::ITEM* aItem ) override {}
|
||||||
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false ) override {}
|
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false ) override {}
|
||||||
void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) override {}
|
void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) override {}
|
||||||
|
@ -114,7 +114,6 @@ public:
|
||||||
void EraseView() override;
|
void EraseView() override;
|
||||||
bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const override;
|
bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const override;
|
||||||
bool IsItemVisible( const PNS::ITEM* aItem ) const override;
|
bool IsItemVisible( const PNS::ITEM* aItem ) const override;
|
||||||
bool IsFlashedOnLayer( const PNS::ITEM* aItem, int aLayer ) const override;
|
|
||||||
void HideItem( PNS::ITEM* aItem ) override;
|
void HideItem( PNS::ITEM* aItem ) override;
|
||||||
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false ) override;
|
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false ) override;
|
||||||
void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) override;
|
void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) override;
|
||||||
|
|
Loading…
Reference in New Issue