The edit mode determines what actions the user can perform with the mouse. The edit modes are: Default, Insert Point, Insert Line, Insert Cell, and Panning.
In the default mode, the user can select items in the drawing, move point variables, and move other items that have been selected. Once a selection has been made, the user can copy the selection, delete it, or move it. Point variables may be moved without being selected first. In default mode, points may also be traced, which generates curves.
Sets the selection to the item at the location of the click. Clicking on a point variable, displays the point variables constraint, if any, in the Constraint Field in the Constraint Tool Bar. Clicking on the edge of a cell or a trace displays the anchor constraint in the Constraint Field. Clicking on the inside of a cell, displays the contents or the contents' constraint in the Constraint Field. Clicking on no item clears the selection.
Shift-clicking on an item, removes the item from the selection if the item is in the selection, adds it otherwise.
(A drag is performed by pressing the (left) mouse button, moving the mouse, and releasing the mouse button.) If the mouse button is pressed on a point variable(whether selected or not), drags the point variable. Constraints are repetetively fired while dragging ensuring that all constraints are satified. If tracing is on, traces all selected point variables. If the mouse button is released close to another point variable, Drawmetry attempts to snapp the two point variables into one. If the snapping is not wanted, Undo will undo it. Otherwise, if the mouse button is released close to a line segment, Drawmetry attempts to add a colinear constraint to the point variable, which constraints it to the line passing through the end points of the line segment. If the constraint is not wanted, Undo will remove it.
If press is on a selected item, drags all selected items. Constraints are repetetively fired while dragging ensuring that all constraints are satified.
Otherwise, sets the selection to all items inside a rectangle that has one corner where the mouse is pressed and the opposite corner where the mouse is released.
Adds to the selection all items inside a rectangle that has one corner where the mouse is pressed and the opposite corner where the mouse is released. While dragging the rectangle is displayed with a dashed line.
Sets the edit mode to Default Mode.
Inserts a new point variable where the user double-clicked.
Sets the edit mode to Default Mode.
Inserts a line segment. Adds point variables at the locations where the mouse (left) button was pressed and where it was release. If one (or both) of the point variables at the end point of the line segment is close to an already existing point variable, Drawmetry attempts snapping the two point variables together into one. If the mouse is pressed or released close to an existing line segment, Drawmetry attempts adding a colinear constraint to the corresponding point variable with the point variables at the end points of that line segment as predecessors.
The line segment becomes dependent on the two point variables at its end points. If one of these point variables is deleted, the line segment is deleted too. If one or both of the point variables are moved, the line segment moves too. A point varibale may be shared by multiple polylines or line segments.
If the press is at the endpoint of an existing line or polyline, the line or polyline is extended to a polyline including the new line segment. If the press occurs at one end point of a polyline and the release at the other end point of the polyline, the polyline is closed. Closed polylines cannot be extended.
Like drag, but keeps the second end point of the line segment horizontally, vertically, or at a slope of + or - 45 degrees (which ever is closest) relativelly to the first end point. If the shift key is depressed when the mouse button is released, a horizontal, vertical or slope constraint is added to the secont point variable.
Sets the edit mode to Default Mode.
Inserts a cell with one corner at the location where the mouse button is pressed and the opposite corner where the mouse button is released.
Panning does not modify a drawing, but repositions the canvas relatively to the drawing. Since the canvas is fixed on the screen, it appears that the drawing is moving relativelly to the canvas.
Sets the edit mode to Default Mode.
Repositions the canvas relatively to the drawing such that the location of the double-click becomes centered on the canvas. This is useful before zooming, since Drawmetry zooms in and out on the center of the canvas.
Moves the canvas relatively to the drawing such that the drawing remains fixed relatively to the cursor while dragging. The drawing appears to be moving with the cursor relatively to the canvas.