17 #ifndef __H2D_VECTOR_VIEW_H
18 #define __H2D_VECTOR_VIEW_H
46 inline void set_grid_type(
bool hexa) { this->hexa = hexa; refresh(); };
47 void set_mode(
int mode);
71 void plot_arrow(
double x,
double y,
double xval,
double yval,
double max,
double min,
double gs);
73 virtual void on_display();
74 virtual void on_mouse_move(
int x,
int y);
75 virtual void on_key_down(
unsigned char key,
int x,
int y);
76 virtual const char* get_help_text()
const;
83 VectorView(
char* title, WinGeom* wg =
nullptr) {}
85 void show(MeshFunctionSharedPtr<double> vsln) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
86 void show(MeshFunctionSharedPtr<double> xsln, MeshFunctionSharedPtr<double> ysln,
int xitem = H2D_FN_VAL_0,
int yitem = H2D_FN_VAL_0, MeshFunctionSharedPtr<double> xdisp =
nullptr, MeshFunctionSharedPtr<double> ydisp =
nullptr,
double dmult = 1.0) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
88 inline void set_grid_type(
bool hexa) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
89 void set_mode(
int mode) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
92 Vectorizer* get_vectorizer() {
throw Hermes::Exceptions::Exception(
"GLUT disabled.");
return nullptr; }
96 void set_vectorizer_criterion(LinearizerCriterion criterion) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
Vectorizer * vec
Linearizer class responsible for obtaining linearized data.
double length_coef
for extending or shortening arrows
bool hexa
false - quad grid, true - hexa grid
Represents a simple visualization window.
File containing LinearizerMultidimensional class.
File containing View abstract class.
int mode
0 - magnitude is on the background, 1 - arrows are colored, 2 - no arrows, just magnitude on the back...
LinearizerMultidimensional< VectorLinearizerDataDimensions< LINEARIZER_DATA_TYPE > > Vectorizer
Linearizer for vector cases - historically called Vectorizer.
Visualizes a vector PDE solution.
Abstract class for criterion according to which the linearizer stops dividing elements at some point ...