Rheolef  7.1
an efficient C++ finite element environment
render_option.h
Go to the documentation of this file.
1 #ifndef _RHEOLEF_RENDER_OPTION_H
2 #define _RHEOLEF_RENDER_OPTION_H
23 //
24 // manage graphical render options
25 // e.g. print it in python for the rheolef_paraview.py script
26 //
27 // author: Pierre.Saramito@imag.fr
28 //
29 // date: 25 janv 2020
30 //
31 #include "rheolef/point.h"
32 
33 namespace rheolef {
34 
35 // ----------------------------------------------------------------------------
36 // option for scalar visualization with paraview
37 // ----------------------------------------------------------------------------
38 struct render_option {
39  render_option();
40  friend std::ostream& operator<< (std::ostream& py, const render_option&);
41  void put_paraview (std::ostream& py) const;
42  static std::string python (const point& x, size_t d=3);
43 // data:
49  mutable point xmin, xmax, origin, normal;
50  mutable std::string format, mark, label, valued, style;
51 };
52 
53 } // namespace rheolef
54 #endif // _RHEOLEF_RENDER_OPTION_H
see the Float page for the full documentation
see the point page for the full documentation
This file is part of Rheolef.
void put_paraview(std::ostream &py) const
friend std::ostream & operator<<(std::ostream &py, const render_option &)
point_basic< size_t > resolution
Definition: render_option.h:48
static std::string python(const point &x, size_t d=3)