PhaseVsTime.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/PhaseVsTime.h
10
11#ifndef __Pulsar_PhaseVsTime_h
12#define __Pulsar_PhaseVsTime_h
13
14#include "Pulsar/PhaseVsPlot.h"
15#include "Pulsar/TimeScale.h"
16#include "Pulsar/Index.h"
17
18namespace Pulsar {
19
21 class PhaseVsTime : public PhaseVsPlot {
22
23 public:
24
26 PhaseVsTime ();
27
30
31 // Text interface to the PhaseVsTime class
32 class Interface : public TextInterface::To<PhaseVsTime> {
33 public:
34 Interface (PhaseVsTime* = 0);
35 };
36
38 const Profile* get_Profile (const Archive* data, unsigned row);
39
41 TimeScale* get_y_scale () { return y_scale; }
42
44 void set_chan (const Index& _ichan) { ichan = _ichan; }
45 Index get_chan () const { return ichan; }
46
48 void set_pol (const Index& _ipol) { ipol = _ipol; }
49 Index get_pol () const { return ipol; }
50
51 protected:
52
53 Index ichan;
54 Index ipol;
56
57 };
58
59}
60
61#endif
PhaseVsTime()
Default constructor.
Definition PhaseVsTime.C:13
The primary interface to pulsar observational data.
Definition Archive.h:46
Combines an index value and integrate flag.
Definition Index.h:19
PhaseVsPlot()
Default constructor.
Definition PhaseVsPlot.C:26
PhaseVsTime()
Default constructor.
Definition PhaseVsTime.C:13
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition PhaseVsTime.C:28
void set_chan(const Index &_ichan)
Set the frequency channel to plot.
Definition PhaseVsTime.h:44
void set_pol(const Index &_ipol)
Set the polarization to plot.
Definition PhaseVsTime.h:48
TimeScale * get_y_scale()
Return pointer to y scale.
Definition PhaseVsTime.h:41
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition PhaseVsTime.C:22
Any quantity recorded as a function of pulse phase.
Definition Profile.h:40
Represents an axis with a time ordinate.
Definition TimeScale.h:21
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0