28using namespace std::placeholders;
45 typedef std::numeric_limits<int> coord_limits;
46 double pos = coord_limits::lowest() / 2 + coord_limits::epsilon();
47 double size = coord_limits::max() - coord_limits::epsilon();
108 group->RunOnChildren(
111 Update( child, aUpdateFlags );
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
void SetOrigin(const Vec &pos)
void SetSize(const Vec &size)
KICAD_T Type() const
Returns the type of object.
Contains methods for drawing PCB-specific items.
PCB specific render settings.
void LoadDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions)
Load settings related to display options (high-contrast mode, full or outline modes for vias/pads/tra...
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1) override
Add a VIEW_ITEM to the view.
virtual void Remove(VIEW_ITEM *aItem) override
Remove a VIEW_ITEM from the view.
PCB_VIEW(bool aIsDynamic=true)
void UpdateDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions)
An abstract base class for deriving all objects that can be added to a VIEW.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
virtual void Remove(VIEW_ITEM *aItem)
Remove a VIEW_ITEM from the view.
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
A set of BOARD_ITEMs (i.e., without duplicates).
The Cairo implementation of the graphics abstraction layer.
@ ALL
All except INITIAL_ADD.
Class to handle a set of BOARD_ITEMs.
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint