Muvicado HD
Loading...
Searching...
No Matches
DrawTraceMode Class Reference

Mode for drawing by tracing over existing elements or guides. More...

#include <DrawTraceMode.h>

Inheritance diagram for DrawTraceMode:
Collaboration diagram for DrawTraceMode:

Instance Methods

(id) - init [implementation]
(NSCursor *) - cursor [implementation]
(void) - applyTrace [implementation]
(void) - moveLastPoint: [implementation]
(void) - mouseDown: [implementation]
(void) - mouseDraggedOrMoved:whileDown: [implementation]
(void) - mouseDragged: [implementation]
 Forwards to the shared drag/move handler.
(void) - mouseMoved: [implementation]
 Forwards to the shared drag/move handler.
(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:

Additional Inherited Members

Protected Attributes inherited from Mode
PlayAreaplayArea
Controllercontroller
ModenextMode

Detailed Description

Mode for drawing by tracing over existing elements or guides.

Concrete implementation of DrawTraceMode behavior.

Definition at line 16 of file DrawTraceMode.h.

Method Documentation

◆ applyTrace

- (void) applyTrace
implementation

Applies the in-progress trace path to the anchor pad and clears temp state.

Definition at line 47 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cleanUp

- (void) cleanUp
implementation

Commits any valid trace on exit; otherwise refreshes state.

Reimplemented from Mode.

Definition at line 240 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cursor

- (NSCursor *) cursor
implementation

Returns the crosshair cursor used while tracing.

Reimplemented from Mode.

Definition at line 40 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init

- (id) init
implementation

Initializes state for trace digitizing.

Reimplemented from Mode.

Definition at line 31 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseDown:

- (void) mouseDown: (NSEvent *) event
implementation

Starts or continues the trace; holds Shift for 90° snapping, Command for freehand.

Reimplemented from Mode.

Definition at line 86 of file DrawTraceMode.m.

Here is the call graph for this function:

◆ mouseDragged:

- (void) mouseDragged: (NSEvent *) event
implementation

Forwards to the shared drag/move handler.

Reimplemented from Mode.

Definition at line 198 of file DrawTraceMode.m.

Here is the call graph for this function:

◆ mouseDraggedOrMoved:whileDown:

- (void) mouseDraggedOrMoved: (NSEvent *) event
whileDown: (BOOL) down 
implementation

Updates the preview path during drag/move; freehand lines or adjusts last point.

Definition at line 163 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mouseMoved:

- (void) mouseMoved: (NSEvent *) event
implementation

Forwards to the shared drag/move handler.

Reimplemented from Mode.

Definition at line 203 of file DrawTraceMode.m.

Here is the call graph for this function:

◆ mouseUp:

- (void) mouseUp: (NSEvent *) event
implementation

Completes the trace in freehand mode and returns to Move mode.

Reimplemented from Mode.

Definition at line 208 of file DrawTraceMode.m.

Here is the call graph for this function:

◆ moveLastPoint:

- (void) moveLastPoint: (NSPoint) newLastPoint
implementation

Adjusts the last vertex for live preview when not in freehand mode.

Definition at line 60 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ name

- (NSString *) name
implementation

Returns a human-readable name for this mode.

Reimplemented from Mode.

Definition at line 254 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setUp

- (void) setUp
implementation

Requires exactly one selected pad; otherwise switches to Rest with a message.

Reimplemented from Mode.

Definition at line 225 of file DrawTraceMode.m.

Here is the call graph for this function:
Here is the caller graph for this function:

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