TFPointView Class Reference

This class represents the view in the TFPoint system. More...

#import <TFPointView.h>

List of all members.

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.

Detailed Description

This class represents the view in the TFPoint system.

It is a NSView representing a point in a TransferFunction.


Member Function Documentation

- (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.


Member Data Documentation

- (NSPoint) _dragPosition [protected]

The last mousedown position.

- (CGFloat) _height [protected]

The height of this point.

- (CGFloat) _width [protected]

The width of this point.


The documentation for this class was generated from the following files:

Generated on Wed Jan 20 13:38:39 2010 for Courant by  doxygen 1.6.1