diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-11 03:36:54 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-11 03:36:54 (GMT) |
commit | d7413fd0a44e780656bb928dc68dfbd12eadba05 (patch) | |
tree | 2ffbb1d9a96669b911fad04ae9fcaea3327fcabb /Smoke/streamlines.c | |
parent | 0b2a65158a7b19175bb180acb6fb7199480abcaa (diff) | |
download | 2iv35-d7413fd0a44e780656bb928dc68dfbd12eadba05.zip 2iv35-d7413fd0a44e780656bb928dc68dfbd12eadba05.tar.gz 2iv35-d7413fd0a44e780656bb928dc68dfbd12eadba05.tar.bz2 |
adjustable streamlines
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r-- | Smoke/streamlines.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/Smoke/streamlines.c b/Smoke/streamlines.c index e28be9f..66a7d1b 100644 --- a/Smoke/streamlines.c +++ b/Smoke/streamlines.c @@ -19,6 +19,8 @@ static int streamlines_colormap = PALETTE_RAINBOW; static int streamlines_dataset = DATASET_RHO; static float streamlines_alpha = 1.0f; static int streamlines_sort = STREAMLINES_SORT_LINES; +static int streamlines_slices = 6; +static float streamlines_radius = 8.0f; static fftw_real *streamlines_frame; struct fftw_real_xy **streamlines_history_scalars; @@ -83,6 +85,26 @@ int streamlines_get_dataset(void) return streamlines_dataset; } +void streamlines_set_slices(int slices) +{ + streamlines_slices = slices; +} + +int streamlines_get_slices(void) +{ + return streamlines_slices; +} + +void streamlines_set_radius(float radius) +{ + streamlines_radius = radius; +} + +float streamlines_get_radius(void) +{ + return streamlines_radius; +} + void streamlines_set_frame(fftw_real *frame) { streamlines_frame = frame; @@ -127,4 +149,4 @@ void streamlines_reset_seedpoints(void) delete_seedpoint(0); i++; } -}
\ No newline at end of file +} |