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 146 of file view_overlay.cpp.

Constructor & Destructor Documentation

◆ COMMAND_POINT_POLYGON()

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

Definition at line 148 of file view_overlay.cpp.

149  {
150  m_pointList.reserve( aListSize );
151 
152  for( int ii = 0; ii < aListSize; ii++ )
153  m_pointList.push_back( aPointList[ii] );
154  }

References m_pointList.

Member Function Documentation

◆ Execute()

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 156 of file view_overlay.cpp.

157  {
158  aView->GetGAL()->DrawPolygon( &m_pointList[0], (int)m_pointList.size() );
159  }

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

Member Data Documentation

◆ m_pointList

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

Definition at line 161 of file view_overlay.cpp.

Referenced by COMMAND_POINT_POLYGON(), and Execute().


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