Public Member Functions | Protected Attributes

FlowOpenGLView Class Reference

#import <FlowOpenGLView.h>

List of all members.

Public Member Functions

(NSOpenGLPixelFormat *) - createPixelFormat:
(BOOL) - initGL
(void) - dataLoaded:
(void) - layerChanged:
(void) - createTextureLayer:channel:width:height:
(void) - createTransferFunctionTexture:colorCodingLayer:
(void) - drawColorCodingWithTextureUnit:transferTextureUnit:opacity:
(void) - drawArrowPlotWithTextureUnit0:textureUnit1:textureUnit2:steps:colorToning:arrowScaleFactor:opacity:
(void) - drawStreamLinesWithGridIdx:withColor:glyphMapping:tapering:opacity:algo:
(void) - renderLayers

Protected Attributes

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
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
float zoomFactor
float moveX
float moveY
float scaleFactorX
float scaleFactorY
GLuint testTexture
FlowDataflowData
FlowShaderflowShader
SettingsControllersettings
NSMutableArray * streamLineGrids
GLuint textureLayers [kMaxChannels]
float textureLayersMinMax [kMaxChannels][2]
int idxStartTransferTexture
int xChannel
int yChannel
int velChannel

Detailed Description

Implementaion of the rendering window with the rendering process


Member Function Documentation

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

Parameters:
textureUnitThe OpenGL texture unit
cThe channel which should be used to generate the texture
wThe width of the texture
hThe height of the texture
- (void) createTransferFunctionTexture: (int)  textureUnit
colorCodingLayer: (ColorCodingLayer *)  layer 

Creats an 1D transfer texture which can be used by the shaders

Parameters:
textureUnitThe OpenGL texture unit
layerThe 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

Parameters:
unit0The OpenGL texture unit containing usually an x-component texture
unit1The OpenGL texture unit containing usually an y-component texture
unit2The OpenGL texture unit containing usually a velocity-component texture
stepsThe steps how often an arrow should be plotted
colorToningThe color of the arrow
arrowScaleFactorThe scale factor to control the size of the arrow
opacityThe opacity of the layer
- (void) drawColorCodingWithTextureUnit: (int)  unit
transferTextureUnit: (int)  transferUnit
opacity: (float)  opacity 

Renders a Color Coding Layer

Parameters:
unitThe OpenGL texture unit containing the image which should be rendered
transferUnitThe OpenGL texture unit containing the transfer function texture
opacityThe 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

Parameters:
gridIdxThe index of the stream line grid
colorThe color of the stream
useGlyphsIndicates if glyphs should be rendered
taperingIndicates if tapering should be rendered
opacityThe opacity of the layers
algoThe algorithm for the stream line generation
- (BOOL) initGL

Initializes the OpenGL context

Returns:
YES of successful
- (void) layerChanged: (NSNotification *)  notification

This method will be called if there was any change in the layer parameters

- (void) renderLayers

Renders all layers


Member Data Documentation

- (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]
- (FlowData*) flowData [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]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines