source: trunk/src/Utils/mycpgplot.hh @ 201

Last change on this file since 201 was 201, checked in by Matthew Whiting, 18 years ago
  • New functionality added: ability to smooth a cube (in each individual spectrum) using a hanning filter before searching.
  • This comes with associated input parameters: flagSmooth and hanningWidth.
  • Hanning smoothing implemented via a new class that does the smoothing
  • Other minor changes:
    • changed the way getIAUName is called.
    • new colour names in mycpgplot
    • a << operator for the StatsContainer? class
    • more robust ProgressBar? functions
    • updated the Makefile.in
File size: 1.2 KB
Line 
1#ifndef MYCPGPLOT_H
2#define MYCPGPLOT_H
3#include <string>
4namespace mycpgplot
5{
6
7  enum COLOUR {BACKGND=0, FOREGND, RED, GREEN, BLUE, CYAN,
8               MAGENTA, YELLOW, ORANGE, GREENYELLOW, GREENCYAN, BLUECYAN,
9               BLUEMAGENTA, REDMAGENTA, DARKGREY, LIGHTGREY, DARKGREEN};
10
11  enum INVERSE {XS_BLACK, XS_WHITE};
12
13  inline void setDarkGreen(){cpgscr(DARKGREEN,0.,0.7,0.);};
14
15  inline void setWhite(){
16    if(cpgIsPS()) cpgsci(BACKGND);
17    else cpgsci(FOREGND);
18  };
19
20  inline void setBlack(){
21    if(cpgIsPS()) cpgsci(FOREGND);
22    else cpgsci(BACKGND);
23  };
24
25  enum LINESTYLE {FULL=1, DASHED, DASHDOT, DOTTED, DASHDOT3};
26
27  enum FILLSTYLE {SOLID=1, OUTLINE, HATCHED, CROSSHATCHED};
28
29  enum SYMBOLS {SOLIDPENT=-5, SOLIDDIAMOND, DOT=1, PLUS, ASTERISK,
30                CIRCLE, CROSS, SQUARE, TRIANGLE, OPLUS, ODOT, FOURSTAR,
31                DIAMOND, STAR, SOLIDTRIANGLE, OPENPLUS, DAVID,
32                SOLIDSQUARE, SOLIDCIRCLE, SOLIDSTAR, LARGESQUARE,
33                CIRCLE1, CIRCLE2, CIRCLE3, CIRCLE4, CIRCLE5, CIRCLE6,
34                CIRCLE7, CIRCLE8, CIRCLE9, LEFT, RIGHT, UP, DOWN};
35
36  const std::string degrees="\\(0718)";
37  const std::string plusminus="\\(2233)";
38  const std::string times="\\(2235)";
39  const std::string tick="\\(2267)";
40  const std::string odot="\\(2281)";
41  const std::string integral="\\(2268)";
42
43}
44
45
46#endif
Note: See TracBrowser for help on using the repository browser.