22 #ifndef __H2D_BASE_VIEW_H
23 #define __H2D_BASE_VIEW_H
25 #include "../global.h"
26 #include "scalar_view.h"
27 #include "../space/space.h"
28 #include "../shapeset/precalc.h"
44 template<
typename Scalar>
45 class HERMES_API BaseView :
public ScalarView
49 BaseView(
const char* title =
"BaseView", WinGeom* wg = NULL);
50 BaseView(
char* title, WinGeom* wg = NULL);
52 void show(
const Space<Scalar>* space,
double eps = HERMES_EPS_LOW,
int item = H2D_FN_VAL_0);
54 ~BaseView() { free(); }
58 const Space<Scalar>* space;
60 Solution<Scalar>* sln;
69 void update_solution();
72 virtual void on_special_key(
int key,
int x,
int y);
73 virtual const char* get_help_text()
const;
76 template<
typename Scalar>
77 class HERMES_API BaseView :
public ScalarView
80 BaseView(
const char* title =
"BaseView", WinGeom* wg = NULL) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
81 BaseView(
char* title, WinGeom* wg = NULL) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
83 void show(
const Space<Scalar>* space,
double eps = HERMES_EPS_LOW,
int item = H2D_FN_VAL_0) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }