44    auto& ctxMenu = 
m_menu->GetMenu();
 
   48    ctxMenu.AddSeparator( 1 );
 
 
   80        if( evt->IsCancelInteractive() || evt->IsActivate() )
 
 
  109    bool                cancelled = 
false;
 
  120        if( evt->IsCancelInteractive() || evt->IsActivate() )
 
  129            area.
SetEnd( evt->Position() );
 
  137            auto selectionBox = area.
ViewBBox();
 
  139            if( selectionBox.GetWidth() == 0 || selectionBox.GetHeight() == 0 )
 
  146                VECTOR2D vSize = selectionBox.GetSize();
 
  148                double ratio = std::max( fabs( vSize.
x / sSize.
x ), fabs( vSize.
y / sSize.
y ) );
 
  156                view->
SetCenter( selectionBox.Centre() );
 
 
static TOOL_ACTION cancelInteractive
 
static TOOL_ACTION zoomTool
 
Represent a selection area (currently a rectangle) in a VIEW, drawn corner-to-corner between two poin...
 
void SetOrigin(const VECTOR2I &aOrigin)
 
const BOX2I ViewBBox() const override
Set the origin of the rectangle (the fixed corner)
 
void SetEnd(const VECTOR2I &aEnd)
Set the current end of the rectangle (the corner that moves with the cursor.
 
virtual void SetAutoPan(bool aEnabled)
Turn on/off auto panning (this feature is used when there is a tool active (eg.
 
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
 
virtual void SetScale(double aScale, VECTOR2D aAnchor={ 0, 0 })
Set the scaling factor, zooming around a given anchor point.
 
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...
 
VECTOR2D ToWorld(const VECTOR2D &aCoord, bool aAbsolute=true) const
Converts a screen space point/vector to a point/vector in world space coordinates.
 
void SetCenter(const VECTOR2D &aCenter)
Set the center point of the VIEW (i.e.
 
void SetVisible(VIEW_ITEM *aItem, bool aIsVisible=true)
Set the item visibility.
 
static bool ShowAlways(const SELECTION &aSelection)
The default condition function (always returns true).
 
@ GEOMETRY
Position or shape has changed.
 
std::vector< FAB_LAYER_COLOR > dummy
 
VECTOR2< double > VECTOR2D
 
VECTOR2I ToVECTOR2I(const wxSize &aSize)