| 1 |
/* |
| 2 |
* Advanced Simulation Library <http://asl.org.il> |
| 3 |
* |
| 4 |
* Copyright 2015 Avtech Scientific <http://avtechscientific.com> |
| 5 |
* |
| 6 |
* |
| 7 |
* This file is part of Advanced Simulation Library (ASL). |
| 8 |
* |
| 9 |
* ASL is free software: you can redistribute it and/or modify it |
| 10 |
* under the terms of the GNU Affero General Public License as |
| 11 |
* published by the Free Software Foundation, version 3 of the License. |
| 12 |
* |
| 13 |
* ASL is distributed in the hope that it will be useful, |
| 14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
* GNU Affero General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU Affero General Public License |
| 19 |
* along with ASL. If not, see <http://www.gnu.org/licenses/>. |
| 20 |
* |
| 21 |
*/ |
| 22 |
|
| 23 |
|
| 24 |
#ifndef ASLVTKFORMATWRITERS_H |
| 25 |
#define ASLVTKFORMATWRITERS_H |
| 26 |
|
| 27 |
#include "aslWriter.h" |
| 28 |
//#include <data/aslDataWrapper.h> |
| 29 |
|
| 30 |
#include <stdlib.h> |
| 31 |
|
| 32 |
#include <iostream> |
| 33 |
#include <fstream> |
| 34 |
#include <string> |
| 35 |
#include <memory> |
| 36 |
|
| 37 |
namespace asl |
| 38 |
{ |
| 39 |
/// Writes data accumulated in Writer into a file with VTK XML format "vti" |
| 40 |
/// \ingroup IO |
| 41 |
class WriterVTKXML : public Writer |
| 42 |
{ |
| 43 |
Block *newBl; |
| 44 |
public: |
| 45 |
WriterVTKXML(const std::string & file, Block *nbl=0); |
| 46 |
void write(); |
| 47 |
}; |
| 48 |
|
| 49 |
|
| 50 |
/// writes \p data in a file with VTK XML format "vti" |
| 51 |
/// \ingroup IO |
| 52 |
void writeVTKXML(const std::string & fileName, |
| 53 |
const AbstractData & data, |
| 54 |
const std::string & name); |
| 55 |
|
| 56 |
} // asl |
| 57 |
|
| 58 |
#endif // ASLVTKFORMATWRITERS_H |
| 59 |
|