Settings Panel of the transfer function.
More...
#import <TransferPanel.h>
List of all members.
Detailed Description
Settings Panel of the transfer function.
This class manages the graphical representation of the transferfunction, the histogramm and notifies the MyOpenGLView when changes should be applied.
Member Function Documentation
- (IBAction) checkBoxClicked: |
|
(id) |
sender |
|
Called if the histogramm checkbox is clicked.
This will enable or disable the histogramm.
- Parameters:
-
sender | The invoker of the method. Can be nil. |
Called when a object of this class is released.
This will release all attributes an afterwards itself.
- (IBAction) openTransferfunction: |
|
(id) |
sender |
|
Called if the "Open Transferfunction" button is clicked.
This will open a previous saved transferfunction
- Parameters:
-
sender | The invoker of the method. Can be nil. |
Reload the gradient.
This method is called after a new TransferNoder is added, a existing removed or changed.
- (IBAction) saveTransferfunction: |
|
(id) |
sender |
|
Called if the "Save Transferfunction" button is clicked This will save the transferfunction to a file.
- Parameters:
-
sender | The invoker of the method |
- (void) setEndColor: |
|
(NSColor *) |
endColor |
|
Set the end color fo the gradient.
- Parameters:
-
endColor | The NSColor which has to be set for the end of the gradient |
- (void) setHistogramm: |
|
(int *) |
hist |
withMaxValue: |
|
(NSUInteger) |
maxValue |
|
|
| |
This method will override the old histogramm with hist.
It get's called after a new file is loaded. The resolution of the histogramm is definied with kHistogrammResolution
- Parameters:
-
hist | A int array with the histogramm values |
maxValue | The maximum value of hist |
- (void) setStartColor: |
|
(NSColor *) |
startColor |
|
Set the start color fo the gradient.
- Parameters:
-
startColor | The NSColor which has to be set for the start of the gradient |
Member Data Documentation
Property Documentation
- (int) activeNode [read, write, assign] |
- (IBOutlet NSButton*) checkBox [read, write, retain] |
- (NSUInteger) maxHistValue [read, write, assign] |
- (int) nodeCount [read, write, assign] |
- (NSMutableArray *) transferNodes [read, write, retain] |
The documentation for this class was generated from the following files: