Auxiliar class which helps to save nDGridMaps into text files. More...
#include <gridwriter.hpp>
| Static Public Member Functions | |
| template<class T , size_t ndims> | |
| static void | saveGridValues (const char *filename, nDGridMap< T, ndims > &grid) | 
| Saves grid values in ASCII format into the specified file.  More... | |
| template<class T , size_t ndims> | |
| static void | saveVelocities (const char *filename, nDGridMap< T, ndims > &grid) | 
| Saves grid velocities in ASCII format into the specified file.  More... | |
| template<class T , size_t ndims> | |
| static void | savePath (const char *filename, nDGridMap< T, ndims > &grid, std::vector< std::array< double, ndims > > &path) | 
| Saves the 2D path in an ASCII file with the following format:  More... | |
| template<class T , size_t ndims> | |
| static void | savePathVelocity (const char *filename, nDGridMap< T, ndims > &grid, std::vector< std::array< double, ndims > > &path, std::vector< double > path_velocity) | 
| Saves the 2D path with velocity values in an ASCII file with the following format:  More... | |
Additional Matlab scripts are provided to parse these grids. Copyright (C) 2014 Javier V. Gomez and Jose Pardeiro www.javiervgomez.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition at line 29 of file gridwriter.hpp.
| 
 | inlinestatic | 
Saved grid format: CellClass - info of the cell type
 (string) leafsize_
 (float) ndims
 (size_t) dimsize_[0]
 (int) dimsize_[1]
 (int) ... dimsize_[ndims_-1]
 (int) getCell(0).getValue()
 (double) ... getCell(ncells_-1).getValue()
 Use the parsegrid.m Matlab script to parse the data. 
Definition at line 48 of file gridwriter.hpp.
| 
 | inlinestatic | 
leafsize_
 (float) ndims
 (size_t) dimsize_[0]
 (int) dimsize_[1]
 (int) x1...
 (double) x2...
 (double) ...
Use the parsegrid.m and parsepath.m Matlab scripts to parse the data.
Definition at line 112 of file gridwriter.hpp.
| 
 | inlinestatic | 
leafsize_
 (float) ndims
 (size_t) dimsize_[0]
 (int) dimsize_[1]
 (int) x1...
 (double) x2...
 (double) ...
Use the parsegrid.m and parsepathvelocity.m Matlab scripts to parse the data.
Definition at line 144 of file gridwriter.hpp.
| 
 | inlinestatic | 
Saved grid format: CellClass - info of the cell type
 (string) leafsize_
 (float) ndims
 (size_t) dimsize_[0]
 (int) dimsize_[1]
 (int) ... dimsize_[ndims_-1]
 (int) getCell(0).getValue()
 (double) ... getCell(ncells_-1).getValue()
 Use the parsegrid.m Matlab script to parse the data. 
Definition at line 82 of file gridwriter.hpp.