It write a VTK format file for a list of grids defined on a space
boost::mpl::pair<G,S> |
where G is the type of the vector containing the properties, S is the type of vector containing the particle positions
Definition at line 264 of file VTKWriter_point_set.hpp.
#include <VTKWriter_point_set.hpp>
Data Structures | |
struct | doubleint |
Public Member Functions | |
VTKWriter () | |
void | add (const typename pair::first &vps, const typename pair::second &vpp, size_t mark) |
Add a vector dataset. | |
bool | write_pvtp (std::string file, const openfpm::vector< std::string > &prop_names, size_t n, long int timestamp=-1, double time=-1) |
It write a Merged VTP type file from a vector of points. | |
template<int prp = -1> | |
bool | write (std::string file, const openfpm::vector< std::string > &prop_names, std::string f_name="points", std::string meta_data="", file_type ft=file_type::ASCII) |
It write a VTK file from a vector of points. | |
Private Member Functions | |
size_t | get_total () |
Get the total number of points. | |
std::string | get_vertex_properties_list (file_type &opt) |
It get the vertex properties list. | |
std::string | get_point_properties_list (file_type ft) |
It get the point position header string. | |
std::string | get_point_list (file_type &opt) |
Create the VTK point list. | |
std::string | get_vertex_list (file_type ft) |
Create the VTK vertex list. | |
std::string | get_point_data_header () |
Get the point data header. | |
std::string | add_meta_data (std::string &meta_data, file_type &opt) |
return the meta data string | |
Private Attributes | |
openfpm::vector< ele_vps< typename pair::first > > | vps |
Vector of position. | |
openfpm::vector< ele_vpp< typename pair::second > > | vpp |
Vector of properties. | |
|
inline |
VTKWriter constructor
Definition at line 593 of file VTKWriter_point_set.hpp.
|
inline |
Add a vector dataset.
vps | vector of positions |
vpp | vector of properties |
mark | additional information that divide the dataset into 2 (in general is used to mark real from ghost information) |
opt_names | optional parameter that indicate the names of the properties |
Definition at line 604 of file VTKWriter_point_set.hpp.
|
inlineprivate |
return the meta data string
meta_data | string with the meta-data to add |
Definition at line 537 of file VTKWriter_point_set.hpp.
|
inlineprivate |
Get the point data header.
Definition at line 520 of file VTKWriter_point_set.hpp.
|
inlineprivate |
Create the VTK point list.
ft | file_type |
vertex node output string
For each defined grid
write the particle position
In case of binary we have to add a new line at the end of the list
Definition at line 344 of file VTKWriter_point_set.hpp.
|
inlineprivate |
It get the point position header string.
It get the vertex position header of the vertex defined as a VTK header
vertex property output string
Definition at line 324 of file VTKWriter_point_set.hpp.
|
inlineprivate |
Get the total number of points.
Calculate the full number of vertices
Definition at line 276 of file VTKWriter_point_set.hpp.
|
inlineprivate |
Create the VTK vertex list.
ft | file_type |
For each grid point create a vertex
In case of binary we have to add a new line at the end of the list
For each grid point create a vertex
Definition at line 435 of file VTKWriter_point_set.hpp.
|
inlineprivate |
It get the vertex properties list.
It get the vertex properties list of the vertex defined as VTK header
vertex property output string
Definition at line 295 of file VTKWriter_point_set.hpp.
|
inline |
It write a VTK file from a vector of points.
prp_out | which properties to output [default = -1 (all)] |
file | path where to write |
f_name | name of the dataset |
prop_names | properties names |
ft | specify if it is a VTK BINARY or ASCII file [default = ASCII] |
Definition at line 682 of file VTKWriter_point_set.hpp.
|
inline |
It write a Merged VTP type file from a vector of points.
prp_out | which properties to output [default = -1 (all)] |
Definition at line 622 of file VTKWriter_point_set.hpp.
|
private |
Vector of properties.
Definition at line 269 of file VTKWriter_point_set.hpp.
|
private |
Vector of position.
Definition at line 267 of file VTKWriter_point_set.hpp.