KiCad PCB EDA Suite
KIGFX::VIEW_OVERLAY::COMMAND_POINT_POLYGON Struct Reference
Inheritance diagram for KIGFX::VIEW_OVERLAY::COMMAND_POINT_POLYGON:
KIGFX::VIEW_OVERLAY::COMMAND

Public Member Functions

 COMMAND_POINT_POLYGON (const VECTOR2D aPointList[], int aListSize)
 
virtual void Execute (VIEW *aView) const override
 

Public Attributes

std::vector< VECTOR2Dm_pointList
 

Detailed Description

Definition at line 188 of file view_overlay.cpp.

Constructor & Destructor Documentation

KIGFX::VIEW_OVERLAY::COMMAND_POINT_POLYGON::COMMAND_POINT_POLYGON ( const VECTOR2D  aPointList[],
int  aListSize 
)
inline

Definition at line 190 of file view_overlay.cpp.

191  {
192  m_pointList.reserve( aListSize );
193 
194  for( int ii = 0; ii < aListSize; ii++ )
195  m_pointList.push_back( aPointList[ii] );
196  }

Member Function Documentation

virtual void KIGFX::VIEW_OVERLAY::COMMAND_POINT_POLYGON::Execute ( VIEW aView) const
inlineoverridevirtual

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 198 of file view_overlay.cpp.

References KIGFX::GAL::DrawPolygon(), and KIGFX::VIEW::GetGAL().

199  {
200  aView->GetGAL()->DrawPolygon( &m_pointList[0], (int)m_pointList.size() );
201  }

Member Data Documentation

std::vector<VECTOR2D> KIGFX::VIEW_OVERLAY::COMMAND_POINT_POLYGON::m_pointList

Definition at line 203 of file view_overlay.cpp.


The documentation for this struct was generated from the following file: