PlotPen.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2013 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/psrchive/More/Plotting/Pulsar/PlotPen.h
10
11#ifndef __Pulsar_PlotPen_h
12#define __Pulsar_PlotPen_h
13
14#include "TextInterface.h"
15
16namespace Pulsar {
17
19 class PlotPen : public Reference::Able
20 {
21 int colour_index;
22 int line_style;
23 int line_width;
24
25 public:
26
28 PlotPen ();
29
31 void setup ();
32
34 void set_colour_index (const int val) { colour_index = val; }
35 int get_colour_index () const { return colour_index; }
36
38 void set_line_style (const int val) { line_style = val; }
39 int get_line_style () const { return line_style; }
40
42 void set_line_width (const int val) { line_width = val; }
43 int get_line_width () const { return line_width; }
44
45 // Text interface to the PlotPen class
46 class Interface : public TextInterface::To<PlotPen> {
47 public:
48 Interface (PlotPen* = 0);
49 };
50
51 };
52
53}
54
55#endif
PlotPen()
Default constructor.
Definition PlotPen.C:16
void set_line_width(const int val)
Set the line width for each value plotted.
Definition PlotPen.h:42
void setup()
Set the plot line attributes.
Definition PlotPen.C:24
void set_line_style(const int val)
Set the line style for each value plotted.
Definition PlotPen.h:38
void set_colour_index(const int val)
Set the colour for each value plotted.
Definition PlotPen.h:34
Defines the PSRCHIVE library.
Definition CalSource.h:17

Generated using doxygen 1.14.0