PhaseVsHistPlus.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2009 by Paul Demorest
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9#ifndef __Pulsar_PhaseVsHistPlus_h
10#define __Pulsar_PhaseVsHistPlus_h
11
12#include "Pulsar/MultiPlot.h"
13#include "Pulsar/PhaseScale.h"
14#include "Pulsar/PhaseVsHist.h"
15#include "Pulsar/StokesPlot.h"
16
17namespace Pulsar {
18
19 class PolnProfile;
20
22 class PhaseVsHistPlus : public MultiPlot {
23
24 public:
25
28
31
32 // Text interface to the PhaseVsFrequencyPlus class
33 class Interface : public TextInterface::To<PhaseVsHistPlus> {
34 public:
35 Interface (PhaseVsHistPlus* = 0);
36 };
37
39 void prepare (const Archive*);
40
42 void set_subint (const Index& _isubint) { isubint = _isubint; }
43 Index get_subint () const { return isubint; }
44
45 PhaseVsHist* get_hist () { return &hist; }
46 StokesPlot* get_flux () { return &flux; }
47
48 PhaseScale* get_scale ();
49
50 protected:
51
52 PhaseVsHist hist;
53 StokesPlot flux;
54
55 Index isubint;
56
57 PhaseScale xaxis;
58 //FrequencyScale yaxis;
59
60#if 0
61 template<class T> void prepare (T* plot)
62 {
63 plot->set_subint (isubint);
64 }
65#endif
66
67 };
68
69}
70
71#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_subint(const Index &_isubint)
Set the sub-integration to plot (where applicable)
Definition PhaseVsHistPlus.h:42
PhaseVsHistPlus()
Default constructor.
Definition PhaseVsHistPlus.C:13
void prepare(const Archive *)
Ensure that frames are properly initialized.
Definition PhaseVsHistPlus.C:71
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition PhaseVsHistPlus.C:66
PhaseScale * get_scale()
Get the scale.
Definition PhaseVsHistPlus.C:76
Polarimetric pulse profile transformations and derivations.
Definition PolnProfile.h:29
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0