99                             std::vector<EDA_ITEM*>& aUpdatedItems ) = 0;
 
  121        return &aEditedPoint == &aPoint;
 
 
 
  127#define CHECK_POINT_COUNT( aPoints, aExpected ) \ 
  128    wxCHECK( aPoints.PointsSize() == aExpected,  ) 
 
  129#define CHECK_POINT_COUNT_GE( aPoints, aExpected ) \ 
  130    wxCHECK( aPoints.PointsSize() >= aExpected,  ) 
 
  177                     std::vector<EDA_ITEM*>& aUpdatedItems )
 override 
 
 
  206                     std::vector<EDA_ITEM*>& aUpdatedItems )
 override 
 
 
  230                     std::vector<EDA_ITEM*>& aUpdatedItems ) 
override;
 
 
  266                     std::vector<EDA_ITEM*>& aUpdatedItems ) 
override;
 
 
  303                     std::vector<EDA_ITEM*>& aUpdatedItems ) 
override;
 
 
  371                     std::vector<EDA_ITEM*>& aUpdatedItems ) 
override;
 
 
ARC_EDIT_MODE
Settings for arc editing.
 
Represent a set of changes (additions, deletions or modifications) of a data model (e....
 
const ARC_EDIT_MODE & m_arcEditMode
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
OPT_VECTOR2I Get45DegreeConstrainer(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints) const override
Get the 45-degree constrainer for the item, when the given point is moved.
 
KIGFX::VIEW_CONTROLS & m_viewControls
 
EDA_ARC_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aArc, const ARC_EDIT_MODE &aArcEditMode, KIGFX::VIEW_CONTROLS &aViewContols)
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
EDA_BEZIER_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aBezier, int aMaxError)
 
OPT_VECTOR2I Get45DegreeConstrainer(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints) const override
Get the 45-degree constrainer for the item, when the given point is moved.
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
EDA_CIRCLE_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aCircle)
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
EDA_POLYGON_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aPolygon)
 
OPT_VECTOR2I Get45DegreeConstrainer(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints) const override
Get the 45-degree constrainer for the item, when the given point is moved.
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
EDA_SEGMENT_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aSegment)
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
EDA_TABLECELL_POINT_EDIT_BEHAVIOR(EDA_SHAPE &aCell)
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
EDIT_POINTS is a VIEW_ITEM that manages EDIT_POINTs and EDIT_LINEs and draws them.
 
Represent a single point that can be used for modifying items.
 
An interface for classes handling user events controlling the view behavior such as zooming,...
 
A helper class interface to manage the edit points for a single item.
 
virtual bool UpdatePoints(EDIT_POINTS &aPoints)=0
Update the list of the edit points for the item.
 
virtual OPT_VECTOR2I Get45DegreeConstrainer(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints) const
Get the 45-degree constrainer for the item, when the given point is moved.
 
virtual void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems)=0
Update the item with the new positions of the edit points.
 
virtual ~POINT_EDIT_BEHAVIOR()=default
 
virtual void FinalizeItem(EDIT_POINTS &aPoints, COMMIT &aCommit)
Finalize the edit operation.
 
virtual void MakePoints(EDIT_POINTS &aPoints)=0
Construct the initial set of edit points for the item and append to the given list.
 
static bool isModified(const EDIT_POINT &aEditedPoint, const EDIT_POINT &aPoint)
Checks if two points are the same instance - which means the point is being edited.
 
static void UpdateOutlineFromPoints(SHAPE_POLY_SET &aOutline, const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints)
Update the polygon outline with the new positions of the edit points.
 
SHAPE_POLY_SET & m_polygon
 
bool UpdatePoints(EDIT_POINTS &aPoints) override
Update the list of the edit points for the item.
 
static void UpdatePointsFromOutline(const SHAPE_POLY_SET &aOutline, EDIT_POINTS &aPoints)
Update the edit points with the current polygon outline.
 
void FinalizeItem(EDIT_POINTS &aPoints, COMMIT &aCommit) override
Finalize the edit operation.
 
POLYGON_POINT_EDIT_BEHAVIOR(SHAPE_POLY_SET &aPolygon)
 
static void BuildForPolyOutline(EDIT_POINTS &aPoints, const SHAPE_POLY_SET &aOutline)
Build the edit points for the given polygon outline.
 
void MakePoints(EDIT_POINTS &aPoints) override
Construct the initial set of edit points for the item and append to the given list.
 
void UpdateItem(const EDIT_POINT &aEditedPoint, EDIT_POINTS &aPoints, COMMIT &aCommit, std::vector< EDA_ITEM * > &aUpdatedItems) override
Update the item with the new positions of the edit points.
 
Represent a set of closed polygons.
 
@ RECTANGLE
Use RECTANGLE instead of RECT to avoid collision in a Windows header.
 
ARC_EDIT_MODE IncrementArcEditMode(ARC_EDIT_MODE aMode)
 
std::optional< VECTOR2I > OPT_VECTOR2I