This class is the view in the TF system. More...
#import <TFView.h>
Public Member Functions | |
| (TFController *) | - controller |
| (void) | - drawHistogram |
| Draws the histogram to this TFView. | |
| (void) | - drawLine |
| Draws the points and the connecting lines to this TFView. | |
| (void) | - drawGradient |
| Draws the gradient background to this TFView. | |
| (BOOL) | - acceptsFirstResponder |
| (void) | - mouseDown: |
| (void) | - addPointAsSubview:WithColor:HorizontalFixed:Undeleteable:showColor: |
| Add a new Point as a subview to this view. | |
| (void) | - removeAllPoints |
| Removes all TFPointView that are a subview of this TFView. | |
| (void) | - initiateRedraw: |
| This method is invoked, if there is a need to update the view. | |
| (void) | - initiateRedrawWithReset: |
| (id) | - initWithFrame: [implementation] |
| (void) | - awakeFromNib [implementation] |
| (void) | - drawRect: [implementation] |
| (void) | - dealloc [implementation] |
Protected Attributes | |
| IBOutlet TFController * | _controller |
This class is the view in the TF system.
It gains data using the TFController and draws this using specific draw methods.
| - (void) addPointAsSubview: | (NSPoint) | position | ||
| WithColor: | (NSColor *) | color | ||
| HorizontalFixed: | (BOOL) | fix | ||
| Undeleteable: | (BOOL) | undeleteable | ||
| showColor: | (BOOL) | forceColor | ||
Add a new Point as a subview to this view.
The method will create a new TFPointView with the specified parameters and add this object as subview.
[self addSubview:[[TFPointView alloc] initWithFrame:rect Color:color HorizontalFixed:fix Undeleteable:undeleteable Controller:_controller]];
| - (void) initiateRedraw: | (NSNotification *) | notification |
This method is invoked, if there is a need to update the view.
This method is ment to be called via a notification center. It listens for "TransferFunction:fullRedraw".
1.6.1