Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
exportergnuplot.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2007-07-25
7 
8  Copyright (C) 2007 Université Joseph Fourier (Grenoble I)
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 3.0 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __ExporterGnuplot_H
30 #define __ExporterGnuplot_H 1
31 
32 #include <iostream>
33 #include <fstream>
34 
35 
36 #include <boost/lambda/lambda.hpp>
37 
38 #include <feel/feelcore/debug.hpp>
39 
40 #include <feel/feelfilters/exporter.hpp>
41 
42 namespace Feel
43 {
54 template<typename MeshType>
56  :
57 public Exporter<MeshType>
58 {
59 public:
60 
65  {
66  GRID_ON = 1,
67  PNG_OUTPUT = 2
68  };
69 
73 
74  typedef MeshType mesh_type;
75 
76  typedef Exporter<MeshType> super;
77  typedef typename mesh_type::value_type value_type;
78  typedef typename super::timeset_type timeset_type;
79  typedef typename super::timeset_ptrtype timeset_ptrtype;
80  typedef typename super::timeset_iterator timeset_iterator;
81  typedef typename super::timeset_const_iterator timeset_const_iterator;
82 
83  typedef typename matrix_node<value_type>::type matrix_node_type;
85 
89 
96  ExporterGnuplot( std::string const& __p = "default", int freq = 1, int properties = 0 );
97 
98  ExporterGnuplot( po::variables_map const& vm, std::string const& exp_prefix = "", int properties = 0 );
99 
100  ExporterGnuplot( ExporterGnuplot const & __ex );
101 
102  ~ExporterGnuplot();
103 
105 
109 
110 
112 
116 
117 
119 
123 
127  void setTitle( std::string const& title )
128  {
129  M_title = title;
130  }
131 
135  void useGrid( bool grid )
136  {
137  M_grid = grid;
138  }
139 
140 
144  void setPngOutput( bool png_output )
145  {
146  M_png_output = png_output;
147  }
148 
149  Exporter<MeshType>* setOptions( po::variables_map const& vm, std::string const& exp_prefix = "" )
150  {
151  super::setOptions( vm, exp_prefix );
152 
153  return this;
154  }
155 
157 
161 
165  void save() const;
166 
170  void visit( mesh_type* mesh );
171 
173 
174 
175 
176 protected:
177 
178 
179 private:
180 
181  std::string M_title;
182  bool M_grid;
183  bool M_png_output;
184 };
185 
186 } // Feel
187 
188 #if !defined( FEELPP_INSTANTIATION_MODE )
190 #endif // FEELPP_INSTANTIATION_MODE
191 
192 #endif /* __ExporterGnuplot_H */
193 
194 
virtual Exporter< MeshType, 1 > * setOptions(std::string const &exp_prefix="")
void setPngOutput(bool png_output)
Definition: exportergnuplot.hpp:144
export Feel generated data to some file formatsUse the visitor and factory pattern.
Definition: exporter.hpp:82
void useGrid(bool grid)
Definition: exportergnuplot.hpp:135
Definition: glas.hpp:157
void setTitle(std::string const &title)
Definition: exportergnuplot.hpp:127
ExporterGnuplot(std::string const &__p="default", int freq=1, int properties=0)
Definition: exportergnuplot.cpp:38
Exporter to GNUPLOT format.
Definition: exportergnuplot.hpp:55
void save() const
Definition: exportergnuplot.cpp:73
Exporter< MeshType > * setOptions(po::variables_map const &vm, std::string const &exp_prefix="")
Definition: exportergnuplot.hpp:149
int freq() const
Definition: exporter.hpp:209
PlottingProperties
Definition: exportergnuplot.hpp:64
void visit(mesh_type *mesh)
Definition: exportergnuplot.cpp:68

Generated on Sun Dec 22 2013 13:10:59 for Feel++ by doxygen 1.8.5