KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BLOCK_DRAG_SESSION Class Reference

The block drag gesture, with the state it holds while it runs. More...

Public Member Functions

 BLOCK_DRAG_SESSION (PCB_POINT_EDITOR &aEditor, PCB_BASE_EDIT_FRAME *aEditFrame, PCB_GRID_HELPER &aGrid, BOARD_COMMIT &aCommit)
 
bool IsActive () const
 Whether a drag is running.
 
bool Begin (const VECTOR2I &aOrigin, bool aPressInFlight)
 Start a drag from the handle at aOrigin.
 
bool KeyboardDrag () const
 Whether this drag runs from the keyboard, so motion moves it and a click places it.
 
bool ApplyCursor (const TOOL_EVENT &aEvent)
 Place one frame of the drag. True when the editor has to leave its loop.
 
bool Release (const TOOL_EVENT &aEvent)
 Finish the drag and push what it changed. True when the editor has to leave its loop.
 
bool Cancel (TOOL_EVENT &aEvent)
 Undo the drag, keeping the picks. True when the editor has to leave its loop.
 
void Abort ()
 Undo a drag that is still running, for the exits that miss the release and cancel paths.
 
bool AreaPickStarts (const TOOL_EVENT &aEvent)
 Whether a drag starting on empty canvas should pick handles by area.
 
bool RunAreaPick (const TOOL_EVENT &aEvent)
 Run the lasso or the box, whichever the selection mode asks for.
 
bool Refused () const
 Whether the last start was refused, in which case the gesture has already said why.
 
void ClearRefused ()
 
bool PressConsumed () const
 Whether the rest of a swallowed button press is still to be ignored.
 
void ClearPressConsumed ()
 

Private Types

enum class  FRAME_RESULT { APPLIED , LOST_IDENTITY , CONSTRAINED }
 How one frame of the gesture turned out. More...
 

Private Member Functions

FRAME_RESULT applyFrame (const VECTOR2I &aDelta, std::vector< EDA_ITEM * > &aUpdated)
 Write one frame.
 
bool collectTargets ()
 Pair every collection that holds a moved point with its behavior.
 
void releaseState ()
 Put the view, the flags and the router back, and drop the gesture's state.
 
bool revert (bool aPushed)
 Undo the gesture.
 
void endDrag (bool aKeepPicks)
 End the gesture and rebuild the handles.
 
bool refuseRelease (const wxString &aMessage)
 Say why the release was refused and put the board back, keeping the picks so the user can try again from the same handles.
 
KIGFX::COLOR4D bandColor () const
 Band colour for the area picks, kept clear of the canvas colour.
 
void showBand (HANDLE_PICK_AREA &aArea)
 Put the pick band on the view and take the cursor for it, and take it off again.
 
void hideBand (HANDLE_PICK_AREA &aArea)
 
bool runLasso (const TOOL_EVENT &aEvent)
 Pick handles with a lasso, the way the object lasso works.
 
bool runBox (const TOOL_EVENT &aEvent)
 Pick handles with a box, which finishes on release like normal box selection.
 

Private Attributes

PCB_POINT_EDITOR & m_editor
 
PCB_BASE_EDIT_FRAME * m_editFrame
 
PCB_GRID_HELPER & m_grid
 
BOARD_COMMIT & m_commit
 
bool m_active = false
 A drag is running.
 
bool m_keyboardDrag = false
 Started with D, so motion moves it and a click places it.
 
bool m_pressConsumed = false
 The rest of a swallowed button press is still to be ignored.
 
bool m_refused = false
 The last start was declined and said why itself.
 
bool m_revertRestarts = false
 Undo will hand out fresh objects, so the editor has to start again from the live selection.
 
bool m_routerActive = false
 A router drag session is carrying the block's copper.
 
std::map< PCB_HANDLE_KEY, VECTOR2I > m_origins
 Where each picked handle stood when the gesture began.
 
std::vector< std::pair< EDIT_POINTS *, POINT_EDIT_BEHAVIOR * > > m_targets
 Each collection holding a picked handle, with the behavior that rebuilds its item.
 
std::vector< BLOCK_DRAG_ENDPOINT > m_dependents
 Unselected ends that sit on a moved joint and follow it, with the handle drawn at each one.
 
std::vector< std::shared_ptr< EDIT_POINTS > > m_dependentDisplays
 
std::vector< BOARD_ITEM * > m_rigidItems
 Selected items with no picked handle, which travel whole as they would under the move tool.
 
std::vector< BOARD_ITEM * > m_moving
 Everything that moves with the cursor, kept out of the snap targets so the block cannot chase its own geometry.
 
std::vector< KIID > m_overlayHidden
 Copper whose selection overlay is hidden while the router preview stands in for it, by id because fixing the route can replace a carried segment.
 
std::vector< std::pair< PCB_SHAPE *, CONSTRAINT_MEMBER > > m_constraintAnchors
 What the solve holds fixed: the anchors the gesture placed itself, and the items it carried whole, whose offset is pinned so the solve cannot pull them back out.
 
std::set< KIID > m_constraintTranslated
 
std::optional< BOARD_CONSTRAINT_BLOCK_SESSION > m_constraintSession
 
bool m_constraintWarned = false
 Said once, not per frame.
 
std::set< PCB_SHAPE * > m_solverBrightened
 Neighbours the solve pulled along, brightened so the user can see what moved with the block.
 
std::optional< BLOCK_DRAG_VALIDATION > m_validation
 The baseline the zone and board outline checks compare the released geometry against.
 
VECTOR2I m_appliedDelta
 The last offset written to the board, which is what a refused frame is undone with.
 
BOARD_ITEM * m_refParent = nullptr
 The grabbed handle's snapping context, taken once at the start.
 
GRID_HELPER_GRIDS m_refGrid = GRID_CURRENT
 
SNAP_CONSTRAINT_TYPE m_snapConstraint = OBJECT_LAYERS
 
VECTOR2I m_grabStart
 

Detailed Description

The block drag gesture, with the state it holds while it runs.

Lives on the stack for one run of PCB_POINT_EDITOR::OnSelectionChange and borrows that call's frame, grid helper and commit. The editor makes it a friend, because the gesture works on the same handle collections, picked set and expanded selection the editor builds, and its area picks run their own event loops through the editor's Wait().

The editor's loop decides which event goes where. Everything the gesture then does to the board is behind the calls below.

Definition at line 2957 of file pcb_point_editor.cpp.

Member Enumeration Documentation

◆ FRAME_RESULT

enum class BLOCK_DRAG_SESSION::FRAME_RESULT
strongprivate

How one frame of the gesture turned out.

Enumerator
APPLIED 

The frame's geometry went onto the board.

LOST_IDENTITY 

A picked handle has gone, so the gesture has to stop.

CONSTRAINED 

A constraint blocks this frame, and the board is untouched.

Definition at line 3011 of file pcb_point_editor.cpp.

Constructor & Destructor Documentation

◆ BLOCK_DRAG_SESSION()

BLOCK_DRAG_SESSION::BLOCK_DRAG_SESSION ( PCB_POINT_EDITOR & aEditor,
PCB_BASE_EDIT_FRAME * aEditFrame,
PCB_GRID_HELPER & aGrid,
BOARD_COMMIT & aCommit )
inline

Definition at line 2960 of file pcb_point_editor.cpp.

References m_commit, m_editFrame, m_editor, and m_grid.

Member Function Documentation

◆ Abort()

void BLOCK_DRAG_SESSION::Abort ( )

Undo a drag that is still running, for the exits that miss the release and cancel paths.

Reset() runs it as well, while the items are still here.

Definition at line 3218 of file pcb_point_editor.cpp.

References m_active, m_commit, m_editor, and releaseState().

Referenced by Begin(), and PCB_POINT_EDITOR::OnSelectionChange().

◆ ApplyCursor()

◆ applyFrame()

BLOCK_DRAG_SESSION::FRAME_RESULT BLOCK_DRAG_SESSION::applyFrame ( const VECTOR2I & aDelta,
std::vector< EDA_ITEM * > & aUpdated )
private

◆ AreaPickStarts()

bool BLOCK_DRAG_SESSION::AreaPickStarts ( const TOOL_EVENT & aEvent)

Whether a drag starting on empty canvas should pick handles by area.

False with the feature off, with a handle under the drag origin, with nothing pickable, or on a selected object.

Definition at line 4033 of file pcb_point_editor.cpp.

References BlockDragHandlePickable(), TOOL_EVENT::DragOrigin(), m_editor, MD_ALT, MD_CTRL, MD_SHIFT, and TOOL_EVENT::Modifier().

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ bandColor()

KIGFX::COLOR4D BLOCK_DRAG_SESSION::bandColor ( ) const
private

Band colour for the area picks, kept clear of the canvas colour.

Definition at line 4071 of file pcb_point_editor.cpp.

References KIGFX::RENDER_SETTINGS::GetLayerColor(), KIGFX::COLOR4D::Invert(), LAYER_AUX_ITEMS, and m_editor.

Referenced by showBand().

◆ Begin()

bool BLOCK_DRAG_SESSION::Begin ( const VECTOR2I & aOrigin,
bool aPressInFlight )

Start a drag from the handle at aOrigin.

aPressInFlight says a mouse button is down, so a refusal has the rest of that press to ignore and the drag follows the button. Without it the drag runs from the keyboard instead, with the cursor free.

Definition at line 3455 of file pcb_point_editor.cpp.

References _, Abort(), PNS::ITEM_SET::Add(), anchor, ARC, blockDragAppendConstraintCoMembers(), BlockDragApplyPick(), BlockDragCapability(), BlockDragFindDependents(), BlockDragHandlePickable(), BlockDragIsConstraintMember(), BlockDragMoveOrigins(), BoardHasConstraints(), candidates(), collectTargets(), ConstraintItemIsLocked(), constraintMemberForEditPoint(), PNS::DM_BLOCK, Edge_Cuts, END, PNS::NODE::FindItemsByParent(), PNS::ROUTER::GetDragger(), EDA_SHAPE::GetEnd(), PNS::TOOL_BASE::GetInterface(), EDA_ITEM::GetItemDescription(), EDA_ITEM::GetParent(), EDIT_POINTS::GetParent(), EDIT_POINT::GetPosition(), EDA_SHAPE::GetShape(), EDIT_POINT::GetSnapConstraint(), EDA_SHAPE::GetStart(), PNS::ROUTER::GetWorld(), FOOTPRINT::GraphicalItems(), IS_MOVING, IsConstrainableItem(), IsCopperLayer(), TOOL_BASE::IsToolActive(), link, LOCKED, m_active, m_appliedDelta, m_commit, m_constraintAnchors, m_constraintSession, m_constraintTranslated, m_dependentDisplays, m_dependents, m_editFrame, m_editor, m_grabStart, m_grid, m_keyboardDrag, m_moving, m_origins, m_overlayHidden, m_pressConsumed, m_refGrid, m_refParent, m_refused, m_revertRestarts, m_rigidItems, m_routerActive, m_snapConstraint, m_targets, EDA_ITEM::m_Uuid, m_validation, PCB_HANDLE_KEY::Make(), Margin, PNS::ROUTER::Move(), NO_RECURSE, pad, FOOTPRINT::Pads(), PCB_FOOTPRINT_T, PCB_GENERATOR_T, PCB_PAD_T, PCB_SHAPE_T, RECURSE, ROUTER, PNS::TOOL_BASE::Router(), PNS::ROUTER::RoutingInProgress(), SEGMENT, PNS_KICAD_IFACE_BASE::SetBoard(), PNS_KICAD_IFACE::SetIndependentPads(), PNS_KICAD_IFACE::SetView(), PNS::ITEM_SET::Size(), START, PNS::ROUTER::StartDragging(), PNS::ROUTER::SyncWorld(), EDA_ITEM::Type(), UNSUPPORTED, WHOLE, and FOOTPRINT::Zones().

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ Cancel()

bool BLOCK_DRAG_SESSION::Cancel ( TOOL_EVENT & aEvent)

Undo the drag, keeping the picks. True when the editor has to leave its loop.

Definition at line 4586 of file pcb_point_editor.cpp.

References endDrag(), TOOL_EVENT::GetCommandId(), TOOL_EVENT::IsCancel(), m_keyboardDrag, m_pressConsumed, revert(), and TOOL_EVENT::SetPassEvent().

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ ClearPressConsumed()

void BLOCK_DRAG_SESSION::ClearPressConsumed ( )
inline

Definition at line 3007 of file pcb_point_editor.cpp.

References m_pressConsumed.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ ClearRefused()

void BLOCK_DRAG_SESSION::ClearRefused ( )
inline

Definition at line 3003 of file pcb_point_editor.cpp.

References m_refused.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ collectTargets()

bool BLOCK_DRAG_SESSION::collectTargets ( )
private

Pair every collection that holds a moved point with its behavior.

Looked up again on each use, because updatePoints() can rebuild a collection in place.

Definition at line 3262 of file pcb_point_editor.cpp.

References PCB_POINT_EDITOR::BLOCK_HANDLE_ENTRY::behavior, EDA_ITEM::GetParent(), m_editor, m_origins, m_targets, EDA_ITEM::m_Uuid, and PCB_POINT_EDITOR::BLOCK_HANDLE_ENTRY::points.

Referenced by applyFrame(), Begin(), and Release().

◆ endDrag()

void BLOCK_DRAG_SESSION::endDrag ( bool aKeepPicks)
private

End the gesture and rebuild the handles.

Definition at line 3250 of file pcb_point_editor.cpp.

References m_active, m_editor, and releaseState().

Referenced by ApplyCursor(), Cancel(), refuseRelease(), and Release().

◆ hideBand()

void BLOCK_DRAG_SESSION::hideBand ( HANDLE_PICK_AREA & aArea)
private

Definition at line 4098 of file pcb_point_editor.cpp.

References m_editor.

Referenced by runBox(), and runLasso().

◆ IsActive()

bool BLOCK_DRAG_SESSION::IsActive ( ) const
inline

Whether a drag is running.

Definition at line 2970 of file pcb_point_editor.cpp.

References m_active.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ KeyboardDrag()

bool BLOCK_DRAG_SESSION::KeyboardDrag ( ) const
inline

Whether this drag runs from the keyboard, so motion moves it and a click places it.

Definition at line 2978 of file pcb_point_editor.cpp.

References m_keyboardDrag.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ PressConsumed()

bool BLOCK_DRAG_SESSION::PressConsumed ( ) const
inline

Whether the rest of a swallowed button press is still to be ignored.

Definition at line 3006 of file pcb_point_editor.cpp.

References m_pressConsumed.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ Refused()

bool BLOCK_DRAG_SESSION::Refused ( ) const
inline

Whether the last start was refused, in which case the gesture has already said why.

Definition at line 3002 of file pcb_point_editor.cpp.

References m_refused.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ refuseRelease()

bool BLOCK_DRAG_SESSION::refuseRelease ( const wxString & aMessage)
private

Say why the release was refused and put the board back, keeping the picks so the user can try again from the same handles.

True when the editor has to leave its loop.

Definition at line 4375 of file pcb_point_editor.cpp.

References endDrag(), m_editor, and revert().

Referenced by Release().

◆ Release()

◆ releaseState()

◆ revert()

bool BLOCK_DRAG_SESSION::revert ( bool aPushed)
private

Undo the gesture.

True when the editor has to leave its loop and start again from the live selection: in the board editor a footprint child is staged through its footprint, and undoing that gives the footprint fresh children, so every pointer held here to such a child is dead. The move tool restarts the point editor the same way after its own undo. Once the carried changes have been pushed, the gesture's undo entry is popped off instead.

Definition at line 3232 of file pcb_point_editor.cpp.

References m_commit, m_editFrame, m_editor, m_revertRestarts, releaseState(), and EVENTS::SelectedEvent.

Referenced by ApplyCursor(), Cancel(), refuseRelease(), and Release().

◆ RunAreaPick()

bool BLOCK_DRAG_SESSION::RunAreaPick ( const TOOL_EVENT & aEvent)

Run the lasso or the box, whichever the selection mode asks for.

True when the editor has to leave its loop.

Definition at line 3121 of file pcb_point_editor.cpp.

References INSIDE_LASSO, m_editor, runBox(), runLasso(), and TOUCHING_LASSO.

Referenced by PCB_POINT_EDITOR::OnSelectionChange().

◆ runBox()

bool BLOCK_DRAG_SESSION::runBox ( const TOOL_EVENT & aEvent)
private

Pick handles with a box, which finishes on release like normal box selection.

True when the band ended on an event the editor's loop has to handle itself.

Definition at line 4186 of file pcb_point_editor.cpp.

References BlockDragLassoPick(), blockDragPassNavigation(), BlockDragPickRect(), BUT_LEFT, TOOL_EVENT::DragOrigin(), end, hideBand(), EVENTS::InhibitSelectionEditing, m_editor, MD_SHIFT, TOOL_EVENT::Modifier(), TOOL_EVENT::Position(), showBand(), and KIGFX::VIEW::Update().

Referenced by RunAreaPick().

◆ runLasso()

◆ showBand()

void BLOCK_DRAG_SESSION::showBand ( HANDLE_PICK_AREA & aArea)
private

Put the pick band on the view and take the cursor for it, and take it off again.

Definition at line 4083 of file pcb_point_editor.cpp.

References bandColor(), m_editor, and KIGFX::COLOR4D::WithAlpha().

Referenced by runBox(), and runLasso().

Member Data Documentation

◆ m_active

bool BLOCK_DRAG_SESSION::m_active = false
private

A drag is running.

Definition at line 3065 of file pcb_point_editor.cpp.

Referenced by Abort(), Begin(), endDrag(), IsActive(), Release(), and releaseState().

◆ m_appliedDelta

VECTOR2I BLOCK_DRAG_SESSION::m_appliedDelta
private

The last offset written to the board, which is what a refused frame is undone with.

Definition at line 3111 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), applyFrame(), Begin(), Release(), and releaseState().

◆ m_commit

BOARD_COMMIT& BLOCK_DRAG_SESSION::m_commit
private

Definition at line 3063 of file pcb_point_editor.cpp.

Referenced by Abort(), applyFrame(), Begin(), BLOCK_DRAG_SESSION(), Release(), and revert().

◆ m_constraintAnchors

std::vector<std::pair<PCB_SHAPE*, CONSTRAINT_MEMBER> > BLOCK_DRAG_SESSION::m_constraintAnchors
private

What the solve holds fixed: the anchors the gesture placed itself, and the items it carried whole, whose offset is pinned so the solve cannot pull them back out.

Definition at line 3098 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), and releaseState().

◆ m_constraintSession

std::optional<BOARD_CONSTRAINT_BLOCK_SESSION> BLOCK_DRAG_SESSION::m_constraintSession
private

Definition at line 3101 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), and releaseState().

◆ m_constraintTranslated

std::set<KIID> BLOCK_DRAG_SESSION::m_constraintTranslated
private

Definition at line 3099 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), and releaseState().

◆ m_constraintWarned

bool BLOCK_DRAG_SESSION::m_constraintWarned = false
private

Said once, not per frame.

Definition at line 3102 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), and releaseState().

◆ m_dependentDisplays

std::vector<std::shared_ptr<EDIT_POINTS> > BLOCK_DRAG_SESSION::m_dependentDisplays
private

Definition at line 3083 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), and releaseState().

◆ m_dependents

std::vector<BLOCK_DRAG_ENDPOINT> BLOCK_DRAG_SESSION::m_dependents
private

Unselected ends that sit on a moved joint and follow it, with the handle drawn at each one.

The two line up index by index.

Definition at line 3082 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), Release(), and releaseState().

◆ m_editFrame

PCB_BASE_EDIT_FRAME* BLOCK_DRAG_SESSION::m_editFrame
private

Definition at line 3061 of file pcb_point_editor.cpp.

Referenced by Begin(), BLOCK_DRAG_SESSION(), Release(), and revert().

◆ m_editor

◆ m_grabStart

VECTOR2I BLOCK_DRAG_SESSION::m_grabStart
private

Definition at line 3117 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), and Begin().

◆ m_grid

PCB_GRID_HELPER& BLOCK_DRAG_SESSION::m_grid
private

◆ m_keyboardDrag

bool BLOCK_DRAG_SESSION::m_keyboardDrag = false
private

Started with D, so motion moves it and a click places it.

Definition at line 3066 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), Begin(), Cancel(), KeyboardDrag(), and releaseState().

◆ m_moving

std::vector<BOARD_ITEM*> BLOCK_DRAG_SESSION::m_moving
private

Everything that moves with the cursor, kept out of the snap targets so the block cannot chase its own geometry.

Also the list the release clears the moving flags from.

Definition at line 3090 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), Begin(), Release(), and releaseState().

◆ m_origins

std::map<PCB_HANDLE_KEY, VECTOR2I> BLOCK_DRAG_SESSION::m_origins
private

Where each picked handle stood when the gesture began.

Every frame is placed from these, never from the current position, so a long drag cannot drift.

Definition at line 3075 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), applyFrame(), Begin(), collectTargets(), Release(), and releaseState().

◆ m_overlayHidden

std::vector<KIID> BLOCK_DRAG_SESSION::m_overlayHidden
private

Copper whose selection overlay is hidden while the router preview stands in for it, by id because fixing the route can replace a carried segment.

Definition at line 3094 of file pcb_point_editor.cpp.

Referenced by Begin(), and releaseState().

◆ m_pressConsumed

bool BLOCK_DRAG_SESSION::m_pressConsumed = false
private

The rest of a swallowed button press is still to be ignored.

Definition at line 3067 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), Begin(), Cancel(), ClearPressConsumed(), and PressConsumed().

◆ m_refGrid

GRID_HELPER_GRIDS BLOCK_DRAG_SESSION::m_refGrid = GRID_CURRENT
private

Definition at line 3115 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), and Begin().

◆ m_refParent

BOARD_ITEM* BLOCK_DRAG_SESSION::m_refParent = nullptr
private

The grabbed handle's snapping context, taken once at the start.

Definition at line 3114 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), and Begin().

◆ m_refused

bool BLOCK_DRAG_SESSION::m_refused = false
private

The last start was declined and said why itself.

Definition at line 3068 of file pcb_point_editor.cpp.

Referenced by Begin(), ClearRefused(), and Refused().

◆ m_revertRestarts

bool BLOCK_DRAG_SESSION::m_revertRestarts = false
private

Undo will hand out fresh objects, so the editor has to start again from the live selection.

Definition at line 3069 of file pcb_point_editor.cpp.

Referenced by Begin(), releaseState(), and revert().

◆ m_rigidItems

std::vector<BOARD_ITEM*> BLOCK_DRAG_SESSION::m_rigidItems
private

Selected items with no picked handle, which travel whole as they would under the move tool.

Definition at line 3086 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), Release(), and releaseState().

◆ m_routerActive

bool BLOCK_DRAG_SESSION::m_routerActive = false
private

A router drag session is carrying the block's copper.

Definition at line 3071 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), Begin(), Release(), and releaseState().

◆ m_snapConstraint

SNAP_CONSTRAINT_TYPE BLOCK_DRAG_SESSION::m_snapConstraint = OBJECT_LAYERS
private

Definition at line 3116 of file pcb_point_editor.cpp.

Referenced by ApplyCursor(), and Begin().

◆ m_solverBrightened

std::set<PCB_SHAPE*> BLOCK_DRAG_SESSION::m_solverBrightened
private

Neighbours the solve pulled along, brightened so the user can see what moved with the block.

Definition at line 3105 of file pcb_point_editor.cpp.

Referenced by applyFrame(), and releaseState().

◆ m_targets

std::vector<std::pair<EDIT_POINTS*, POINT_EDIT_BEHAVIOR*> > BLOCK_DRAG_SESSION::m_targets
private

Each collection holding a picked handle, with the behavior that rebuilds its item.

Definition at line 3078 of file pcb_point_editor.cpp.

Referenced by applyFrame(), Begin(), collectTargets(), Release(), and releaseState().

◆ m_validation

std::optional<BLOCK_DRAG_VALIDATION> BLOCK_DRAG_SESSION::m_validation
private

The baseline the zone and board outline checks compare the released geometry against.

Definition at line 3108 of file pcb_point_editor.cpp.

Referenced by Begin(), Release(), and releaseState().


The documentation for this class was generated from the following file: