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

Mode for drawing polygons on the pad with adjustable transparency. More...

#include <DrawPolygonPadMode.h>

Inheritance diagram for DrawPolygonPadMode:
Collaboration diagram for DrawPolygonPadMode:

Instance Methods

(id) - init [implementation]
(NSCursor *) - cursor [implementation]
(void) - close [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:

Protected Attributes

CGFloat _transparency
Protected Attributes inherited from Mode
PlayAreaplayArea
Controllercontroller
ModenextMode

Detailed Description

Mode for drawing polygons on the pad with adjustable transparency.

Concrete implementation of DrawPolygonPadMode behavior.

Definition at line 16 of file DrawPolygonPadMode.h.

Method Documentation

◆ cleanUp

- (void) cleanUp
implementation

Commits the polygon if valid on exit; otherwise refreshes.

Reimplemented from Mode.

Definition at line 255 of file DrawPolygonPadMode.m.

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

◆ close

- (void) close
implementation

Closes the polygon, restores pad styling, adds it to the play area, clears temporary state, and refreshes the view.

Definition at line 50 of file DrawPolygonPadMode.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 digitizing.

Reimplemented from Mode.

Definition at line 42 of file DrawPolygonPadMode.m.

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

◆ init

- (id) init
implementation

Initializes state for polygon digitizing.

Reimplemented from Mode.

Definition at line 33 of file DrawPolygonPadMode.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 polygon digitizing at the snapped mouse location.

Reimplemented from Mode.

Definition at line 97 of file DrawPolygonPadMode.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 222 of file DrawPolygonPadMode.m.

Here is the call graph for this function:

◆ mouseDraggedOrMoved:whileDown:

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

Updates live feedback during drag/move events, with 90° snapping on Shift.

Definition at line 193 of file DrawPolygonPadMode.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 227 of file DrawPolygonPadMode.m.

Here is the call graph for this function:

◆ mouseUp:

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

Completes a point; increments note for the next pad and logs position.

Reimplemented from Mode.

Definition at line 232 of file DrawPolygonPadMode.m.

Here is the call graph for this function:

◆ moveLastPoint:

- (void) moveLastPoint: (NSPoint) newLastPoint
implementation

Adjusts the last vertex to the provided point for live feedback.

Definition at line 72 of file DrawPolygonPadMode.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 269 of file DrawPolygonPadMode.m.

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

◆ setUp

- (void) setUp
implementation

Ensures a single selection or clears selection; resets point count.

Reimplemented from Mode.

Definition at line 246 of file DrawPolygonPadMode.m.

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

Member Data Documentation

◆ _transparency

- (CGFloat) _transparency
protected

Polygon fill transparency used while drawing.

Definition at line 18 of file DrawPolygonPadMode.h.


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