17 #ifndef __H2D_ORDER_VIEW_H
18 #define __H2D_ORDER_VIEW_H
29 static const int H2DV_MAX_VIEWABLE_ORDER = 10;
46 template<
typename Scalar>
48 void set_b_orders(
bool set);
54 int num_boxes, order_min;
56 const char* box_names[H2DV_MAX_VIEWABLE_ORDER + 1];
58 char text_buffer[H2DV_MAX_VIEWABLE_ORDER * 4];
60 float order_colors[H2DV_MAX_VIEWABLE_ORDER + 1][3];
63 void init_order_palette(double3* vert);
65 virtual void on_display();
66 virtual void on_key_down(
unsigned char key,
int x,
int y);
67 virtual void scale_dispatch();
68 virtual int measure_scale_labels();
69 virtual const char* get_help_text()
const;
77 OrderView(
char* title, WinGeom* wg =
nullptr) {}
79 template<
typename Scalar>
80 void show(SpaceSharedPtr<Scalar> space,
bool show_edge_orders =
true) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
81 void set_b_orders(
bool set) {
throw Hermes::Exceptions::Exception(
"GLUT disabled."); }
Used to pass the instances of Space around.
Represents a simple visualization window.
File containing View abstract class.
Displays the polynomial degrees of elements.