My Project
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
PgUtil.h
Go to the documentation of this file.
1
// $Id: PgUtil.h,v 1.1.1.1 2009/07/06 23:57:23 eml Exp $
2
3
#ifndef GCP_UTIL_PGUTIL_H
4
#define GCP_UTIL_PGUTIL_H
5
15
#include "gcp/pgutil/common/color_tab.h"
16
#include <string>
17
18
namespace
gcp {
19
namespace
util {
20
21
class
PgUtil
{
22
public
:
23
27
PgUtil
();
28
32
virtual
~PgUtil
();
33
34
enum
{
35
BLACK = 0,
36
WHITE = 1,
37
RED = 2,
38
GREEN = 3,
39
DEEP_BLUE = 4,
40
PALE_BLUE = 5,
41
MAGENTA = 6,
42
YELLOW = 7,
43
ORANGE = 8,
44
YELLOW_GREEN = 9,
45
SAGE_GREEN = 10,
46
SLATE_BLUE = 11,
47
PURPLE = 12,
48
PINK = 13,
49
DARK_GRAY = 14,
50
DARK_GREY = 14,
51
LIGHT_GRAY = 15,
52
LIGHT_GREY = 15,
53
};
54
55
static
int
open(std::string device);
56
57
static
void
close();
58
59
static
int
v_grey2
(
int
ndata,
float
*zdata,
int
nx,
int
ny,
60
float
xmina=0,
float
xmaxa=1,
float
ymina=0,
float
ymaxa=1,
61
float
*flag=0,
float
z1=0,
float
z2=0,
62
char
*xlab=
""
,
char
*ylab=
""
,
char
*title=
""
,
char
*unit=
""
);
63
64
static
int
v_radplot(
float
data[],
int
nbin,
float
rmin,
float
rmax,
65
float
xmin,
float
xmax,
float
ymin,
float
ymax,
int
nx,
int
ny);
66
67
// Plot a simple line plot.
68
69
static
int
v_lplot(
int
narr,
float
xarr[],
float
yarr[],
char
xlab[],
char
ylab[],
70
char
title[]);
71
72
static
void
setOverplot(
bool
overplot) {
73
overplot_ = overplot;
74
}
75
76
static
void
setVp(
bool
vp) {
77
vp_ = vp;
78
}
79
80
static
void
setTick(
bool
tick) {
81
tick_ = tick;
82
}
83
84
static
void
setLabel(
bool
label) {
85
label_ = label;
86
}
87
88
static
void
setWedge(
bool
wedge) {
89
wedge_ = wedge;
90
}
91
92
static
void
setUsedefs(
bool
usedefs) {
93
usedefs_ = usedefs;
94
}
95
96
static
void
setXmin(
float
xmin) {
97
xmin_ = xmin;
98
}
99
100
static
void
setXmax(
float
xmax) {
101
xmax_ = xmax;
102
}
103
104
static
void
setYmin(
float
ymin) {
105
ymin_ = ymin;
106
}
107
108
static
void
setYmax(
float
ymax) {
109
ymax_ = ymax;
110
}
111
112
static
void
setColormap(std::string cmap);
113
114
private
:
115
116
static
Cmap
* cmap_;
117
static
bool
overplot_;
118
static
bool
vp_;
119
static
bool
tick_;
120
static
bool
label_;
121
static
bool
wedge_;
122
static
bool
usedefs_;
123
static
float
xmin_, xmax_;
124
static
float
ymin_, ymax_;
125
126
// Module for v_lplot.
127
128
static
int
v_lnewx(
float
xmins,
float
xmaxs,
float
ymins,
float
ymaxs,
129
float
*xmin,
float
*xmax,
float
*ymin,
float
*ymax,
130
int
narr,
float
xarr[],
float
yarr[]);
131
132
// Module for v_lplot.
133
134
static
int
v_lwrite(
int
narr,
float
xarr[],
float
yarr[],
float
xmin,
135
float
xmax,
float
ymin,
float
ymax);
136
137
// Module for v_lplot.
138
139
static
int
v_lnum(
int
narr,
float
xarr[],
float
yarr[],
float
xmin,
140
float
xmax,
float
ymin,
float
ymax);
141
142
// Module for v_lplot.
143
144
static
int
v_lten(
int
narr,
float
xarr[],
float
yarr[],
float
xmin,
145
float
xmax,
float
ymin,
float
ymax);
146
147
// Module for v_hist.
148
149
static
int
v_lzoom(
float
xmins,
float
xmaxs,
float
ymins,
float
ymaxs,
150
float
*xmin,
float
*xmax,
float
*ymin,
float
*ymax);
151
152
// Module for v_lplot -- Draw the line plot.
153
154
static
int
v_ldraw(
int
narr,
float
xarr[],
float
yarr[],
char
xlab[],
char
ylab[],
char
title[]);
155
156
};
// End class PgUtil
157
158
}
// End namespace util
159
}
// End namespace gcp
160
161
162
163
#endif // End #ifndef GCP_UTIL_PGUTIL_H
gcp::util::PgUtil::v_grey2
static int v_grey2(int ndata, float *zdata, int nx, int ny, float xmina=0, float xmaxa=1, float ymina=0, float ymaxa=1, float *flag=0, float z1=0, float z2=0, char *xlab="", char *ylab="", char *title="", char *unit="")
Definition:
PgUtil.cc:107
gcp::util::PgUtil::~PgUtil
virtual ~PgUtil()
Definition:
PgUtil.cc:90
gcp::util::PgUtil::PgUtil
PgUtil()
Definition:
PgUtil.cc:85
gcp::util::PgUtil
Definition:
PgUtil.h:21
Cmap
Definition:
color_tab.h:50
gcpCbass
pgutil
common
PgUtil.h
Generated on Thu Jun 21 2018 14:30:00 for My Project by
1.8.6