ReceptionModelPlotter.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Polarimetry/Pulsar/ReceptionModelPlotter.h
10
11#ifndef __Calibration_ReceptionModelPlotter_H
12#define __Calibration_ReceptionModelPlotter_H
13
14#include "Reference.h"
15
16class EstimatePlotter;
17
18namespace Calibration {
19
20 class ReceptionModel;
21
24 {
25
26 public:
27
30
33
36
38 class Abscissa;
39
41 void set_abscissa (Abscissa* para);
42
44 void set_ipol (unsigned ipol);
45
47 void set_isource (unsigned isource);
48
50 void set_model_solved (bool solved = true);
51
53 void set_plot_residual (bool residual = true);
54
56 void set_output (const char* filename);
57
59 virtual void plot_model ();
60
62 virtual void plot_observations ();
63
65 virtual void plot_stokes (EstimatePlotter& plotter, unsigned iplot);
66
67 protected:
68
71
74
76 unsigned ipol;
77
79 unsigned isource;
80
82 unsigned ipath;
83
85 std::string output_filename;
86
89
92
93 };
94
95
96 class ReceptionModelPlotter::Abscissa : public Reference::Able
97 {
98 public:
99 virtual void push_back () = 0;
100 virtual void get_values (std::vector<double>& values) const = 0;
101 virtual std::string get_label () const = 0;
102 };
103
104}
105
106#endif
unsigned isource
The index of the source to be plotted.
Definition ReceptionModelPlotter.h:79
void set_abscissa(Abscissa *para)
Set the epoch angle model to yield the plot abscissa.
Definition ReceptionModelPlotter.C:38
virtual void plot_model()
Plot the model in the current configuration.
Definition ReceptionModelPlotter.C:235
virtual void plot_observations()
Plot the observations corresponding to the current configuration.
Definition ReceptionModelPlotter.C:72
ReceptionModelPlotter()
Default constructor.
Definition ReceptionModelPlotter.C:21
void set_plot_residual(bool residual=true)
Set the plot residual flag.
Definition ReceptionModelPlotter.C:62
~ReceptionModelPlotter()
Destructor.
Definition ReceptionModelPlotter.C:28
bool model_solved
Flag set true when the model has been solved.
Definition ReceptionModelPlotter.h:88
void set_model(ReceptionModel *model)
Set the model to yield the Stokes parameters.
Definition ReceptionModelPlotter.C:32
void set_ipol(unsigned ipol)
Set the index of the Stokes parameter to be plotted.
Definition ReceptionModelPlotter.C:44
Reference::To< ReceptionModel > model
The model from which plot data will be taken.
Definition ReceptionModelPlotter.h:70
void set_model_solved(bool solved=true)
Set the model solved flag.
Definition ReceptionModelPlotter.C:56
Reference::To< Abscissa > abscissa
The independent variable in each plot.
Definition ReceptionModelPlotter.h:73
bool plot_residual
Flag set true when the data-model residual should be plotted.
Definition ReceptionModelPlotter.h:91
void set_output(const char *filename)
Set the name of the file to which text format will be written.
Definition ReceptionModelPlotter.C:67
virtual void plot_stokes(EstimatePlotter &plotter, unsigned iplot)
Plot the Stokes[ipol].
Definition ReceptionModelPlotter.C:239
void set_isource(unsigned isource)
Set the index of the source to be plotted.
Definition ReceptionModelPlotter.C:50
unsigned ipath
The index of the signal path.
Definition ReceptionModelPlotter.h:82
std::string output_filename
The name of the file to which text format data will be written.
Definition ReceptionModelPlotter.h:85
unsigned ipol
The index of the Stokes parameter to be plotted.
Definition ReceptionModelPlotter.h:76
Models a set of transformations and source polarizations.
Definition ReceptionModel.h:28

Generated using doxygen 1.14.0