summaryrefslogtreecommitdiffstats
path: root/Smoke/streamlines.c
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r--Smoke/streamlines.c24
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
+}