PhaseVsFrequencyPlus.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2006 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/PhaseVsFrequencyPlus.h
10
11#ifndef __Pulsar_PhaseVsFrequencyPlus_h
12#define __Pulsar_PhaseVsFrequencyPlus_h
13
14#include "Pulsar/MultiPlot.h"
15#include "Pulsar/PhaseVsFrequency.h"
16#include "Pulsar/PhaseScale.h"
17
18#include "Pulsar/ProfilePlot.h"
19#include "Pulsar/SpectrumPlot.h"
20
21namespace Pulsar {
22
23 class PolnProfile;
24
27
28 public:
29
32
35
36 // Text interface to the PhaseVsFrequencyPlus class
37 class Interface : public TextInterface::To<PhaseVsFrequencyPlus> {
38 public:
39 Interface (PhaseVsFrequencyPlus* = 0);
40 };
41
43 void prepare (const Archive*);
44
46 void set_subint (const Index& _isubint) { isubint = _isubint; }
47 Index get_subint () const { return isubint; }
48
50 void set_pol (const Index& _ipol) { ipol = _ipol; }
51 Index get_pol () const { return ipol; }
52
54 void set_plot_psd (bool _plot);
55 bool get_plot_psd () const;
56
57 PhaseVsFrequency* get_freq () { return &freq; }
58 ProfilePlot* get_flux () { return &flux; }
59 SpectrumPlot* get_psd () { return &psd; }
60
61 PhaseScale* get_scale ();
62
63 protected:
64
65 PhaseVsFrequency freq;
66 ProfilePlot flux;
67 SpectrumPlot psd;
68
69 Index isubint;
70 Index ipol;
71
72 PhaseScale xaxis;
73 FrequencyScale yaxis;
74
75 bool plot_psd;
76
77 template<class T> void prepare (T* plot)
78 {
79 plot->set_subint (isubint);
80 plot->set_pol (ipol);
81 }
82
83 };
84
85}
86
87#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
Combines an index value and integrate flag.
Definition Index.h:19
MultiPlot()
Default constructor.
Definition MultiPlot.C:17
void plot(const Archive *)
Plot in the current viewport.
Definition MultiPlot.C:43
void set_plot_psd(bool _plot)
Plot the power spectral density.
Definition PhaseVsFrequencyPlus.C:104
bool get_plot_psd() const
Plot the power spectral density.
Definition PhaseVsFrequencyPlus.C:123
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition PhaseVsFrequencyPlus.C:85
PhaseScale * get_scale()
Get the scale.
Definition PhaseVsFrequencyPlus.C:98
PhaseVsFrequencyPlus()
Default constructor.
Definition PhaseVsFrequencyPlus.C:13
void prepare(const Archive *)
Ensure that frames are properly initialized.
Definition PhaseVsFrequencyPlus.C:90
void set_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition PhaseVsFrequencyPlus.h:46
void set_pol(const Index &_ipol)
Set the polarization to plot.
Definition PhaseVsFrequencyPlus.h:50
Polarimetric pulse profile transformations and derivations.
Definition PolnProfile.h:29
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0