The OpenGLFrame is the corresponding view to the OpenGLController. More...
#import <OpenGLFrame.h>
Public Member Functions | |
(void) | - updateTransferfunction: |
This method is invoked, if there is a need to update the Transferfunction. | |
(void) | - initiateRedraw: |
Calling this method will initiate a redraw of this openGL context. | |
(void) | - toggleRender |
This method pauses the render. | |
(id) | - initWithFrame: [implementation] |
(void) | - awakeFromNib [implementation] |
(void) | - magnifyWithEvent: [implementation] |
(void) | - scrollWheel: [implementation] |
(void) | - prepareOpenGL [implementation] |
Used to prepare the openGL context. | |
(void) | - drawRect: [implementation] |
The redraw method. | |
(void) | - dealloc [implementation] |
Protected Attributes | |
GLuint | shaderProgram |
The id of the shader program. | |
Matrix4x4 * | camera |
The current camera Matrix4x4. | |
BOOL | _paused |
True if render is temporarily paused. | |
IBOutlet TFController * | _tfController |
IBOutlet MyDocument * | _document |
Properties | |
NSArray * | channels |
The channels existing. | |
FlowData * | data |
The flow data loaded. |
The OpenGLFrame is the corresponding view to the OpenGLController.
This class performs the redraw mechanism.
- (void) drawRect: | (NSRect) | dirtyRect | [implementation] |
The redraw method.
Performs the 3 rendering types:
- (void) initiateRedraw: | (NSNotification *) | notification |
Calling this method will initiate a redraw of this openGL context.
This method is ment to be called via a notification center.
- (void) prepareOpenGL | [implementation] |
Used to prepare the openGL context.
This method loads and compiles the shaders, creates the front and back color texture, creates a noise texture and performs all necessary initialization steps.
- (void) updateTransferfunction: | (NSNotification*) | notification |
This method is invoked, if there is a need to update the Transferfunction.
This method is ment to be called via a notification center. It listens for "TransferFunction:fullRedraw".
- (BOOL) _paused [protected] |
True if render is temporarily paused.
- (GLuint) shaderProgram [protected] |
The id of the shader program.
- (NSArray *) channels [read, write, retain] |
The channels existing.
- (FlowData *) data [read, write, retain] |
The flow data loaded.