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

Public Member Functions

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

Public Attributes

std::vector< VECTOR2Dm_pointList
 

Detailed Description

Definition at line 141 of file view_overlay.cpp.

Constructor & Destructor Documentation

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

Definition at line 143 of file view_overlay.cpp.

144  {
145  m_pointList.reserve( aListSize );
146 
147  for( int ii = 0; ii < aListSize; ii++ )
148  m_pointList.push_back( aPointList[ii] );
149  }

Member Function Documentation

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 151 of file view_overlay.cpp.

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

152  {
153  aView->GetGAL()->DrawPolyline( &m_pointList[0], (int)m_pointList.size() );
154  }

Member Data Documentation

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

Definition at line 156 of file view_overlay.cpp.


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