#import <FlowOpenGLView.h>
Implementaion of the rendering window with the rendering process
- (NSOpenGLPixelFormat *) createPixelFormat: | (NSRect) | frame |
Creates the pixel format for the rendering window
- (void) createTextureLayer: | (int) | textureUnit | |
channel: | (FlowChannel*) | c | |
width: | (int) | w | |
height: | (int) | h | |
Creates texture of flow data which can e.g. processed by the shaders
textureUnit | The OpenGL texture unit |
c | The channel which should be used to generate the texture |
w | The width of the texture |
h | The height of the texture |
- (void) createTransferFunctionTexture: | (int) | textureUnit | |
colorCodingLayer: | (ColorCodingLayer *) | layer | |
Creats an 1D transfer texture which can be used by the shaders
textureUnit | The OpenGL texture unit |
layer | The ColorCodingLayer from which the transfer texture will be created |
- (void) dataLoaded: | (NSNotification *) | notification |
This method will be called if the data source changes
- (void) drawArrowPlotWithTextureUnit0: | (int) | unit0 | |
textureUnit1: | (int) | unit1 | |
textureUnit2: | (int) | unit2 | |
steps: | (int) | s | |
colorToning: | (NSColor *) | color | |
arrowScaleFactor: | (float) | scale | |
opacity: | (float) | opacity | |
Renders an Arrow Plot Layer
unit0 | The OpenGL texture unit containing usually an x-component texture |
unit1 | The OpenGL texture unit containing usually an y-component texture |
unit2 | The OpenGL texture unit containing usually a velocity-component texture |
steps | The steps how often an arrow should be plotted |
colorToning | The color of the arrow |
arrowScaleFactor | The scale factor to control the size of the arrow |
opacity | The opacity of the layer |
- (void) drawColorCodingWithTextureUnit: | (int) | unit | |
transferTextureUnit: | (int) | transferUnit | |
opacity: | (float) | opacity | |
Renders a Color Coding Layer
unit | The OpenGL texture unit containing the image which should be rendered |
transferUnit | The OpenGL texture unit containing the transfer function texture |
opacity | The opacity of the layer |
- (void) drawStreamLinesWithGridIdx: | (int) | gridIdx | |
withColor: | (NSColor *) | color | |
glyphMapping: | (BOOL) | useGlyphs | |
tapering: | (BOOL) | tapering | |
opacity: | (float) | opacity | |
algo: | (int) | algo | |
Renders a Stream Line Layer
gridIdx | The index of the stream line grid |
color | The color of the stream |
useGlyphs | Indicates if glyphs should be rendered |
tapering | Indicates if tapering should be rendered |
opacity | The opacity of the layers |
algo | The algorithm for the stream line generation |
- (BOOL) initGL |
Initializes the OpenGL context
- (void) layerChanged: | (NSNotification *) | notification |
This method will be called if there was any change in the layer parameters
- (void) renderLayers |
Renders all layers
- (Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h int) colorBits [protected] |
- (Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h Users ulrich Projects Xcode GoFlow FlowOpenGLView h int) depthBits [protected] |
- (FlowShader*) flowShader [protected] |
- (int) idxStartTransferTexture [protected] |
index to first transfer function texture in textureLayers
- (float) moveX [protected] |
- (float) moveY [protected] |
- (float) scaleFactorX [protected] |
- (float) scaleFactorY [protected] |
- (SettingsController*) settings [protected] |
- (NSMutableArray*) streamLineGrids [protected] |
- (GLuint) testTexture [protected] |
- (GLuint textureLayers[kMaxChannels]) [protected] |
Array containing Layer Textures
- (float textureLayersMinMax[kMaxChannels][2]) [protected] |
Array containing minimun and maximum values for each channel
- (int) velChannel [protected] |
- (int) xChannel [protected] |
Special computed channels
- (int) yChannel [protected] |
- (float) zoomFactor [protected] |