16 #ifndef __H2D_BASE_VIEW_H
17 #define __H2D_BASE_VIEW_H
19 #include "../global.h"
20 #include "../space/space.h"
21 #include "../shapeset/precalc.h"
38 template<
typename Scalar>
39 class HERMES_API BaseView :
public ScalarView
43 BaseView(
const char* title =
"BaseView", WinGeom* wg =
nullptr);
44 BaseView(
char* title, WinGeom* wg =
nullptr);
46 void show(SpaceSharedPtr<Scalar> space,
int item = H2D_FN_VAL_0);
48 ~BaseView() { free(); }
52 SpaceSharedPtr<Scalar> space;
53 MeshFunctionSharedPtr<Scalar> sln;
54 MeshFunctionSharedPtr<double> complex_filter;
63 void update_solution();
66 virtual void on_special_key(
int key,
int x,
int y);
67 virtual const char* get_help_text()
const;
70 template<
typename Scalar>
71 class HERMES_API BaseView :
public ScalarView
74 BaseView(
const char* title =
"BaseView", WinGeom* wg =
nullptr) : ScalarView(title, wg) {}
75 BaseView(
char* title, WinGeom* wg =
nullptr) : ScalarView(title, wg) {}
77 void show(SpaceSharedPtr<Scalar> space,
int item = H2D_FN_VAL_0) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
File containing ScalarView class.
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.