FlowVis 1.0

FlowVis/Streamline.cpp

00001 #include "Streamline.h"
00002 
00003 
00004 Streamline::Streamline(vec3 seed)
00005 {
00006         seed_point = seed;
00007         seed_point_thickness = 1.f;
00008 }
00009 
00010 
00011 Streamline::~Streamline(void)
00012 {
00013 }
00014 
00015 vec3* Streamline::addSamplePoint(vec3 p, bool backwards)
00016 {
00017         if (backwards) {
00018                 sample_points_b.push_back(p);
00019                 return &(sample_points_b[sample_points_b.size() - 1]);
00020         } else {
00021                 sample_points_f.push_back(p);
00022                 return &(sample_points_f[sample_points_f.size() - 1]);
00023         }
00024 }
00025 
00026 void Streamline::addSamplePointThickness(float val, bool backwards)
00027 {
00028         if (backwards) {
00029                 sample_point_thickness_b.push_back(val);
00030         } else {
00031                 sample_point_thickness_f.push_back(val);
00032         }
00033 }
 All Classes Functions Variables Friends