KiCad PCB EDA Suite
ee_tool_base.h File Reference
#include <math/vector2d.h>
#include <tool/tool_event.h>
#include <tool/tool_interactive.h>
#include <tool/tool_manager.h>
#include <tool/tool_menu.h>
#include <tool/actions.h>
#include <tools/ee_selection_tool.h>
#include <sch_view.h>
#include <sch_edit_frame.h>
#include <symbol_edit_frame.h>
#include <undo_redo_container.h>

Go to the source code of this file.

Classes

class  EE_TOOL_BASE< T >
 A foundation class for a tool operating on a schematic or symbol. More...
 

Functions

VECTOR2I mapCoords (const wxPoint &aCoord)
 
wxPoint mapCoords (const VECTOR2I &aCoord)
 
wxPoint mapCoords (const int x, const int y)
 

Function Documentation

◆ mapCoords() [1/3]

VECTOR2I mapCoords ( const wxPoint &  aCoord)
inline

Definition at line 183 of file ee_tool_base.h.

184 {
185  return VECTOR2I( aCoord.x, -aCoord.y );
186 }
VECTOR2< int > VECTOR2I
Definition: vector2d.h:623

◆ mapCoords() [2/3]

wxPoint mapCoords ( const VECTOR2I aCoord)
inline

Definition at line 188 of file ee_tool_base.h.

189 {
190  return wxPoint( aCoord.x, -aCoord.y );
191 }

References VECTOR2< T >::x, and VECTOR2< T >::y.

◆ mapCoords() [3/3]

wxPoint mapCoords ( const int  x,
const int  y 
)
inline

Definition at line 193 of file ee_tool_base.h.

194 {
195  return wxPoint( x, -y );
196 }