It write a VTK format file in case of grids defined on a space
| boost::mpl::pair<G,S> | where G is the type of grid S is the type of space, float, double ... | 
Definition at line 142 of file VTKWriter_grids.hpp.
#include <VTKWriter_grids.hpp>
Public Member Functions | |
| VTKWriter () | |
| void | add (const typename pair::first &g, const Point< pair::first::dims, typename pair::second > &offset, const Point< pair::first::dims, typename pair::second > &spacing, const Box< pair::first::dims, typename pair::second > &dom) | 
| Add grid dataset.  More... | |
| template<int prp = -1> | |
| bool | write (std::string file, const openfpm::vector< std::string > &prop_names, std::string f_name="grids", file_type ft=file_type::ASCII) | 
| It write a VTK file from a graph.  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 () | 
| It get the vertex properties list.  More... | |
| std::string | get_point_list (file_type ft) | 
| Create the VTK point definition.  More... | |
| std::string | get_vertex_list (file_type ft) | 
| Create the VTK vertex definition.  More... | |
| std::string | get_point_data_header () | 
| Get the point data header.  More... | |
Private Attributes | |
| 
openfpm::vector< ele_g < typename pair::first, typename pair::second > >  | vg | 
| Vector of grids.  | |
VTKWriter constructor
Definition at line 295 of file VTKWriter_grids.hpp.
      
  | 
  inline | 
Add grid dataset.
| g | Grid to add | 
| offset | grid offset | 
| spacing | spacing of the grid | 
| dom | part of the space that is the domain | 
Definition at line 306 of file VTKWriter_grids.hpp.
      
  | 
  inlineprivate | 
Get the point data header.
Definition at line 279 of file VTKWriter_grids.hpp.
      
  | 
  inlineprivate | 
Create the VTK point definition.
| ft | file type | 
vertex node output string
For each defined grid
Get the iterator
Where the grid is defined
Definition at line 211 of file VTKWriter_grids.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 192 of file VTKWriter_grids.hpp.
      
  | 
  inlineprivate | 
Get the total number of points.
Calculate the full number of vertices
Definition at line 152 of file VTKWriter_grids.hpp.
      
  | 
  inlineprivate | 
Create the VTK vertex definition.
| ft | file type | 
vertex node output string
For each grid point create a vertex
Definition at line 249 of file VTKWriter_grids.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 172 of file VTKWriter_grids.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 | 
| prop_names | properties name (can also be a vector of size 0) | 
| ft | specify if it is a VTK BINARY or ASCII file [default = ASCII] | 
Definition at line 328 of file VTKWriter_grids.hpp.