A window is a collection of panes. More...
#include <RFC_Window_base.h>
Public Types | |
typedef RFC_Window_base | Self |
typedef COM::Window | Base |
typedef COM::Attribute | Attribute |
typedef RFC_Pane_base | Pane |
typedef std::map< int, Pane * > | Pane_set |
Public Member Functions | |
RFC_Window_base (Base *b, int c, MPI_Comm) | |
Construct an object with base b and color c . More... | |
virtual | ~RFC_Window_base () |
Default destructor. More... | |
std::string | name () const |
The name of the window. More... | |
const RFC_Pane_base & | pane (const int pid) const |
RFC_Pane_base & | pane (const int pid) |
const COM::Window * | base () const |
Get a reference to the base COM::Window object. More... | |
int | color () const |
The color of the window for overlay or for data transfer (BLUE or GREEN). More... | |
int | size_of_nodes () const |
Get the total number of nodes contained the window. More... | |
int | size_of_faces () const |
Get the total number of faces contained the window. More... | |
int | size_of_primary_nodes () const |
Get the total number of nodes contained the window. More... | |
Bbox_3 | get_bounding_box () const |
Get the bounding box of the window. More... | |
int | size_of_panes () const |
Number of local panes in the window. More... | |
const Attribute * | attribute (const char *f) const |
Retrieve an attribute object from the base using the attribute name. More... | |
void | export_window (RFC_Window_base *) const |
void | write_tec_ascii (const char *prefix) const |
Ouptut a mesh in Tecplot format. More... | |
void | write_tec_sub (const char *prefix) const |
Ouptut a subdivision of a mesh in Tecplot format. More... | |
void | new_sdv_attributes (const std::string &wname) const |
New attributes. More... | |
void | read_sdv (const char *prefix, const char *format=NULL) |
Read in local panes in native binary format or using Rocin. More... | |
void | write_sdv (const char *prefix, const char *format=NULL) const |
Write out panes in native binary format or using Rocout. More... | |
void | build_pc_tables () |
Build the pane connectivity table. More... | |
Protected Types | |
enum | { SDV_BINARY, SDV_HDF, SDV_CGNS } |
Static Protected Member Functions | |
static std::string | get_sdv_fname (const char *prefix, int pane_id, const int format=SDV_BINARY) |
static const char * | get_prefix_base (const char *prefix) |
static int | get_sdv_format (const char *format) |
Protected Attributes | |
Base * | _base |
A reference to its base COM::Window object. More... | |
Pane_set | _pane_set |
The set of panes contained in the window. More... | |
int | _verbose |
int | _color |
MAP::Pane_communicator | _map_comm |
Static Protected Attributes | |
static const char * | _bufwin_prefix = "buf_" |
Private Member Functions | |
RFC_Window_base () | |
RFC_Window_base (const Self &) | |
Self & | operator= (const Self &) |
A window is a collection of panes.
Definition at line 527 of file RFC_Window_base.h.
typedef COM::Attribute Attribute |
Definition at line 531 of file RFC_Window_base.h.
typedef COM::Window Base |
Definition at line 530 of file RFC_Window_base.h.
typedef RFC_Pane_base Pane |
Definition at line 532 of file RFC_Window_base.h.
Definition at line 533 of file RFC_Window_base.h.
typedef RFC_Window_base Self |
Definition at line 529 of file RFC_Window_base.h.
|
protected |
Enumerator | |
---|---|
SDV_BINARY | |
SDV_HDF | |
SDV_CGNS |
Definition at line 603 of file RFC_Window_base.h.
RFC_Window_base | ( | Base * | b, |
int | c, | ||
MPI_Comm | comm | ||
) |
Construct an object with base b
and color c
.
Definition at line 247 of file RFC_Window_base.C.
|
virtual |
Default destructor.
Definition at line 249 of file RFC_Window_base.C.
References _pane_set.
|
private |
|
private |
|
inline |
Retrieve an attribute object from the base using the attribute name.
Definition at line 580 of file RFC_Window_base.h.
References _base.
Referenced by RFC_Data_const< _Tag >::RFC_Data_const(), and RFC_Window_transfer::set_tags().
|
inline |
Get a reference to the base COM::Window object.
Definition at line 557 of file RFC_Window_base.h.
References _base.
Referenced by Overlay::get_rfc_window(), Overlay::write_overlay_off(), and Overlay::write_overlay_tec().
void build_pc_tables | ( | ) |
Build the pane connectivity table.
Definition at line 290 of file RFC_Window_base.C.
References _base, _map_comm, _pane_set, RFC_Pane_base::build_v2b_from_b2v(), COM_MESH, COM_PCONN, pane(), and s.
Referenced by RFC_Window_overlay::RFC_Window_overlay().
|
inline |
The color of the window for overlay or for data transfer (BLUE or GREEN).
Definition at line 560 of file RFC_Window_base.h.
References _color.
Referenced by RFC_Window_transfer::init_recv_buffer().
void export_window | ( | RFC_Window_base * | w | ) | const |
Definition at line 366 of file RFC_Window_base.C.
References RFC_Pane_base::_b2v_table, _pane_set, RFC_Pane_base::_subface_counterparts, RFC_Pane_base::_subface_offsets, RFC_Pane_base::_subface_parents, RFC_Pane_base::_subfaces, RFC_Pane_base::_subnode_counterparts, RFC_Pane_base::_subnode_nat_coors, RFC_Pane_base::_subnode_parents, RFC_Pane_base::_v2b_table, RFC_Pane_base::comp_nat_coors(), RFC_Pane_base::id(), and pane().
Referenced by Overlay::export_windows().
Bbox_3 get_bounding_box | ( | ) | const |
Get the bounding box of the window.
Definition at line 281 of file RFC_Window_base.C.
References _pane_set, and iend.
Referenced by Overlay::overlay().
|
staticprotected |
Definition at line 456 of file RFC_Window_base_IO.C.
Referenced by RFC_Window_transfer::init_recv_buffer(), read_sdv(), and write_sdv().
|
staticprotected |
Definition at line 479 of file RFC_Window_base_IO.C.
References COM_assertion_msg, SDV_BINARY, SDV_CGNS, and SDV_HDF.
Referenced by RFC_Window_transfer::init_recv_buffer(), read_sdv(), and write_sdv().
|
staticprotected |
Definition at line 465 of file RFC_Window_base_IO.C.
References RFC_assertion_msg, SDV_BINARY, SDV_CGNS, and SDV_HDF.
Referenced by read_sdv(), and write_sdv().
|
inline |
The name of the window.
Definition at line 542 of file RFC_Window_base.h.
References _base.
Referenced by RFC_Pane_overlay::determine_counterparts(), Overlay::match_features_0(), Transfer_base::minmax(), Overlay::overlay(), and write_sdv().
RFC_BEGIN_NAME_SPACE void new_sdv_attributes | ( | const std::string & | wname | ) | const |
New attributes.
Definition at line 38 of file RFC_Window_base_IO.C.
References COM_FLOAT, COM_INT, and COM_new_attribute().
Referenced by write_sdv().
|
inline |
Definition at line 544 of file RFC_Window_base.h.
References _pane_set, and RFC_assertion.
Referenced by build_pc_tables(), RFC_Pane_base::build_v2b_from_b2v(), export_window(), read_sdv(), write_sdv(), write_tec_ascii(), and write_tec_sub().
|
inline |
Definition at line 550 of file RFC_Window_base.h.
References _pane_set, and RFC_assertion.
void read_sdv | ( | const char * | prefix, |
const char * | format = NULL |
||
) |
Read in local panes in native binary format or using Rocin.
Read in panes in native or HDF format. In native format, each pane has a separate file with file name {prefix}paneID.sdv
. In HDF format, each pane also has a separate file with file name {prefix}_paneID_sdv.hdf
.
Definition at line 304 of file RFC_Window_base_IO.C.
References _bufwin_prefix, _pane_set, COM_call_function(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), get_prefix_base(), get_sdv_fname(), get_sdv_format(), iend, MPI_COMM_SELF, pane(), RFC_Pane_base::read_binary(), RFC_assertion, Rocin_load_module(), Rocin_unload_module(), and SDV_BINARY.
int size_of_faces | ( | ) | const |
Get the total number of faces contained the window.
Definition at line 269 of file RFC_Window_base.C.
Referenced by Overlay::overlay().
int size_of_nodes | ( | ) | const |
Get the total number of nodes contained the window.
The coincident nodes are counted more than once.
Definition at line 257 of file RFC_Window_base.C.
Referenced by RFC_Window_transfer::init_nodal_buffers(), and Overlay::overlay().
|
inline |
Number of local panes in the window.
Definition at line 577 of file RFC_Window_base.h.
References _pane_set.
int size_of_primary_nodes | ( | ) | const |
Get the total number of nodes contained the window.
The coincident nodes are counted once.
void write_sdv | ( | const char * | prefix, |
const char * | format = NULL |
||
) | const |
Write out panes in native binary format or using Rocout.
Write panes in native format or using Rocout's format. In native format, each pane has a separate file with file name {prefix}paneID.sdv
. In Rocout format, each pane also has a separate file with file name {prefix}_paneID_sdv
.<suf>.
Definition at line 375 of file RFC_Window_base_IO.C.
References _bufwin_prefix, _pane_set, COM_call_function(), COM_delete_pane(), COM_delete_window(), COM_get_attribute_handle(), COM_get_function_handle(), COM_new_window(), COM_window_init_done(), get_prefix_base(), get_sdv_fname(), get_sdv_format(), iend, name(), new_sdv_attributes(), pane(), RFC_assertion, Rocout_load_module(), Rocout_unload_module(), SDV_BINARY, and RFC_Pane_base::write_binary().
void write_tec_ascii | ( | const char * | prefix | ) | const |
Ouptut a mesh in Tecplot format.
fname | Name of the output file. |
a | Attribute to be writtin out. Default is mesh only. |
Definition at line 253 of file RFC_Window_base_IO_tecplot.C.
References _pane_set, iend, RFC_Pane_base::is_master(), pane(), RFC_assertion, and RFC_Pane_base::write_tec_ascii().
void write_tec_sub | ( | const char * | prefix | ) | const |
Ouptut a subdivision of a mesh in Tecplot format.
fname | Name of the output file. |
a | Attribute to be writtin out. Default is mesh only. |
Definition at line 235 of file RFC_Window_base_IO_tecplot.C.
References _pane_set, iend, RFC_Pane_base::is_master(), pane(), RFC_assertion, and RFC_Pane_base::write_tec_sub().
|
protected |
A reference to its base COM::Window object.
Definition at line 619 of file RFC_Window_base.h.
Referenced by attribute(), base(), build_pc_tables(), name(), and RFC_Window_transfer::RFC_Window_transfer().
|
staticprotected |
Definition at line 616 of file RFC_Window_base.h.
Referenced by RFC_Window_transfer::init_recv_buffer(), read_sdv(), and write_sdv().
|
protected |
Definition at line 622 of file RFC_Window_base.h.
Referenced by color().
|
protected |
Definition at line 624 of file RFC_Window_base.h.
Referenced by build_pc_tables(), RFC_Window_transfer::reduce_maxabs_to_all(), RFC_Window_overlay::reduce_normals_to_all(), and RFC_Window_transfer::reduce_to_all().
|
protected |
The set of panes contained in the window.
Definition at line 620 of file RFC_Window_base.h.
Referenced by build_pc_tables(), RFC_Window_overlay::create_overlay_data(), RFC_Window_transfer::delete_facial_buffers(), RFC_Window_transfer::delete_nodal_buffers(), RFC_Window_overlay::delete_overlay_data(), RFC_Window_overlay::determine_counterparts(), RFC_Window_overlay::evaluate_normals(), export_window(), RFC_Window_overlay::get_an_unmarked_halfedge(), get_bounding_box(), RFC_Window_transfer::incident_faces(), RFC_Window_transfer::incident_panes(), RFC_Window_transfer::init_facial_buffers(), RFC_Window_transfer::init_nodal_buffers(), RFC_Window_transfer::init_recv_buffer(), RFC_Window_transfer::pane(), pane(), read_sdv(), RFC_Window_overlay::reduce_coordinates_to_all(), RFC_Window_transfer::reduce_maxabs_to_all(), RFC_Window_overlay::reduce_normals_to_all(), RFC_Window_transfer::reduce_to_all(), RFC_Window_transfer::replicate_metadata(), RFC_Window_transfer::set_tags(), size_of_faces(), size_of_nodes(), size_of_panes(), RFC_Window_overlay::unmark_alledges(), write_sdv(), write_tec_ascii(), write_tec_sub(), and ~RFC_Window_base().
|
protected |
Definition at line 621 of file RFC_Window_base.h.