Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Larry Price
gmsh
Commits
0696f645
Commit
0696f645
authored
12 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
new attributes in PViewOptions
parent
5aa9e054
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Common/DefaultOptions.h
+3
-0
3 additions, 0 deletions
Common/DefaultOptions.h
Common/Options.cpp
+12
-0
12 additions, 0 deletions
Common/Options.cpp
Common/Options.h
+1
-0
1 addition, 0 deletions
Common/Options.h
Post/PViewOptions.h
+1
-0
1 addition, 0 deletions
Post/PViewOptions.h
with
17 additions
and
0 deletions
Common/DefaultOptions.h
+
3
−
0
View file @
0696f645
...
...
@@ -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"
,
...
...
This diff is collapsed.
Click to expand it.
Common/Options.cpp
+
12
−
0
View file @
0696f645
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Common/Options.h
+
1
−
0
View file @
0696f645
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Post/PViewOptions.h
+
1
−
0
View file @
0696f645
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment