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 
18 namespace Pulsar {
19 
21  class PhaseVsTime : public PhaseVsPlot {
22 
23  public:
24 
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
void set_chan(const Index &_ichan)
Set the frequency channel to plot.
Definition: PhaseVsTime.h:54
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition: PhaseVsTime.C:28
Plots images of something as a function of pulse phase vs something.
Definition: PhaseVsTime.h:26
void set_pol(const Index &_ipol)
Set the polarization to plot.
Definition: PhaseVsTime.h:58
Combines an index value and integrate flag.
Definition: Index.h:24
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
The primary interface to pulsar observational data.
Definition: Archive.h:45
TimeScale * get_y_scale()
Return pointer to y scale.
Definition: PhaseVsTime.h:51
Represents an axis with a time ordinate.
Definition: TimeScale.h:26
virtual PlotFrame * get_frame()
Get the frame.
Definition: FramedPlot.C:27
void set_y_scale(PlotScale *scale)
Set the y-scale.
Definition: PlotFrame.C:222
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: PhaseVsTime.C:22
Defines the PSRCHIVE library.
Definition: CalSource.h:17
const Profile * get_Profile(const Archive *data, Index subint, Index pol, Index chan)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:24

Generated using doxygen 1.8.17