ChannelWeightsPlot.h
1/***************************************************************************
2 *
3 * Copyright (C) 2007 by David Smith
4 * Licensed under the Academic Free License version 2.1
5 *
6 ***************************************************************************/
7
8
9
10
11#ifndef CHANNEL_WEIGHTS_H_
12#define CHANNEL_WEIGHTS_H_
13
14
15
16#include "Pulsar/FrequencyPlot.h"
17
18
19
20namespace Pulsar
21{
22
24 class ChannelWeightsPlot : public FrequencyPlot
25 {
26 public:
27 ChannelWeightsPlot();
28 ~ChannelWeightsPlot();
29
30 class Interface : public TextInterface::To<ChannelWeightsPlot>
31 {
32 public:
33 Interface( ChannelWeightsPlot *s_instance = 0 );
34 };
35
37
38 void prepare( const Archive *data );
39 virtual void preprocess( Archive *data ) {}
40 void draw( const Archive *data );
41 private:
42
43 std::vector<float> weights;
44 std::pair<float,float> weights_minmax;
45 };
46
47
48}
49
50
51
52#endif
The primary interface to pulsar observational data.
Definition Archive.h:46
void prepare(const Archive *data)
Derived classes must prepare to draw.
Definition ChannelWeightsPlot.C:40
virtual void preprocess(Archive *data)
Process the Archive as needed before calling plot.
Definition ChannelWeightsPlot.h:39
TextInterface::Parser * get_interface()
Get the text interface to the configuration attributes.
Definition ChannelWeightsPlot.C:33
void draw(const Archive *data)
Derived classes must draw in the current viewport.
Definition ChannelWeightsPlot.C:84
FrequencyPlot()
Default constructor.
Definition FrequencyPlot.C:9
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0