Inherits from GSElement : GSShape : NSObject
Conforms to GSUserDataProtocol
NSCoding
NSCopying
Declared in GSNode.h

Overview

The class defining the node object

It is a subclass of GSElement

Properties

connection

connection type

@property (assign, nonatomic) GSNodeType connection

parentPath

More specifically typed convenience getter for the generic parent property declared by GSShape.

@property (weak, nonatomic, nullable, readonly) GSPath *parentPath

type

node type

@property (assign, nonatomic) GSNodeType type

Instance Methods

checkConnection

automatically set the connection for handle depending on the angle

- (void)checkConnection

initWithPosition:type:connection:

convenient init

- (instancetype)initWithPosition:(NSPoint)position type:(GSNodeType)type connection:(GSNodeType)connection

Parameters

position

the position

type

the type of the node (LINE, CURVE, QCURVE)

connection

the connection (SMOOTH, SHARP)

makeNodeFirst

Convenient method to make this the first node in the path.

- (void)makeNodeFirst

toggleConnection:

toggles the connection type between SHARP and SMOOTH

- (void)toggleConnection:(BOOL)makeSmooth