Poincare.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/Poincare.h
10
11#ifndef __Pulsar_Poincare_h
12#define __Pulsar_Poincare_h
13
14#include "Pulsar/FramedPlot.h"
15#include "Pulsar/Index.h"
16#include "Pulsar/PlotScale.h"
17
18namespace Pulsar {
19
21 class Poincare : public FramedPlot {
22
23 public:
24
26 Poincare ();
27
29 void plot (const Archive*);
30
31 // Text interface to the Poincare class
32 class Interface : public TextInterface::To<Poincare> {
33 public:
34 Interface (Poincare* = 0);
35 };
36
39 { return new Interface (this); }
40
42 void set_longitude (float f) { longitude = f; }
44 float get_longitude () const { return longitude; }
45
47 void set_latitude (float f) { latitude = f; }
49 float get_latitude () const { return latitude; }
50
52 void set_subint (Index _isubint) { isubint = _isubint; }
53 Index get_subint () const { return isubint; }
54
56 void set_chan (Index _ichan) { ichan = _ichan; }
57 Index get_chan () const { return ichan; }
58
60 PlotScale* get_phase_scale () { return &phase_scale; }
61
63 void set_nstep (unsigned steps) { nstep = steps; }
65 unsigned get_nstep () const { return nstep; }
66
68 void set_longitude_step (float f) { longitude_step = f; }
70 float get_longitude_step () const { return longitude_step; }
71
73 void set_latitude_step (float f) { latitude_step = f; }
75 float get_latitude_step () const { return latitude_step; }
76
78 void set_label_bins (const std::string& bins) { label_bins = bins; }
80 std::string get_label_bins () const { return label_bins; }
81
82 protected:
83
84 Index isubint;
85 Index ichan;
86 PlotScale phase_scale;
87
88 mutable float longitude;
89 mutable float latitude;
90
91 unsigned nstep;
92 float longitude_step;
93 float latitude_step;
94
95 std::string label_bins;
96 };
97
98}
99
100#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
FramedPlot()
Default constructor.
Definition FramedPlot.C:10
Combines an index value and integrate flag.
Definition Index.h:19
The scale on an axis.
Definition PlotScale.h:21
float get_latitude() const
Get the latitude of the camera.
Definition Poincare.h:49
Poincare()
Default constructor.
Definition Poincare.C:21
void set_nstep(unsigned steps)
Set the animate of the camera.
Definition Poincare.h:63
float get_longitude() const
Get the longitude of the camera.
Definition Poincare.h:44
void set_subint(Index _isubint)
Set the sub-integration to plot (where applicable)
Definition Poincare.h:52
void set_latitude(float f)
Set the latitude of the camera.
Definition Poincare.h:47
float get_latitude_step() const
Get the latitude of the camera.
Definition Poincare.h:75
PlotScale * get_phase_scale()
Provide access to the phase scale.
Definition Poincare.h:60
void plot(const Archive *)
Plot in the current viewport.
Definition Poincare.C:33
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition Poincare.h:38
void set_longitude_step(float f)
Set the longitude of the camera.
Definition Poincare.h:68
std::string get_label_bins() const
Get the animate of the camera.
Definition Poincare.h:80
void set_label_bins(const std::string &bins)
Set the animate of the camera.
Definition Poincare.h:78
void set_latitude_step(float f)
Set the latitude of the camera.
Definition Poincare.h:73
void set_longitude(float f)
Set the longitude of the camera.
Definition Poincare.h:42
float get_longitude_step() const
Get the longitude of the camera.
Definition Poincare.h:70
void set_chan(Index _ichan)
Set the frequency channel to plot (where applicable)
Definition Poincare.h:56
unsigned get_nstep() const
Get the animate of the camera.
Definition Poincare.h:65
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0