This class is the controller in the TF system. More...
#import <TFController.h>
Public Member Functions | |
(id) | - init |
Default initializer. | |
(void) | - setActivePoint: |
Set a new active TFPointView. | |
(TFPointView *) | - activePoint |
Get the active TFPointView. | |
(NSArray *) | - histogram |
Return the histogram to draw. | |
(void) | - addPoint: |
Add a point to the TransferFunction. | |
(void) | - removePoint: |
Remove a pointfrom the TransferFunction. | |
(void) | - removeAllPoints |
(void) | - sortPoints |
Sort the points of the TransferFunction. | |
(NSMutableArray *) | - points |
Return all points of the TransferFunction. | |
(void) | - loadTransferFunction |
Transform the TransferFunction to a texture and load it to the GPU. | |
(BOOL) | - drawHistogram |
Returns whether or not a histogram shall be drawn. | |
(IBAction) | - toggleHistogram: |
Toggle the status whether or not a histogram shall be drawn. | |
(void) | - setModelRect: |
Sets the model size. | |
(TFModel *) | - model |
(IBAction) | - initRedraw: |
(void) | - awakeFromNib [implementation] |
(void) | - bind:toObject:withKeyPath:options: [implementation] |
(void) | - observeValueForKeyPath:ofObject:change:context: [implementation] |
(void) | - setModel: [implementation] |
(void) | - dealloc [implementation] |
Static Public Member Functions | |
(TFController *) | + createController |
Convenience allocator to create a new TFController. | |
Protected Attributes | |
TFModel * | _model |
IBOutlet id | _modelController |
id | observedObjectForModel |
NSString * | observedKeyPathForModel |
NSValueTransformer * | modelValueTransformer |
IBOutlet id | layerSelector |
IBOutlet id | minField |
IBOutlet id | maxField |
TFPointView * | _activePoint |
The currently selected point. | |
BOOL | _drawHistogram |
Whether or not a histogram should be drawn. | |
NSRect | _modelRect |
Properties | |
FlowData * | dataset |
Information concerning the size. |
This class is the controller in the TF system.
It manages models and views of a TransferFunction.
- (TFPointView*) _activePoint [protected] |
The currently selected point.
- (BOOL) _drawHistogram [protected] |
Whether or not a histogram should be drawn.
- (FlowData *) dataset [read, write, retain] |
Information concerning the size.