render_option.h
Go to the documentation of this file.
#ifndef _RHEOLEF_RENDER_OPTION_H
#define _RHEOLEF_RENDER_OPTION_H
//
// manage graphical render options
// e.g. print it in python for the rheolef_paraview.py script
//
// author: Pierre.Saramito@imag.fr
//
// date: 25 janv 2020
//
#include "rheolef/point.h"
namespace rheolef {
// ----------------------------------------------------------------------------
// option for scalar visualization with paraview
// ----------------------------------------------------------------------------
struct render_option {
render_option();
friend std::ostream& operator<< (std::ostream& py, const render_option&);
void put_paraview (std::ostream& py) const;
static std::string python (const point& x, size_t d=3);
// data:
mutable bool showlabel, stereo, elevation, iso, cut, grid, fill, volume, view_2d,
view_map, high_order, color, gray, black_and_white, have_opacity_bug;
mutable size_t n_isovalue, n_isovalue_negative, branch_size;
mutable Float scale, f_min, f_max, isovalue;
mutable point_basic<size_t> resolution;
mutable point xmin, xmax, origin, normal;
mutable std::string format, mark, label, valued, style;
};
} // namespace rheolef
#endif // _RHEOLEF_RENDER_OPTION_H
rheolef::render_option::f_max
Float f_max
Definition: render_option.h:47
rheolef::point_basic< size_t >
rheolef::render_option::origin
point origin
Definition: render_option.h:49
rheolef::render_option::grid
bool grid
Definition: render_option.h:44
rheolef::render_option::black_and_white
bool black_and_white
Definition: render_option.h:45
rheolef::render_option::render_option
render_option()
Definition: render_option.cc:34
rheolef::render_option::color
bool color
Definition: render_option.h:45
rheolef::render_option::put_paraview
void put_paraview(std::ostream &py) const
Definition: render_option.cc:48
rheolef::render_option::fill
bool fill
Definition: render_option.h:44
rheolef::render_option::operator<<
friend std::ostream & operator<<(std::ostream &py, const render_option &)
Definition: render_option.cc:44
rheolef::render_option::elevation
bool elevation
Definition: render_option.h:44
rheolef::render_option::f_min
Float f_min
Definition: render_option.h:47
rheolef::render_option::view_map
bool view_map
Definition: render_option.h:45
rheolef::render_option::xmin
point xmin
Definition: render_option.h:49
rheolef::render_option::gray
bool gray
Definition: render_option.h:45
rheolef::render_option::branch_size
size_t branch_size
Definition: render_option.h:46
rheolef::render_option::n_isovalue
size_t n_isovalue
Definition: render_option.h:46
rheolef::render_option::stereo
bool stereo
Definition: render_option.h:44
rheolef::render_option::python
static std::string python(const point &x, size_t d=3)
rheolef::render_option::cut
bool cut
Definition: render_option.h:44
rheolef::render_option::mark
std::string mark
Definition: render_option.h:50
rheolef::render_option::scale
Float scale
Definition: render_option.h:47
rheolef::render_option::volume
bool volume
Definition: render_option.h:44
rheolef::render_option::high_order
bool high_order
Definition: render_option.h:45
rheolef::render_option::xmax
point xmax
Definition: render_option.h:49
rheolef::render_option::normal
point normal
Definition: render_option.h:49
rheolef
This file is part of Rheolef.
Definition: compiler_eigen.h:37
rheolef::render_option::label
std::string label
Definition: render_option.h:50
rheolef::render_option
Definition: render_option.h:38
Float
see the Float page for the full documentation
point
see the point page for the full documentation
mkgeo_ball.d
d
Definition: mkgeo_ball.sh:154
rheolef::render_option::isovalue
Float isovalue
Definition: render_option.h:47
rheolef::render_option::resolution
point_basic< size_t > resolution
Definition: render_option.h:48
rheolef::render_option::style
std::string style
Definition: render_option.h:50
rheolef::render_option::iso
bool iso
Definition: render_option.h:44
rheolef::render_option::have_opacity_bug
bool have_opacity_bug
Definition: render_option.h:45
rheolef::render_option::showlabel
bool showlabel
Definition: render_option.h:44
rheolef::render_option::n_isovalue_negative
size_t n_isovalue_negative
Definition: render_option.h:46
rheolef::render_option::valued
std::string valued
Definition: render_option.h:50
rheolef::render_option::view_2d
bool view_2d
Definition: render_option.h:44
rheolef::render_option::format
std::string format
Definition: render_option.h:50