muMECH  1.0
vtk.h
Go to the documentation of this file.
1 //********************************************************************************************************
2 // code: ### ### ##### #### ## ##
3 // ## ## ######## ## ## ## ## ##
4 // ## ## ## ## ## ### ## ######
5 // ## ## ## ## ## ## ## ## ##
6 // ##### ## ## ##### #### ## ##
7 // ##
8 //
9 // name: vtk.h
10 // author(s): Ladislav Svoboda
11 // language: C, C++
12 // license: This program is free software; you can redistribute it and/or modify
13 // it under the terms of the GNU Lesser General Public License as published by
14 // the Free Software Foundation; either version 2 of the License, or
15 // (at your option) any later version.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU Lesser General Public License for more details.
21 //
22 // You should have received a copy of the GNU Lesser General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 //********************************************************************************************************
31 #ifndef MUMECH_VTK_H
32 #define MUMECH_VTK_H
33 
34 #include "tixy2.h"
35 
36 using namespace gelibspace;
37 
38 namespace mumech {
39 
41 void print_VTK_START (Stream *stream, const char *filename);
42 
44 void print_VTK_head (FILE *stream, const char *type);
45 
47 XMLElement* print_VTK_nodes_head (Stream *stream, long noIncl);
48 
50 XMLElement* print_VTK_data_head (Stream *stream, const char *name, char type, char format, int slen);
51 
52 //* *** HEAD ***
53 void print_VTK_init_point_data (Stream *stream, long n);
54 void print_VTK_init_cell_data (Stream *stream, long n);
55 
57 void print_values (char *auxs, int n, const double *values, int precision = 8);
58 
60 void print_values_Scalar (char *auxs, const double *values, long len, int precision);
62 void print_values_Vector (char *auxs, const double *values, bool twodim, int precision = 8);
64 void print_values_Tensor (char *auxs, const double *values, bool twodim, int precision = 8);
65 
67 void print_auxs (bool lgc, Stream *stream, XMLElement *da, const char *auxs);
68 
70 void print_VTK_FINISH (Stream *stream);
71 
73 void scan_DATA_field_head (Stream *stream, Stream *strm, const char *str, char type, int nexc, char format, const char *name);
74 
76 bool cmp_vtk_file (const char *file1, const char *file2, int verbose);
77 
78 } // end of namespace mumech
79 
80 #endif // end of MUMECH_VTK_H
81 
82 /*end of file*/
void print_values_Scalar(char *auxs, const double *values, long len, int precision)
len = pocet scalar cisel
Definition: vtk.cpp:175
void print_values_Tensor(char *auxs, const double *values, bool twodim, int precision)
dim == dimenze vstupnich dat - 2d ano nebo ne; values musi byt v notaci STRN_THEORETICAL_FEEP ...
Definition: vtk.cpp:197
The element is a container class.
Definition: tinyxml2.h:1116
void scan_DATA_field_head(Stream *stream, Stream *strm, const char *str, char type, int nexc, char format, const char *name)
scan_DATA_field_head
Definition: vtk.cpp:241
void print_VTK_FINISH(Stream *stream)
Definition: vtk.cpp:224
void print_VTK_head(FILE *stream, const char *type)
Definition: vtk.cpp:63
void print_auxs(bool lgc, Stream *stream, XMLElement *da, const char *auxs)
Definition: vtk.cpp:214
TinyXML functions.
void print_VTK_init_cell_data(Stream *stream, long n)
Definition: vtk.cpp:113
void print_VTK_init_point_data(Stream *stream, long n)
Definition: vtk.cpp:105
void print_VTK_START(Stream *stream, const char *filename)
Print head of vtk file.
Definition: vtk.cpp:41
XMLElement * print_VTK_nodes_head(Stream *stream, long n)
Definition: vtk.cpp:82
bool cmp_vtk_file(const char *file1, const char *file2, int verbose)
Compare two VTK files. Return false if same. [ return hodnota byly kdysi opacna ].
Definition: vtk.cpp:268
void print_values_Vector(char *auxs, const double *values, bool twodim, int precision)
dim == dimenze vstupnich dat - 2d ano nebo ne
Definition: vtk.cpp:185
void print_values(char *auxs, int n, const double *values, int precision)
Definition: vtk.cpp:155
XMLElement * print_VTK_data_head(Stream *stream, const char *name, char type, char format, int slen)
Definition: vtk.cpp:125