12 #ifndef GLVIS_VSSOLUTION_HPP
13 #define GLVIS_VSSOLUTION_HPP
38 bool have_sol_range =
false;
58 void FindNewBox(
double rx[],
double ry[],
double rval[]);
61 DenseMatrix &pointmat, Vector &values, Array<int> &ind);
63 void GetRefinedDetJ(
int i,
const IntegrationRule &ir,
64 Vector &vals, DenseMatrix &tr);
67 virtual void GetRefinedValues(
int i,
const IntegrationRule &ir,
68 Vector &vals, DenseMatrix &tr);
69 virtual int GetRefinedValuesAndNormals(
int i,
const IntegrationRule &ir,
70 Vector &vals, DenseMatrix &tr,
71 DenseMatrix &normals);
73 void DrawLevelCurves(
gl3::GlBuilder& buf, Array<int> &RG, DenseMatrix &pointmat,
74 Vector &values,
int sides, Array<double> &lvl,
77 int GetAutoRefineFactor();
80 double GetElementLengthScale(
int k);
93 virtual std::string GetHelpString()
const;
97 void NewMeshAndSolution(Mesh *new_m, Vector *new_sol,
98 GridFunction *new_u = NULL);
100 virtual void SetNewScalingFromBox();
101 virtual void FindNewBox(
bool prepare);
102 virtual void FindNewValueRange(
bool prepare);
104 { FindNewBox(prepare); }
105 virtual void FindMeshBox(
bool prepare);
107 virtual void ToggleLogscale(
bool print);
108 virtual void EventUpdateBackground();
109 virtual void EventUpdateColors();
111 virtual void UpdateValueRange(
bool prepare);
113 void PrepareWithNormals();
117 virtual void PrepareLines();
118 void PrepareLines2();
119 void PrepareLines3();
121 virtual void Prepare();
122 void PrepareLevelCurves();
123 void PrepareLevelCurves2();
125 void PrepareBoundary();
127 void PrepareOrderingCurve();
128 void PrepareOrderingCurve1(
gl3::GlDrawable& buf,
bool arrows,
bool color);
130 void PrepareNumbering();
131 void PrepareElementNumbering();
132 void PrepareElementNumbering1();
133 void PrepareElementNumbering2();
134 void PrepareVertexNumbering();
135 void PrepareVertexNumbering1();
136 void PrepareVertexNumbering2();
137 void PrepareEdgeNumbering();
146 virtual void glTF_Export();
148 void ToggleDrawBdr();
150 virtual void ToggleDrawElems();
161 virtual void SetShading(
int,
bool);
162 void ToggleShading();
166 void ToggleRefinements();
167 void ToggleRefinementFunction();
169 virtual void SetRefineFactors(
int,
int);
170 virtual void AutoRefine();
171 virtual void ToggleAttributes(Array<int> &attr_list);
virtual void FindNewBoxAndValueRange(bool prepare)
Array< int > el_attr_to_show
gl3::GlDrawable e_nums_buf
gl3::GlDrawable f_nums_buf
gl3::GlDrawable lcurve_buf
void DrawNumberedMarker(gl3::GlDrawable &buff, const double x[3], double dx, int n)
virtual void UpdateLevelLines()
void ToggleDrawNumberings()
gl3::GlDrawable v_nums_buf
gl3::GlDrawable order_noarrow_buf
gl3::GlDrawable order_buf
Crude fixed-function OpenGL emulation helper.
void SetGridFunction(GridFunction &u)
virtual int GetDrawMesh()
virtual void SetDrawMesh(int i)
void ToggleDrawOrdering()