25 #ifndef EE_POINT_EDITOR_H 26 #define EE_POINT_EDITOR_H 81 for(
unsigned i = 0; i <
m_editPoints->PointsSize(); ++i )
109 #endif // EE_POINT_EDITOR_H int Main(const TOOL_EVENT &aEvent)
bool HasPoint()
Indicate the cursor is over an edit point.
void updateEditedPoint(const TOOL_EVENT &aEvent)
Set the current point being edited. NULL means none.
EDIT_POINT * m_editedPoint
< Currently edited point, NULL if there is none.
void updatePoints()
Update which point is being edited.
int modifiedSelection(const TOOL_EVENT &aEvent)
bool addCornerCondition(const SELECTION &aSelection)
bool Init() override
Init() is called once upon a registration of the tool.
int removeCorner(const TOOL_EVENT &aEvent)
void updateParentItem() const
< Update item's points with edit points.
int addCorner(const TOOL_EVENT &aEvent)
TOOL_ACTION handlers.
bool removeCornerCondition(const SELECTION &aSelection)
void Reset(RESET_REASON aReason) override
Bring the tool to a known, initial state.
std::shared_ptr< EDIT_POINTS > m_editPoints
int getEditedPointIndex() const
Tool that displays edit points allowing to modify items by dragging the points.
void setEditedPoint(EDIT_POINT *aPoint)
Return true if aPoint is the currently modified point.
Represent a single point that can be used for modifying items.
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
bool isModified(const EDIT_POINT &aPoint) const