nec2++  1.7.0
c_plot_card.h
1 /*
2  Copyright (C) 2004 Timothy C.A. Molteno
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18 #ifndef __c_plot_card__
19 #define __c_plot_card__
20 
21 
22 #include "math_util.h"
23 #include <string>
24 #include <stdio.h>
25 
45 {
46 public:
47  c_plot_card();
48  c_plot_card(const c_plot_card& p);
49  c_plot_card(int itmp1, int itmp2, int itmp3, int itmp4, std::string& filename);
50 
51  virtual ~c_plot_card();
52 
53  bool is_valid() const;
54 
55  bool storing() const;
56  bool currents() const;
57  bool near_field() const ;
58  bool patterns() const;
59 
60  bool realimag() const;
61  bool magphase() const;
62 
63  void set_plot_real_imag_currents();
64 
65  void plot_endl() const;
66 
67  void plot_double(nec_float x) const;
68 
69  void plot_complex(nec_complex x) const;
70 
71  void plot_complex_2d(nec_complex x, nec_complex y, nec_complex z) const;
72 
73  void plot_currents(nec_complex ex, nec_complex ey, nec_complex ez) const;
74 
75  void plot_segments(int i,
77  nec_float xw2, nec_float yw2,
78  real_array& bi, int_array& icon1, int_array& icon2) const;
79 
80  void plot_fields(
81  nec_complex ex, nec_complex ey, nec_complex ez,
82  nec_float xob, nec_float yob, nec_float zob);
83 
84  void plot_patterns(nec_float theta, nec_float phi,
85  nec_complex e_theta, nec_complex e_phi,
86  nec_float g_vert, nec_float g_horiz, nec_float g_tot);
87 private:
88  int p1, p2, p3, p4;
89  FILE* plot_fp;
90 };
91 
92 #endif /* __c_plot_card__ */
Definition: c_plot_card.h:44