22 #ifndef __H2D_STREAM_VIEW_H
23 #define __H2D_STREAM_VIEW_H
54 void add_streamline(
double x,
double y);
75 double2** streamlines;
85 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);
90 void add_element_to_tree(
Node* father,
int e_idx,
double x_min,
double x_max,
double y_min,
double y_max);
94 void delete_tree(
Node* father);
98 bool is_in_triangle(
int idx,
double x,
double y, double3& bar);
101 bool get_solution_values(
double x,
double y,
double& xval,
double& yval);
105 int create_streamline(
double x_start,
double y_start,
int idx);
109 void find_initial_points(
int marker,
double step, double2*& initial_points);
113 int find_initial_edge(
int num_edges, int3* edges);
115 virtual void on_display();
116 virtual void on_mouse_move(
int x,
int y);
117 virtual void on_key_down(
unsigned char key,
int x,
int y);
118 virtual void on_left_mouse_down(
int x,
int y);
119 virtual const char* get_help_text()
const;
125 StreamView(
const char* title =
"StreamView",
WinGeom* wg = NULL) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
126 StreamView(
char* title, WinGeom* wg = NULL) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
130 void show(MeshFunction<double>* xsln, MeshFunction<double>* ysln,
int marker,
double step,
double eps = HERMES_EPS_NORMAL) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
131 void show(MeshFunction<double>* xsln, MeshFunction<double>* ysln,
int marker,
double step,
double eps,
int xitem,
int yitem) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
135 void add_streamline(
double x,
double y) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }