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

Public Member Functions

 COMMAND_CIRCLE (const VECTOR2D &aCenter, double aRadius)
 
virtual void Execute (VIEW *aView) const override
 

Public Attributes

VECTOR2D m_center
 
double m_radius
 

Detailed Description

Definition at line 60 of file view_overlay.cpp.

Constructor & Destructor Documentation

KIGFX::VIEW_OVERLAY::COMMAND_CIRCLE::COMMAND_CIRCLE ( const VECTOR2D aCenter,
double  aRadius 
)
inline

Definition at line 62 of file view_overlay.cpp.

62  :
63  m_center(aCenter),
64  m_radius(aRadius) {}

Member Function Documentation

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

Implements KIGFX::VIEW_OVERLAY::COMMAND.

Definition at line 66 of file view_overlay.cpp.

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

67  {
68  aView->GetGAL()->DrawCircle( m_center, m_radius );
69  }

Member Data Documentation

VECTOR2D KIGFX::VIEW_OVERLAY::COMMAND_CIRCLE::m_center

Definition at line 71 of file view_overlay.cpp.

double KIGFX::VIEW_OVERLAY::COMMAND_CIRCLE::m_radius

Definition at line 72 of file view_overlay.cpp.


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