KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRAPHIC_EXTEND_PLANNER Namespace Reference

Functions

GRAPHIC_ENDPOINT NearestEndpoint (const BOARD_ITEM &aSource, const VECTOR2I &aPointer)
 
BOX2I QueryBounds (const BOARD_ITEM &aSource, GRAPHIC_ENDPOINT aEndpoint, const BOX2I &aWorldBounds)
 
GRAPHIC_EDIT_RESULT Plan (const BOARD_ITEM &aSource, GRAPHIC_ENDPOINT aEndpoint, const std::vector< const BOARD_ITEM * > &aBoundaries)
 
BOX2I QueryBounds (const BOARD_ITEM &aSource, const VECTOR2I &aPointer, const BOX2I &aWorldBounds)
 Take the endpoint from the pointer. What an interactive caller wants.
 
GRAPHIC_EDIT_RESULT Plan (const BOARD_ITEM &aSource, const VECTOR2I &aPointer, const std::vector< const BOARD_ITEM * > &aBoundaries)
 

Function Documentation

◆ NearestEndpoint()

GRAPHIC_ENDPOINT GRAPHIC_EXTEND_PLANNER::NearestEndpoint ( const BOARD_ITEM & aSource,
const VECTOR2I & aPointer )

◆ Plan() [1/2]

GRAPHIC_EDIT_RESULT GRAPHIC_EXTEND_PLANNER::Plan ( const BOARD_ITEM & aSource,
const VECTOR2I & aPointer,
const std::vector< const BOARD_ITEM * > & aBoundaries )

Definition at line 273 of file graphic_extend.cpp.

References NearestEndpoint(), and Plan().

◆ Plan() [2/2]

GRAPHIC_EDIT_RESULT GRAPHIC_EXTEND_PLANNER::Plan ( const BOARD_ITEM & aSource,
GRAPHIC_ENDPOINT aEndpoint,
const std::vector< const BOARD_ITEM * > & aBoundaries )

◆ QueryBounds() [1/2]

BOX2I GRAPHIC_EXTEND_PLANNER::QueryBounds ( const BOARD_ITEM & aSource,
const VECTOR2I & aPointer,
const BOX2I & aWorldBounds )

Take the endpoint from the pointer. What an interactive caller wants.

Definition at line 266 of file graphic_extend.cpp.

References NearestEndpoint(), and QueryBounds().

◆ QueryBounds() [2/2]