Skip to content
Snippets Groups Projects
Commit 0696f645 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

new attributes in PViewOptions

parent 5aa9e054
No related branches found
No related tags found
No related merge requests found
......@@ -163,6 +163,9 @@ StringXString PostProcessingOptions_String[] = {
} ;
StringXString ViewOptions_String[] = {
{ F|O, "Attributes" , opt_view_attributes , "" ,
"Optional string attributes" },
{ F|O, "AxesFormatX" , opt_view_axes_format0 , "%.3g" ,
"Number format for X-axis (in standard C form)" },
{ F|O, "AxesFormatY" , opt_view_axes_format1 , "%.3g" ,
......
......@@ -1632,6 +1632,18 @@ std::string opt_view_stipple9(OPT_ARGS_STR)
#endif
}
std::string opt_view_attributes(OPT_ARGS_STR)
{
#if defined(HAVE_POST)
GET_VIEW("");
if(action & GMSH_SET)
opt->attributes = val;
return opt->attributes;
#else
return "";
#endif
}
// Numeric option routines
double opt_general_initial_context(OPT_ARGS_NUM)
......
......@@ -91,6 +91,7 @@ std::string opt_view_stipple6(OPT_ARGS_STR);
std::string opt_view_stipple7(OPT_ARGS_STR);
std::string opt_view_stipple8(OPT_ARGS_STR);
std::string opt_view_stipple9(OPT_ARGS_STR);
std::string opt_view_attributes(OPT_ARGS_STR);
// NUMBERS
......
......@@ -98,6 +98,7 @@ class PViewOptions {
int clip; // status of clip planes (bit array)
int forceNumComponents, componentMap[9];
int sampling;
std::string attributes;
struct{
unsigned int point, line, triangle, quadrangle;
unsigned int tetrahedron, hexahedron, prism, pyramid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment