40 auto activeToolCondition =
50 ctxMenu.AddSeparator( 1 );
80 template<
class T>
void Flip( T& aValue )
98 Flip( opts.m_DisplayPadNum );
103 for(
PAD* pad : fp->Pads() )
117 Flip( opts.m_DisplayPadFill );
122 for(
PAD* pad : fp->Pads() )
141 for(
BOARD_ITEM* item : fp->GraphicalItems() )
174 for(
BOARD_ITEM* item : fp->GraphicalItems() )
220 bool originSet =
false;
222 controls.ShowCursor(
true );
223 controls.SetAutoPan(
false );
224 controls.CaptureCursor(
false );
241 controls.ForceCursorPosition(
true, cursorPos );
247 controls.SetAutoPan(
false );
248 controls.CaptureCursor(
false );
252 if( evt->IsCancelInteractive() )
262 else if( evt->IsActivate() )
267 if( evt->IsMoveTool() )
279 else if( !originSet && ( evt->IsDrag(
BUT_LEFT ) || evt->IsClick(
BUT_LEFT ) ) )
282 twoPtMgr.
SetEnd( cursorPos );
284 controls.CaptureCursor(
true );
285 controls.SetAutoPan(
true );
290 else if( originSet && ( evt->IsClick(
BUT_LEFT ) || evt->IsMouseUp(
BUT_LEFT ) ) )
294 controls.SetAutoPan(
false );
295 controls.CaptureCursor(
false );
298 else if( originSet && ( evt->IsMotion() || evt->IsDrag(
BUT_LEFT ) ) )
301 twoPtMgr.
SetEnd( cursorPos );
static TOOL_ACTION show3DViewer
void AddStandardSubMenus(TOOL_MENU &aMenu)
Construct a "basic" menu for a tool, containing only items that apply to all tools (e....
class FP_TEXT, text in a footprint
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
constexpr KICAD_T BaseType(const KICAD_T aType)
Returns the underlying type of the given type.
virtual void Update3DView(bool aReloadRequest, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
Represent a very simple geometry manager for items that have a start and end point.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
static TOOL_ACTION cancelInteractive
class PCB_TEXT, text on a layer
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
class FP_SHAPE, a footprint edge
void SwitchUnits(EDA_UNITS aUnits)
Switch the ruler units.
void SetDisplayOptions(const PCB_DISPLAY_OPTIONS &aOptions)
static TOOL_ACTION zoomFootprintAutomatically
void SetCurrentCursor(KICURSOR cursor)
Set the current cursor shape for this panel.
virtual void Remove(VIEW_ITEM *aItem) override
Remove a VIEW_ITEM from the view.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
void SetAngleSnap(bool aSnap)
Classes used in Pcbnew, CvPcb and GerbView.
static TOOL_ACTION measureTool
bool GetGridSnapping() const
Container for display options like enable/disable some optional drawings.
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...
VECTOR2I BestSnapAnchor(const VECTOR2I &aOrigin, BOARD_ITEM *aReferenceItem)
Chooses the "best" snap anchor around the given point, optionally taking layers from the reference it...
EDA_3D_VIEWER * CreateAndShow3D_Frame()
Shows the 3D view frame.
static TOOL_ACTION showPadNumbers
void SetOrigin(const VECTOR2I &aOrigin)
< Set the origin of the ruler (the fixed end)
A drawn ruler item for showing the distance between two points.
bool m_DisplayGraphicsFill
class DIMENSION_BASE: abstract dimension meta-type
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
class PCB_TARGET, a target (graphic item)
static TOOL_ACTION padDisplayMode
static TOOL_ACTION graphicsOutlines
Display footprint graphics as outlines.
static TOOL_ACTION updateUnits
void SetUseGrid(bool aSnapToGrid)
Declaration of the eda_3d_viewer class.
virtual void SetAutoZoom(bool aAutoZoom)
Does nothing.
void SetVisible(VIEW_ITEM *aItem, bool aIsVisible=true)
Set the item visibility.
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1) override
Add a VIEW_ITEM to the view.
SGLIB_API S3DMODEL * GetModel(SCENEGRAPH *aNode)
Function GetModel creates an S3DMODEL representation of aNode (raw data, no transforms)
class PCB_SHAPE, a segment not on copper layers
EDA_UNITS GetUserUnits() const
Return the user units currently in use.
void SetEnd(const VECTOR2I &aEnd)
Set the current end of the rectangle (the end that moves with the cursor.
Position or shape has changed.
static TOOL_ACTION textOutlines
Display texts as lines.