#import <ColorCodingLayer.h>
Public Member Functions | |
(void) | - setWidth:height: |
(void) | - insertNode:atIndex: |
(NSColor *) | - colorAtIndex: |
(int) | - numberofColors |
(TransferNode *) | - nodeAtIndex: |
(void) | - removeNodeAtIndex: |
Protected Attributes | |
Users ulrich Projects Xcode GoFlow ColorCodingLayer h NSMutableArray * | colors |
Properties | |
NSMutableArray * | colors |
int | width |
int | height |
Implementation of a Color Coding Layer for the rendering process
- (NSColor *) colorAtIndex: | (int) | index |
Returns the color at an index
index | The index in the color array |
- (void) insertNode: | (TransferNode *) | node | |
atIndex: | (int) | index | |
Inserts a node to the transfer function
node | The node to insert |
index | The index where the node should be inserted |
- (TransferNode *) nodeAtIndex: | (int) | index |
Returns the TransferNode at an index
index | The index of the TransferNode |
- (int) numberofColors |
Returns the number of colors in the transfer function
- (void) removeNodeAtIndex: | (int) | index |
Removes a TransferNode at an index
index | The index of the TransferNode |
- (void) setWidth: | (int) | _width | |
height: | (int) | _height | |
Sets the width and height of the transfer functon panel
_width | The width of the panel |
_height | The height of the panel |
- (Users ulrich Projects Xcode GoFlow ColorCodingLayer h NSMutableArray*) colors [protected] |
- (NSMutableArray*) colors [read, write, retain] |
An array containg the colors of the transfer function form the GUI
- (int) height [read, write, assign] |
The height of the transfer function panel
- (int) width [read, write, assign] |
The width of the transfer function panel