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 
16 namespace Pulsar {
17 
18  class Archive;
19 
21  class MoreScale : public PlotScale {
22 
23  public:
24 
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
bool reverse
Reverse the order on the axis.
Definition: MoreScale.h:57
void init(const Archive *)
Initialize internal attributes according to Archive data.
Definition: MoreScale.C:21
The primary interface to pulsar observational data.
Definition: Archive.h:45
void get_indeces(const Archive *, unsigned &min, unsigned &max) const
Return the min and max as the phase bin index.
Definition: MoreScale.C:27
Definition: MoreProfiles.h:24
MoreScale()
Default constructor.
Definition: MoreScale.C:16
Profile * get_Profile(unsigned subint, unsigned pol, unsigned chan)
Return pointer to the specified profile.
Definition: Archive.C:270
std::string get_label() const
Get a description of the units.
Definition: MoreScale.C:33
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Represents an axis with radio frequency ordinate.
Definition: MoreScale.h:26
const ExtensionType * get() const
Template method searches for an Extension of the specified type.

Generated using doxygen 1.8.17