PhaseVsMore.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2016 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/PhaseVsMore.h
10
11#ifndef __Pulsar_PhaseVsMore_h
12#define __Pulsar_PhaseVsMore_h
13
14#include "Pulsar/PhaseVsPlot.h"
15#include "Pulsar/Profile.h"
16
17namespace Pulsar {
18
20 class PhaseVsMore : public PhaseVsPlot
21 {
22 public:
23
25 PhaseVsMore ();
26
29
30 // Text interface to the PhaseVsMore class
31 class Interface : public TextInterface::To<PhaseVsMore>
32 {
33 public:
34 Interface (PhaseVsMore* = 0);
35 };
36
38 std::string get_ylabel (const Archive*);
39
41 unsigned get_nrow (const Archive* data);
42
44 const Profile* get_Profile (const Archive* data, unsigned row);
45
47 void set_subint (const unsigned& _isubint) { isubint = _isubint; }
48 unsigned get_subint () const { return isubint; }
49
51 void set_chan (const unsigned& _ichan) { ichan = _ichan; }
52 unsigned get_chan () const { return ichan; }
53
55 void prepare (const Archive *data);
56
57 protected:
58
59 unsigned isubint;
60 unsigned ichan;
61
63 };
64
65}
66
67#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
The primary interface to pulsar observational data.
Definition Archive.h:46
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition PhaseVsMore.C:25
void set_subint(const unsigned &_isubint)
Set the sub-integration to plot (where applicable)
Definition PhaseVsMore.h:47
void prepare(const Archive *data)
Prepare for plotting.
Definition PhaseVsMore.C:35
PhaseVsMore()
Default constructor.
Definition PhaseVsMore.C:16
unsigned get_nrow(const Archive *data)
Derived classes must provide the number of rows.
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition PhaseVsMore.C:30
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition PhaseVsMore.C:42
void set_chan(const unsigned &_ichan)
Set the frequency channel to plot.
Definition PhaseVsMore.h:51
PhaseVsPlot()
Default constructor.
Definition PhaseVsPlot.C:26
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0