This class represents the view in the TFPoint system. More...
#import <TFPointView.h>
Public Member Functions | |
| (id) | - initWithFrame:Controller: |
| Initialize the view with a specified TFController. | |
| (id) | - initWithModel:Controller: |
| Initialize the view with a specified Color, information concerning horizontalFixness and undeletability and a TFController. | |
| (void) | - mouseDown: |
| (void) | - mouseDragged: |
| (BOOL) | - horizontalFixed |
| Returns whether or not this point cannot be moved honrizontally. | |
| (void) | - updateColorPanelAndShow: |
| Tells the ColorPanel to update to this Points color. | |
| (TFPointModel *) | - model |
| (void) | - redraw [implementation] |
| (void) | - drawRect: [implementation] |
| (BOOL) | - acceptsFirstResponder [implementation] |
| (void) | - rightMouseUp: [implementation] |
| (void) | - updateColor [implementation] |
| (void) | - dealloc [implementation] |
Protected Attributes | |
| TFPointModel * | _model |
| TFController * | _controller |
| NSPoint | _dragPosition |
| The last mousedown position. | |
| CGFloat | _width |
| The width of this point. | |
| CGFloat | _height |
| The height of this point. | |
This class represents the view in the TFPoint system.
It is a NSView representing a point in a TransferFunction.
| - (id) initWithModel: | (TFPointModel *) | model | ||
| Controller: | (TFController *) | controller | ||
Initialize the view with a specified Color, information concerning horizontalFixness and undeletability and a TFController.
NSPoint modifiedPos = NSMakePoint(frame.origin.x+_width/2, frame.origin.y+_height/2);
[_controller addPoint:_model];
| - (void) updateColorPanelAndShow: | (BOOL) | show |
Tells the ColorPanel to update to this Points color.
If show is true, the ColorPanel will be called to the front, otherwise not.
- (NSPoint) _dragPosition [protected] |
The last mousedown position.
- (CGFloat) _height [protected] |
The height of this point.
- (CGFloat) _width [protected] |
The width of this point.
1.6.1