streamlines.c File Reference

Handle the drawing of streamlines. More...

#include <float.h>
#include "rendermodes.h"

Defines

#define lineDDA_gatherRGB(x0, y0, xEnd, yEnd, color, dst, dst_w, dst_h, r, g, b)
#define _f1_x(rank, ret_color)
#define _f2_x(rank, dir_flag, ret_color)
#define TEST_NEIGHBORHOOD(testpos, testdist, retval)
#define SLTEX_BLUR_MACRO
#define TRIANGLE_GLYPH(s_pos, e_pos, scale)

Functions

void draw_single_streamline (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float *seed_point, uint32_t line_color)
 Draw single streamline. No additional logic, just a simple streamline evaluator and plotter.
void draw_streamlines_gridseed (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float linecnt_x, float linecnt_y, uint32_t line_color)
 Draw streamlines (grid). Draw streamlines with seepoints placed on grid.
void draw_single_streamline_evenly_spaced (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float *seed_point, uint32_t line_color, sl_t *samplepoints)
 Draw single streamline. More elaborated streamline plotter (e.g. stores samplepoints) - used for evenly spaced streamlines.
void draw_streamlines_evenly_spaced (uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float line_width, float dsep, float dtest, uint32_t line_color)
 Draw streamlines (evenly spaced).
void dirblur_tex (uint32_t *srcin, uint32_t *dst, int dst_w, int dst_h, vec4f *dir_data, float blur_amount)

Variables

sl_t ** dsep_grid
sl_t * samplepoints
sl_t * tmp_samplepoints
int max_len
int max_seedpoints
int dsep_w
int dsep_h
int dsepdsep
float nearest


Detailed Description

Handle the drawing of streamlines.


Function Documentation

void draw_single_streamline uint32_t *  dst,
int  dst_w,
int  dst_h,
vec4f *  dir_data,
float  line_width,
float *  seed_point,
uint32_t  line_color
 

Draw single streamline. No additional logic, just a simple streamline evaluator and plotter.

Parameters:
dst Pointer to the blit-destination
dst_w The blit-destination's width
dst_h The blit-destination's height
dir_data Pointer to the velocity-vectors of the flow-field
line_width Streamline width
seed_point Pointer to seedpoint for this streamline
line_color Streamline color

void draw_single_streamline_evenly_spaced uint32_t *  dst,
int  dst_w,
int  dst_h,
vec4f *  dir_data,
float  line_width,
float *  seed_point,
uint32_t  line_color,
sl_t *  samplepoints
 

Draw single streamline. More elaborated streamline plotter (e.g. stores samplepoints) - used for evenly spaced streamlines.

Parameters:
dst Pointer to the blit-destination
dst_w The blit-destination's width
dst_h The blit-destination's height
dir_data Pointer to the velocity-vectors of the flow-field
line_width Streamline width
seed_point Pointer to seedpoint for this streamline
line_color Streamline color
samplepoints Pointer to memory-area which is to store the samplepoints of this streamline

void draw_streamlines_evenly_spaced uint32_t *  dst,
int  dst_w,
int  dst_h,
vec4f *  dir_data,
float  line_width,
float  dsep,
float  dtest,
uint32_t  line_color
 

Draw streamlines (evenly spaced).

Parameters:
dst Pointer to the blit-destination
dst_w The blit-destination's width
dst_h The blit-destination's height
dir_data Pointer to the velocity-vectors of the flow-field
line_width Streamline width
dsep Distance of new seedpoints to the streamline that spawned this new seedpoint
dtest Minimal distance to existing samplepoints at which further evaluation of current streamline ends
line_color Streamline color

void draw_streamlines_gridseed uint32_t *  dst,
int  dst_w,
int  dst_h,
vec4f *  dir_data,
float  line_width,
float  linecnt_x,
float  linecnt_y,
uint32_t  line_color
 

Draw streamlines (grid). Draw streamlines with seepoints placed on grid.

Parameters:
dst Pointer to the blit-destination
dst_w The blit-destination's width
dst_h The blit-destination's height
dir_data Pointer to the velocity-vectors of the flow-field
line_width Streamline width
linecnt_x Number of streamlines per row
linecnt_y Number of streamlines per column
line_color Streamline color


Generated on Mon Jan 22 17:35:13 2007 for PHFLOW - Flow Visualizer by  doxygen 1.4.6