Formatting.

This commit is contained in:
Jeff Young 2020-12-29 22:53:54 +00:00
parent 9a0f685a75
commit 1b93663627
2 changed files with 29 additions and 47 deletions

View File

@ -92,29 +92,29 @@ enum DRAG_MODE
class ROUTER_IFACE
{
public:
ROUTER_IFACE() {};
virtual ~ROUTER_IFACE() {};
ROUTER_IFACE() {};
virtual ~ROUTER_IFACE() {};
virtual void SyncWorld( NODE* aNode ) = 0;
virtual void AddItem( ITEM* aItem ) = 0;
virtual void RemoveItem( ITEM* aItem ) = 0;
virtual bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const = 0;
virtual bool IsItemVisible( const PNS::ITEM* aItem ) const = 0;
virtual bool IsOnLayer( const PNS::ITEM* aItem, int aLayer ) const = 0;
virtual void DisplayItem( const ITEM* aItem, int aColor = -1, int aClearance = -1, bool aEdit = false ) = 0;
virtual void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) = 0;
virtual void HideItem( ITEM* aItem ) = 0;
virtual void Commit() = 0;
virtual bool ImportSizes( SIZES_SETTINGS& aSizes, ITEM* aStartItem, int aNet ) = 0;
// virtual void Abort () = 0;
virtual void SyncWorld( NODE* aNode ) = 0;
virtual void AddItem( ITEM* aItem ) = 0;
virtual void RemoveItem( ITEM* aItem ) = 0;
virtual bool IsAnyLayerVisible( const LAYER_RANGE& aLayer ) const = 0;
virtual bool IsItemVisible( const PNS::ITEM* aItem ) const = 0;
virtual bool IsOnLayer( const PNS::ITEM* aItem, int aLayer ) const = 0;
virtual void DisplayItem( const ITEM* aItem, int aColor = -1, int aClearance = -1,
bool aEdit = false ) = 0;
virtual void DisplayRatline( const SHAPE_LINE_CHAIN& aRatline, int aColor = -1 ) = 0;
virtual void HideItem( ITEM* aItem ) = 0;
virtual void Commit() = 0;
virtual bool ImportSizes( SIZES_SETTINGS& aSizes, ITEM* aStartItem, int aNet ) = 0;
virtual void EraseView() = 0;
virtual void UpdateNet( int aNetCode ) = 0;
virtual void EraseView() = 0;
virtual void UpdateNet( int aNetCode ) = 0;
virtual PNS::NODE* GetWorld() const = 0;
virtual PNS::NODE* GetWorld() const = 0;
virtual RULE_RESOLVER* GetRuleResolver() = 0;
virtual DEBUG_DECORATOR* GetDebugDecorator() = 0;
virtual RULE_RESOLVER* GetRuleResolver() = 0;
virtual DEBUG_DECORATOR* GetDebugDecorator() = 0;
};
class ROUTER

View File

@ -35,7 +35,10 @@ namespace PNS {
class SOLID : public ITEM
{
public:
SOLID() : ITEM( SOLID_T ), m_shape( NULL ), m_alternateShape( NULL )
SOLID() :
ITEM( SOLID_T ),
m_shape( NULL ),
m_alternateShape( NULL )
{
m_movable = false;
m_padToDie = 0;
@ -74,10 +77,7 @@ public:
const SHAPE* Shape() const override { return m_shape; }
const SHAPE* AlternateShape() const override
{
return m_alternateShape;
}
const SHAPE* AlternateShape() const override { return m_alternateShape; }
const SHAPE_LINE_CHAIN Hull( int aClearance = 0, int aWalkaroundThickness = 0,
int aLayer = -1 ) const override;
@ -94,22 +94,11 @@ public:
m_alternateShape = shape;
}
const VECTOR2I& Pos() const
{
return m_pos;
}
const VECTOR2I& Pos() const { return m_pos; }
void SetPos( const VECTOR2I& aCenter );
int GetPadToDie() const
{
return m_padToDie;
}
void SetPadToDie( int aLen )
{
m_padToDie = aLen;
}
int GetPadToDie() const { return m_padToDie; }
void SetPadToDie( int aLen ) { m_padToDie = aLen; }
virtual VECTOR2I Anchor( int aN ) const override
{
@ -121,15 +110,8 @@ public:
return 1;
}
VECTOR2I Offset() const
{
return m_offset;
}
void SetOffset( const VECTOR2I& aOffset )
{
m_offset = aOffset;
}
VECTOR2I Offset() const { return m_offset; }
void SetOffset( const VECTOR2I& aOffset ) { m_offset = aOffset; }
double GetOrientation() const { return m_orientation; }
void SetOrientation( double aOrientation ) { m_orientation = aOrientation; }