PhaseVsFrequency.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/PhaseVsFrequency.h
10 
11 #ifndef __Pulsar_PhaseVsFrequency_h
12 #define __Pulsar_PhaseVsFrequency_h
13 
14 #include "Pulsar/PhaseVsPlot.h"
15 #include "Pulsar/Index.h"
16 #include "Pulsar/Integration.h"
17 
18 namespace Pulsar {
19 
21  class PhaseVsFrequency : public PhaseVsPlot {
22 
23  public:
24 
27 
30 
31  // Text interface to the PhaseVsFrequency class
32  class Interface : public TextInterface::To<PhaseVsFrequency> {
33  public:
34  Interface (PhaseVsFrequency* = 0);
35  };
36 
38  std::string get_ylabel (const Archive*);
39 
41  const Profile* get_Profile (const Archive* data, unsigned row);
42 
44  void set_subint (const Index& _isubint) { isubint = _isubint; }
45  Index get_subint () const { return isubint; }
46 
48  void set_pol (const Index& _ipol) { ipol = _ipol; }
49  Index get_pol () const { return ipol; }
50 
52  void prepare (const Archive *data);
53 
54  protected:
55 
56  Index isubint;
57  Index ipol;
58 
60 
61  };
62 
63 }
64 
65 #endif
void prepare(const Archive *data)
Prepare for plotting.
Definition: PhaseVsFrequency.C:31
Combines an index value and integrate flag.
Definition: Index.h:24
const Integration * get_Integration(const Archive *data, Index subint)
Return the requested profile, cloning and integrating when needed.
Definition: Index.C:118
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void set_pol(const Index &_ipol)
Set the polarization to plot.
Definition: PhaseVsFrequency.h:58
The primary interface to pulsar observational data.
Definition: Archive.h:45
PhaseVsFrequency()
Default constructor.
Definition: PhaseVsFrequency.C:12
std::string get_ylabel(const Archive *)
Get the default label for the y axis.
Definition: PhaseVsFrequency.C:26
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition: PhaseVsFrequency.C:21
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
Represents an axis with radio frequency ordinate.
Definition: FrequencyScale.h:26
Plots images of something as a function of pulse phase vs something.
Definition: PhaseVsFrequency.h:26
void set_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition: PhaseVsFrequency.h:54
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
const Profile * get_Profile(const Archive *data, unsigned row)
Derived classes must provide the Profile for the specified row.
Definition: PhaseVsFrequency.C:38
virtual void prepare(const Archive *)
Derived classes must prepare to draw.
Definition: FramedPlot.h:53

Generated using doxygen 1.8.17