PNS: Add CurrentStart() to placers.

This commit is contained in:
Mike Williams 2022-09-12 15:43:36 -04:00
parent dcc325b3b2
commit b1f2273bc6
7 changed files with 40 additions and 2 deletions

View File

@ -103,6 +103,14 @@ public:
*/
const ITEM_SET Traces() override;
/**
* Return the current start of the line being placed.
*/
const VECTOR2I& CurrentStart() const override
{
return m_currentStart;
}
/**
* Return the current end of the line being placed. It may not be equal to the cursor
* position due to collisions.

View File

@ -413,6 +413,12 @@ const ITEM_SET DP_MEANDER_PLACER::Traces()
}
const VECTOR2I& DP_MEANDER_PLACER::CurrentStart() const
{
return m_currentStart;
}
const VECTOR2I& DP_MEANDER_PLACER::CurrentEnd() const
{
return m_currentEnd;

View File

@ -91,6 +91,10 @@ public:
const ITEM_SET Traces() override;
/// @copydoc PLACEMENT_ALGO::CurrentStart()
const VECTOR2I& CurrentStart() const override;
/// @copydoc PLACEMENT_ALGO::CurrentEnd()
const VECTOR2I& CurrentEnd() const override;
/// @copydoc PLACEMENT_ALGO::CurrentNets()

View File

@ -148,6 +148,14 @@ public:
*/
const ITEM_SET Traces() override;
/**
* Return the current start of the line being placed.
*/
const VECTOR2I& CurrentStart() const override
{
return m_currentStart;
}
/**
* Return the current end of the line being placed. It may not be equal to the cursor
* position due to collisions.

View File

@ -252,6 +252,10 @@ const ITEM_SET MEANDER_PLACER::Traces()
return ITEM_SET( &m_currentTrace );
}
const VECTOR2I& MEANDER_PLACER::CurrentStart() const
{
return m_currentStart;
}
const VECTOR2I& MEANDER_PLACER::CurrentEnd() const
{

View File

@ -73,6 +73,9 @@ public:
/// @copydoc PLACEMENT_ALGO::Traces()
const ITEM_SET Traces() override;
/// @copydoc PLACEMENT_ALGO::CurrentStart()
const VECTOR2I& CurrentStart() const override;
/// @copydoc PLACEMENT_ALGO::CurrentEnd()
const VECTOR2I& CurrentEnd() const override;

View File

@ -123,6 +123,13 @@ public:
*/
virtual const ITEM_SET Traces() = 0;
/**
* Function CurrentStart()
*
* Returns the current start of the line(s) being placed/tuned.
*/
virtual const VECTOR2I& CurrentStart() const = 0;
/**
* Function CurrentEnd()
*
@ -191,8 +198,6 @@ public:
virtual void GetModifiedNets( std::vector<int> &aNets ) const
{
}
};
}