MoreScale.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2016 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/Plotting/Pulsar/MoreScale.h
10
11#ifndef __Pulsar_MoreScale_h
12#define __Pulsar_MoreScale_h
13
14#include "Pulsar/PlotScale.h"
15
16namespace Pulsar {
17
18 class Archive;
19
21 class MoreScale : public PlotScale {
22
23 public:
24
26 MoreScale ();
27
28 // Text interface to the MoreScale class
29 class Interface : public TextInterface::To<MoreScale>
30 {
31 public:
32 Interface (MoreScale* = 0);
33 };
34
35 TextInterface::Parser* get_interface () { return new Interface(this); }
36
38 void init (const Archive*);
39
41 void get_indeces (const Archive*, unsigned& min, unsigned& max) const;
42
44 std::string get_label () const;
45
46 void set_reverse (bool flag=true) { reverse = flag; }
47 bool get_reverse () const { return reverse; }
48
49 protected:
50
52 bool reverse;
53
54 };
55
56}
57
58#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
void get_indeces(const Archive *, unsigned &min, unsigned &max) const
Return the min and max as the phase bin index.
Definition MoreScale.C:27
void init(const Archive *)
Initialize internal attributes according to Archive data.
Definition MoreScale.C:21
MoreScale()
Default constructor.
Definition MoreScale.C:16
bool reverse
Reverse the order on the axis.
Definition MoreScale.h:52
std::string get_label() const
Get a description of the units.
Definition MoreScale.C:33
PlotScale()
Default constructor.
Definition PlotScale.C:20
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0