|
Muvicado HD
|
Mode that digitizes a freehand path into a Pad while dragging. More...
#include <DrawFreehandPadMode.h>


Instance Methods | |
| (id) | - init [implementation] |
| (NSCursor *) | - cursor [implementation] |
| (void) | - close [implementation] |
| (void) | - mouseDown: [implementation] |
| (void) | - mouseDragged: [implementation] |
| (void) | - mouseMoved: [implementation] |
| (void) | - mouseUp: [implementation] |
| (void) | - setUp [implementation] |
| (void) | - cleanUp [implementation] |
| (NSString *) | - name [implementation] |
| Instance Methods inherited from Mode | |
| (id) | - initWithPlayArea:forController: |
| (void) | - keyDown: |
| No-op default implementation; subclasses override. | |
| (void) | - drawRect: |
| No-op default implementation; subclasses override. | |
| (void) | - setNextMode: |
Protected Attributes | |
| float | _transparency |
| NSColor * | _lineColor |
| Protected Attributes inherited from Mode | |
| PlayArea * | playArea |
| Controller * | controller |
| Mode * | nextMode |
Mode that digitizes a freehand path into a Pad while dragging.
Concrete implementation of DrawFreehandPadMode behavior.
While active, the user clicks and drags to create a polyline/closed path. The temporary Pad is shown with adjusted transparency and line color.
Definition at line 19 of file DrawFreehandPadMode.h.
|
implementation |
No-op cleanup for this mode.
Reimplemented from Mode.
Definition at line 180 of file DrawFreehandPadMode.m.


|
implementation |
Finalizes the freehand path: closes it, restores pad styling, adds the new pad to the play area, and clears temporary state.
Definition at line 40 of file DrawFreehandPadMode.m.


|
implementation |
Returns the crosshair cursor used while drawing.
Reimplemented from Mode.
Definition at line 32 of file DrawFreehandPadMode.m.


|
implementation |
Initializes the mode and clears any prior temporary path.
Reimplemented from Mode.
Definition at line 23 of file DrawFreehandPadMode.m.


|
implementation |
Begins digitizing a path at the snapped mouse location. Creates a temporary Pad, seeding from a single selection if present.
Reimplemented from Mode.
Definition at line 64 of file DrawFreehandPadMode.m.

|
implementation |
Extends the in-progress path to the snapped mouse location and refreshes.
Reimplemented from Mode.
Definition at line 120 of file DrawFreehandPadMode.m.

|
implementation |
Displays the current snapped mouse coordinates for feedback.
Reimplemented from Mode.
Definition at line 139 of file DrawFreehandPadMode.m.

|
implementation |
If sufficient points were collected, closes and commits the pad, increments the note for the next pad, and returns to Move mode.
Reimplemented from Mode.
Definition at line 151 of file DrawFreehandPadMode.m.

|
implementation |
Returns a human-readable name for this mode.
Reimplemented from Mode.
Definition at line 184 of file DrawFreehandPadMode.m.


|
implementation |
Ensures at most one pad is selected before starting, then refreshes.
Reimplemented from Mode.
Definition at line 172 of file DrawFreehandPadMode.m.


|
protected |
Original line color of the pad while drawing (restored on close).
Definition at line 23 of file DrawFreehandPadMode.h.
|
protected |
Original transparency of the pad while drawing (restored on close).
Definition at line 21 of file DrawFreehandPadMode.h.