StreamView Class Reference

Visualizes streamlines of a vector PDE solution. More...

#include <stream_view.h>

Inherits View.

List of all members.

Classes

struct  Node

Public Member Functions

 StreamView (const char *title="StreamView", DEFAULT_WINDOW_POS)
virtual ~StreamView ()
void show (MeshFunction *xsln, MeshFunction *ysln, int marker, double step, double eps=H2D_EPS_NORMAL)
 Using velocity components (xsln, ysln) it creates streamlines that begin at the boundary with "marker" and the distance between starting points is "step".
void show (MeshFunction *xsln, MeshFunction *ysln, int marker, double step, double eps, int xitem, int yitem)
void add_streamline (double x, double y)
 Creates additional streamline with strarting point (x,y) Note: Can be called only after StreamView::show.

Protected Member Functions

int find_triangle_in_tree (double x, double y, Node *father, double x_min, double x_max, double y_min, double y_max, double3 &bar)
void add_element_to_tree (Node *father, int e_idx, double x_min, double x_max, double y_min, double y_max)
void build_tree ()
void delete_tree (Node *father)
bool is_in_triangle (int idx, double x, double y, double3 &bar)
bool get_solution_values (double x, double y, double &xval, double &yval)
int create_streamline (double x_start, double y_start, int idx)
void find_initial_points (int marker, double step, double2 *&initial_points)
int find_initial_edge (int num_edges, int3 *edges)
virtual void on_display ()
virtual void on_mouse_move (int x, int y)
virtual void on_key_down (unsigned char key, int x, int y)
virtual void on_left_mouse_down (int x, int y)
virtual const char * get_help_text () const

Protected Attributes

Vectorizer vec
double max_mag
bool lines
bool pmode
double initial_tau
double min_tau
double max_tau
int num_stream
double2 ** streamlines
int * streamlength
Noderoot
double root_x_min
double root_x_max
double root_y_min
double root_y_max

Detailed Description

Visualizes streamlines of a vector PDE solution.

StreamView is a visualization window for all vector-valued PDE solutions (especially for flow problems).


Constructor & Destructor Documentation

StreamView::StreamView ( const char *  title = "StreamView",
DEFAULT_WINDOW_POS   
)
StreamView::~StreamView (  )  [virtual]

Member Function Documentation

void StreamView::add_element_to_tree ( Node father,
int  e_idx,
double  x_min,
double  x_max,
double  y_min,
double  y_max 
) [protected]
void StreamView::add_streamline ( double  x,
double  y 
)

Creates additional streamline with strarting point (x,y) Note: Can be called only after StreamView::show.

void StreamView::build_tree (  )  [protected]
int StreamView::create_streamline ( double  x_start,
double  y_start,
int  idx 
) [protected]
void StreamView::delete_tree ( Node father  )  [protected]
int StreamView::find_initial_edge ( int  num_edges,
int3 edges 
) [protected]
void StreamView::find_initial_points ( int  marker,
double  step,
double2 *&  initial_points 
) [protected]
int StreamView::find_triangle_in_tree ( double  x,
double  y,
Node father,
double  x_min,
double  x_max,
double  y_min,
double  y_max,
double3 bar 
) [protected]
const char * StreamView::get_help_text (  )  const [protected, virtual]

Reimplemented from View.

bool StreamView::get_solution_values ( double  x,
double  y,
double &  xval,
double &  yval 
) [protected]
bool StreamView::is_in_triangle ( int  idx,
double  x,
double  y,
double3 bar 
) [protected]
void StreamView::on_display (  )  [protected, virtual]

Implements View.

void StreamView::on_key_down ( unsigned char  key,
int  x,
int  y 
) [protected, virtual]

Reimplemented from View.

void StreamView::on_left_mouse_down ( int  x,
int  y 
) [protected, virtual]

Reimplemented from View.

void StreamView::on_mouse_move ( int  x,
int  y 
) [protected, virtual]

Reimplemented from View.

void StreamView::show ( MeshFunction xsln,
MeshFunction ysln,
int  marker,
double  step,
double  eps,
int  xitem,
int  yitem 
)
void StreamView::show ( MeshFunction xsln,
MeshFunction ysln,
int  marker,
double  step,
double  eps = H2D_EPS_NORMAL 
)

Using velocity components (xsln, ysln) it creates streamlines that begin at the boundary with "marker" and the distance between starting points is "step".


Member Data Documentation

double StreamView::initial_tau [protected]
bool StreamView::lines [protected]
double StreamView::max_mag [protected]
double StreamView::max_tau [protected]
double StreamView::min_tau [protected]
int StreamView::num_stream [protected]
bool StreamView::pmode [protected]
Node* StreamView::root [protected]
double StreamView::root_x_max [protected]
double StreamView::root_x_min [protected]
double StreamView::root_y_max [protected]
double StreamView::root_y_min [protected]
int* StreamView::streamlength [protected]

The documentation for this class was generated from the following files:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3