From a basic structure it write a VTK format file in case of a vector of Boxes
vector | type |
Definition at line 46 of file VTKWriter_vector_box.hpp.
#include <VTKWriter_vector_box.hpp>
Public Member Functions | |
VTKWriter () | |
void | add (const vector &vc) |
Add box vector dataset. | |
template<int prp = -1> | |
bool | write (std::string file, std::string graph_name="Graph", file_type ft=file_type::ASCII) |
It write a VTK file from a graph. | |
Private Member Functions | |
std::string | get_point_properties_list () |
It get the vertex properties list. | |
std::string | get_cell_properties_list () |
It get the edge properties list. | |
std::string | get_point_list () |
Create the VTK point definition. | |
std::string | get_cell_list () |
Create the VTK vertex definition. | |
std::string | get_point_data_header () |
Get the point data header. | |
std::string | get_cell_types_header () |
std::string | get_cell_types_list () |
std::string | get_cell_data_header () |
std::string | get_cell_data_list () |
Private Attributes | |
openfpm::vector< v_box< vector > > | v |
data to write | |
|
inline |
VTKWriter constructor
Definition at line 352 of file VTKWriter_vector_box.hpp.
|
inline |
Add box vector dataset.
v | vector to add |
Definition at line 360 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
vertex property output string
number of cells and box
Definition at line 292 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
vertex node output string
for each vector in the dataset
Definition at line 314 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
Create the VTK vertex definition.
vertex node output string
for each vector in the dataset
Definition at line 179 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
It get the edge properties list.
It get the edge properties list of the edge defined as a GraphML header
vertex property output string
number of cells and box
Definition at line 88 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
vertex property output string
number of cells and box
Definition at line 239 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
vertex node output string
for each vector in the dataset
Definition at line 260 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
Get the point data header.
Definition at line 220 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
Create the VTK point definition.
s_type | spatial type of the data |
attr | false x,y,z are set to 0 for each vertex |
vertex node output string
for each vertex dataset
Definition at line 119 of file VTKWriter_vector_box.hpp.
|
inlineprivate |
It get the vertex properties list.
It get the vertex properties list of the vertex defined as a VTK header
vertex property output string
Definition at line 59 of file VTKWriter_vector_box.hpp.
|
inline |
It write a VTK file from a graph.
prp_out | which properties to output [default = -1 (all)] |
file | path where to write |
name | of the graph |
ft | specify if it is a VTK BINARY or ASCII file [default = ASCII] |
Definition at line 377 of file VTKWriter_vector_box.hpp.
|
private |
data to write
Definition at line 49 of file VTKWriter_vector_box.hpp.