#import <TransferNode.h>
Public Member Functions | |
(id) | - initWithColor:intensity:opacity:x:y: |
(id) | - initWithCoder: |
(void) | - encodeWithCoder: |
(BOOL) | - isEqualToPoint: |
(NSColor *) | - invertedNodeColor |
(float) | - getRed |
(float) | - getGreen |
(float) | - getBlue |
(float) | - getAlpha |
Properties | |
NSColor * | nodeColor |
float | intensity |
float | opacity |
int | x |
int | y |
Representation of a node object to represent within the TransferPanel. It has a fill color, intensity, opacity, x-coordinate and y-coordinate.
- (void) encodeWithCoder: | (NSCoder *) | coder |
Encode all attributes of the node
coder | The NSCoder for encoding the attributes |
- (float) getAlpha |
Get the alpha compontent of the node color
- (float) getBlue |
Get the blue compontent of the node color
- (float) getGreen |
Get the green compontent of the node color
- (float) getRed |
Get the red compontent of the node color
- (id) initWithCoder: | (NSCoder *) | coder |
Initialize a TransferNode for decoding with a NSCoder
coder | The NSCoder to decode the object attributes |
- (id) initWithColor: | (NSColor *) | color | |
intensity: | (float) | aIntensity | |
opacity: | (float) | aOpacity | |
x: | (int) | aX | |
y: | (int) | aY | |
Initialize a TransferNode
color | The fill color of the node |
aIntensity | The intensity of the node (Intensity is calculated throw x / width of the TransferPanel) |
aOpacity | The intensity of the node (Intensity is calculated throw x / width of the TransferPanel) |
aX | The x-coordinate of the node |
aY | The y-coordinate of the node |
- (NSColor *) invertedNodeColor |
Calculate the inverted NSColor of the node
- (BOOL) isEqualToPoint: | (NSPoint) | otherPoint |
Compares the reciever to another point. The comparision takes a certain threshold into account (kMinNodeDistance)
otherPoint | The NSPoint to be compared to the reciever |
- (float) intensity [read, write, assign] |
- (NSColor *) nodeColor [read, write, retain] |
- (float) opacity [read, write, assign] |
- (int) x [read, write, assign] |
- (int) y [read, write, assign] |