![]() |
Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
An Gnuplot driver object responsible of the display of a virtual geometry. More...
#include <bayeux/geomtools/gnuplot_drawer.h>
Classes | |
| struct | cstream |
| Colored stream handle. More... | |
| class | dd_entry |
| Storage entry for embedded display data. More... | |
| class | has_dd_addr |
| Predicate that tests the address of a display data. More... | |
| struct | range |
| struct | visibility_rules |
| Visibility rules for 3D volume rendering. More... | |
Public Types | |
| typedef std::map< std::string, cstream > | cstreams_col_type |
| Dictionary of colored stream handle. More... | |
| typedef std::vector< dd_entry > | dd_col_type |
| Collection of display data handle. More... | |
Public Member Functions | |
| void | set_output (const std::string &output_) |
| void | reset_output () |
| void | set_terminal (const std::string &terminal_="", const std::string &terminal_options_="") |
| Set Gnuplot terminal and options. More... | |
| void | reset_terminal () |
| Reset Gnuplot terminal and options. More... | |
| int | set_output_medium (const std::string &file_="", const std::string &terminal_="", const std::string &terminal_options_="") |
| void | set_view (const std::string &view_) |
| Set the display view. More... | |
| const std::string & | get_view () const |
| Return the display view. More... | |
| void | set_mode (const std::string &mode_) |
| Set the display mode. More... | |
| const std::string & | get_mode () const |
| Return the display mode. More... | |
| void | set_labels (bool labels_) |
| Set the 'labels' flag. More... | |
| bool | use_labels () const |
| Check 'labels' flag. More... | |
| void | set_using_title (bool) |
| Set the 'title' flag. More... | |
| bool | use_title () const |
| Check 'title' flag. More... | |
| bool | is_view_2d () const |
| Check '2D display' flag. More... | |
| bool | is_view_3d () const |
| Check '3D display' flag. More... | |
| bool | is_solid () const |
| Check 'solid display' flag. More... | |
| bool | is_wired () const |
| Check 'wired display' flag. More... | |
| bool | is_initialized () const |
| Check intialization flag. More... | |
| datatools::properties & | grab_properties () |
| Return a mutable reference to the embedded auxiliary properties. More... | |
| const datatools::properties & | get_properties () const |
| Return a non mutable reference to the embedded auxiliary properties. More... | |
| gnuplot_drawer () | |
| Default constructor. More... | |
| virtual | ~gnuplot_drawer () |
| Destructor. More... | |
| void | reset () |
| Reset. More... | |
| void | reset_cstreams () |
| Reset colored streams. More... | |
| void | print (std::ostream &out_) const |
| Basic print. More... | |
| int | draw (const manager &mgr_, const std::string &what_="", int max_display_level_=0) |
| Main display method. More... | |
| void | draw_logical (const logical_volume &log_, const placement &p_, int max_display_level_, const std::string &title_, bool drawing_display_data_=false) |
| Draw a logical volume in its own reference frame. More... | |
| void | draw_model (const model_factory &mf_, const std::string &model_name_, const placement &p_, int max_display_level_) |
| Draw a geometry model in its own reference frame. More... | |
| void | draw_physical_from_gid (const model_factory &mf_, const geom_id &gid_, const mapping &mapping_, int max_display_level_) |
| Draw a physical volume given its GID its the world reference frame. More... | |
| void | draw_logical (const model_factory &mf_, const std::string &logical_name_, const placement &p_, int max_display_level_) |
| Draw a logical volume with given name from a model factory. More... | |
| void | set_drawing_display_data (bool) |
| Set the flag to draw embedded display data. More... | |
| bool | is_drawing_display_data () const |
| Return the flag to draw embedded display data. More... | |
| void | add_display_data (const display_data &dd_) |
| Add a display data object in the scene to be drawn. More... | |
| void | add_display_data (const display_data &dd_, const placement &pl_) |
| Add a display data object in the scene to be drawn with a dedicated placement. More... | |
| void | reset_display_data () |
| Remove all display data formerly added to the scene. More... | |
| void | set_rendering_options_current (uint32_t flags_) |
| Set shape rendering options. More... | |
| void | reset_rendering_options_current () |
| Reset shape rendering options. More... | |
| void | set_rendering_options_depth (int32_t depth_) |
| Set shape rendering options depth. More... | |
| void | reset_rendering_options_depth () |
| Reset shape rendering options depth. More... | |
Static Public Member Functions | |
| static int | display_level_no_limit () |
| static const std::string & | view_key () |
| static const std::string & | view_2d_xy () |
| static const std::string & | view_2d_xz () |
| static const std::string & | view_2d_yz () |
| static const std::string & | view_3d () |
| static const std::string & | view_3d_free_scale () |
| static const std::string & | default_view () |
| static bool | check_view (const std::string &view_label_) |
| static const std::string & | mode_wired () |
| static const std::string & | mode_solid () |
| static const std::string & | default_mode () |
| static const std::string & | force_show_property_name () |
| static const std::string & | force_show_envelope_property_name () |
| static const std::string & | force_show_children_property_name () |
| static const std::string & | force_hide_envelope_property_name () |
| static const std::string & | force_hide_children_property_name () |
| static const std::string & | world_name_key () |
| static void | wait_for_key () |
| Wait for key stroke in interactive Gnuplot session. More... | |
Static Public Attributes | |
| static const int | DISPLAY_LEVEL_NO_LIMIT = 1000 |
Protected Member Functions | |
| void | _draw_display_data (const model_factory &mf_, const placement &p_) |
| void | _draw_display_data (const placement &p_) |
| std::ostringstream & | _get_stream (const std::string §ion_) |
An Gnuplot driver object responsible of the display of a virtual geometry.
| typedef std::map<std::string, cstream> geomtools::gnuplot_drawer::cstreams_col_type |
Dictionary of colored stream handle.
| typedef std::vector<dd_entry> geomtools::gnuplot_drawer::dd_col_type |
Collection of display data handle.
| geomtools::gnuplot_drawer::gnuplot_drawer | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
|
protected |
|
protected |
| void geomtools::gnuplot_drawer::add_display_data | ( | const display_data & | dd_ | ) |
Add a display data object in the scene to be drawn.
| void geomtools::gnuplot_drawer::add_display_data | ( | const display_data & | dd_, |
| const placement & | pl_ | ||
| ) |
Add a display data object in the scene to be drawn with a dedicated placement.
|
static |
|
static |
|
static |
|
static |
| int geomtools::gnuplot_drawer::draw | ( | const manager & | mgr_, |
| const std::string & | what_ = "", |
||
| int | max_display_level_ = 0 |
||
| ) |
Main display method.
| void geomtools::gnuplot_drawer::draw_logical | ( | const logical_volume & | log_, |
| const placement & | p_, | ||
| int | max_display_level_, | ||
| const std::string & | title_, | ||
| bool | drawing_display_data_ = false |
||
| ) |
Draw a logical volume in its own reference frame.
| void geomtools::gnuplot_drawer::draw_logical | ( | const model_factory & | mf_, |
| const std::string & | logical_name_, | ||
| const placement & | p_, | ||
| int | max_display_level_ | ||
| ) |
Draw a logical volume with given name from a model factory.
| void geomtools::gnuplot_drawer::draw_model | ( | const model_factory & | mf_, |
| const std::string & | model_name_, | ||
| const placement & | p_, | ||
| int | max_display_level_ | ||
| ) |
Draw a geometry model in its own reference frame.
| void geomtools::gnuplot_drawer::draw_physical_from_gid | ( | const model_factory & | mf_, |
| const geom_id & | gid_, | ||
| const mapping & | mapping_, | ||
| int | max_display_level_ | ||
| ) |
Draw a physical volume given its GID its the world reference frame.
|
static |
|
static |
|
static |
|
static |
|
static |
| const std::string& geomtools::gnuplot_drawer::get_mode | ( | ) | const |
Return the display mode.
| const datatools::properties& geomtools::gnuplot_drawer::get_properties | ( | ) | const |
Return a non mutable reference to the embedded auxiliary properties.
| const std::string& geomtools::gnuplot_drawer::get_view | ( | ) | const |
Return the display view.
| datatools::properties& geomtools::gnuplot_drawer::grab_properties | ( | ) |
Return a mutable reference to the embedded auxiliary properties.
| bool geomtools::gnuplot_drawer::is_drawing_display_data | ( | ) | const |
Return the flag to draw embedded display data.
| bool geomtools::gnuplot_drawer::is_initialized | ( | ) | const |
Check intialization flag.
| bool geomtools::gnuplot_drawer::is_solid | ( | ) | const |
Check 'solid display' flag.
| bool geomtools::gnuplot_drawer::is_view_2d | ( | ) | const |
Check '2D display' flag.
| bool geomtools::gnuplot_drawer::is_view_3d | ( | ) | const |
Check '3D display' flag.
| bool geomtools::gnuplot_drawer::is_wired | ( | ) | const |
Check 'wired display' flag.
|
static |
|
static |
| void geomtools::gnuplot_drawer::print | ( | std::ostream & | out_ | ) | const |
Basic print.
| void geomtools::gnuplot_drawer::reset | ( | ) |
Reset.
| void geomtools::gnuplot_drawer::reset_cstreams | ( | ) |
Reset colored streams.
| void geomtools::gnuplot_drawer::reset_display_data | ( | ) |
Remove all display data formerly added to the scene.
| void geomtools::gnuplot_drawer::reset_output | ( | ) |
| void geomtools::gnuplot_drawer::reset_rendering_options_current | ( | ) |
Reset shape rendering options.
| void geomtools::gnuplot_drawer::reset_rendering_options_depth | ( | ) |
Reset shape rendering options depth.
| void geomtools::gnuplot_drawer::reset_terminal | ( | ) |
Reset Gnuplot terminal and options.
| void geomtools::gnuplot_drawer::set_drawing_display_data | ( | bool | ) |
Set the flag to draw embedded display data.
| void geomtools::gnuplot_drawer::set_labels | ( | bool | labels_ | ) |
Set the 'labels' flag.
| void geomtools::gnuplot_drawer::set_mode | ( | const std::string & | mode_ | ) |
Set the display mode.
| void geomtools::gnuplot_drawer::set_output | ( | const std::string & | output_ | ) |
| int geomtools::gnuplot_drawer::set_output_medium | ( | const std::string & | file_ = "", |
| const std::string & | terminal_ = "", |
||
| const std::string & | terminal_options_ = "" |
||
| ) |
| void geomtools::gnuplot_drawer::set_rendering_options_current | ( | uint32_t | flags_ | ) |
Set shape rendering options.
| void geomtools::gnuplot_drawer::set_rendering_options_depth | ( | int32_t | depth_ | ) |
Set shape rendering options depth.
| void geomtools::gnuplot_drawer::set_terminal | ( | const std::string & | terminal_ = "", |
| const std::string & | terminal_options_ = "" |
||
| ) |
Set Gnuplot terminal and options.
| void geomtools::gnuplot_drawer::set_using_title | ( | bool | ) |
Set the 'title' flag.
| void geomtools::gnuplot_drawer::set_view | ( | const std::string & | view_ | ) |
Set the display view.
| bool geomtools::gnuplot_drawer::use_labels | ( | ) | const |
Check 'labels' flag.
| bool geomtools::gnuplot_drawer::use_title | ( | ) | const |
Check 'title' flag.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Wait for key stroke in interactive Gnuplot session.
|
static |
|
static |
1.8.15