OpenGLFrame Class Reference

The OpenGLFrame is the corresponding view to the OpenGLController. More...

#import <OpenGLFrame.h>

List of all members.

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.
Matrix4x4camera
 The current camera Matrix4x4.
BOOL _paused
 True if render is temporarily paused.
IBOutlet TFController_tfController
IBOutlet MyDocument_document

Properties

NSArray * channels
 The channels existing.
FlowDatadata
 The flow data loaded.

Detailed Description

The OpenGLFrame is the corresponding view to the OpenGLController.

This class performs the redraw mechanism.


Member Function Documentation

- (void) drawRect: (NSRect)  dirtyRect   [implementation]

The redraw method.

Performs the 3 rendering types:

  • Arrows
  • Streamlines
  • Color Coding.
- (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".


Member Data Documentation

- (BOOL) _paused [protected]

True if render is temporarily paused.

- (Matrix4x4*) camera [protected]

The current camera Matrix4x4.

- (GLuint) shaderProgram [protected]

The id of the shader program.


Property Documentation

- (NSArray *) channels [read, write, retain]

The channels existing.

- (FlowData *) data [read, write, retain]

The flow data loaded.


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