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 183 of file VTKWriter_point_set.hpp.
#include <VTKWriter_point_set.hpp>
Public Member Functions | |
| VTKWriter () | |
| void | add (const typename pair::first &vps, const typename pair::second &vpp, size_t mark) | 
| Add a vector dataset.  More... | |
| template<int prp = -1> | |
| bool | write (std::string file, const openfpm::vector< std::string > &prop_names, std::string f_name="points", file_type ft=file_type::ASCII) | 
| It write a VTK file from a vector of points.  More... | |
Private Member Functions | |
| size_t | get_total () | 
| Get the total number of points.  More... | |
| std::string | get_vertex_properties_list () | 
| It get the vertex properties list.  More... | |
| std::string | get_point_properties_list (file_type ft) | 
| It get the vertex properties list.  More... | |
| std::string | get_point_list (file_type ft) | 
| Create the VTK point list.  More... | |
| std::string | get_vertex_list (file_type ft) | 
| Create the VTK vertex list.  More... | |
| std::string | get_point_data_header () | 
| Get the point data header.  More... | |
Private Attributes | |
| 
openfpm::vector< ele_vps < typename pair::first > >  | vps | 
| Vector of position.  | |
| 
openfpm::vector< ele_vpp < typename pair::second > >  | vpp | 
| Vector of properties.  | |
VTKWriter constructor
Definition at line 347 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 358 of file VTKWriter_point_set.hpp.
      
  | 
  inlineprivate | 
Get the point data header.
Definition at line 331 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 257 of file VTKWriter_point_set.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 234 of file VTKWriter_point_set.hpp.
      
  | 
  inlineprivate | 
Get the total number of points.
Calculate the full number of vertices
Definition at line 195 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
Definition at line 297 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 214 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 381 of file VTKWriter_point_set.hpp.