7#include <WXP/GraphAttr.h>
9#include <WXP/Listener.h>
11#include <WXP/Points.h>
14#include <WXP/String.h>
15#include <WXP/Symbol.h>
21 static const int max_tran = 4;
50 float text_char_space;
51 float text_char_width;
54 float text_upx, text_upy;
65 int drawTextLine(
float ox,
float oy,
const char *
string );
70 Graph(
const char *device,
const char *param );
73 int setDevice(
const char *device,
const char *params );
76 int open(
const char *dev,
const char *params );
84 void callback(
const char *ev_str,
const char *ev_data,
const void *data );
85 int doCallback(
const char *ev_str,
const char *ev_data );
88 int setSize(
float width,
float height );
113 int tranPlotView(
float x1,
float y1,
float &x2,
float &y2 );
116 int tranWindow(
int tran1,
float x1,
float y1,
int tran2,
float &x2,
float &y2 );
120 int allocColor(
float red,
float grn,
float blu );
122 int drawLine(
float x1,
float y1,
float x2,
float y2 );
125 int drawRect(
float x1,
float y1,
float x2,
float y2 );
127 int drawCircle(
float x1,
float y1,
float rad );
144 int drawText(
float ox,
float oy,
const char *
string );
146 int drawFormText(
float x,
float y,
const char *format, ... );
150 int setFont(
const char *str );
164 int drawSymbol(
float ox,
float oy,
const char *
string,
float size );
178 int message(
const char *str, ... );
181 static const int DEVICE_NONE = 0;
182 static const int DEVICE_WINDOW = 1;
183 static const int DEVICE_POSTSCRIPT = 2;
184 static const int DEVICE_HPGL = 3;
185 static const int DEVICE_METAFILE = 4;
This virtual class defines methods for output to generic device.
Definition Device.h:19
This class stores WXP font information.
Definition GFont.h:7
This class creates device independent coordinate systems.
Definition GTran.h:10
This class plots to a device independent graphics interface.
Definition Graph.h:18
int setViewportAspect(Rect &limit, float aspect, int halign, int valign)
Definition Graph.cc:382
int getFrame()
Definition Graph.cc:1833
int setTran(int num)
Definition Graph.cc:368
int activateTran()
Definition Graph.cc:599
int getDropShadow()
Definition Graph.cc:1365
bool isOpen()
Definition Graph.cc:199
int setDropShadow(int val)
Definition Graph.cc:1356
int doCallback(const char *ev_str, const char *ev_data)
Definition Graph.cc:280
int addCallback(const char *ev, Listener *list, const void *data)
Definition Graph.cc:268
int setMarkSize(float size)
Definition Graph.cc:1675
int setTextDirection(float x, float y)
Definition Graph.cc:1417
int allocColor(float red, float grn, float blu)
Definition Graph.cc:712
int getTran()
Definition Graph.cc:591
int setWindow(int num, Rect &rect)
Definition Graph.cc:553
int setIcon(bool val)
Definition Graph.cc:349
int open()
Definition Graph.cc:158
int setLineStyle(int style)
Definition Graph.cc:878
int tranPlotWindow(float x1, float y1, float &x2, float &y2)
Definition Graph.cc:638
int drawLine(float x1, float y1, float x2, float y2)
Definition Graph.cc:734
int setMarkType(int type)
Definition Graph.cc:1685
int setLineColor(int index)
Definition Graph.cc:854
Rect getWindow()
Definition Graph.cc:581
int drawMarkLine(float x, float y, float size)
Definition Graph.cc:1468
int bell()
Definition Graph.cc:1881
int manage()
Definition Graph.cc:226
int setTextColor(int color)
Definition Graph.cc:1238
int setDropWidth(int val)
Definition Graph.cc:1374
int setFillColor(int index)
Definition Graph.cc:948
int setDropColor(int index)
Definition Graph.cc:1346
int drawSymbol(float ox, float oy, const char *string, float size)
Definition Graph.cc:1724
int setImageAlign(int h, int v)
Definition Graph.cc:1773
Rect getDeviceViewport()
Definition Graph.cc:525
int tranPlotView(float x1, float y1, float &x2, float &y2)
Definition Graph.cc:624
int clear()
Definition Graph.cc:686
int setSymbol(const char *file)
Definition Graph.cc:1707
int drawFill(Rect &rect)
Definition Graph.cc:918
int printTran()
Definition Graph.cc:1915
int message(const char *str,...)
Definition Graph.cc:1900
int drawCircle(float x1, float y1, float rad)
Definition Graph.cc:786
int init()
Definition Graph.cc:50
int setOffset(float rx, float ry)
Definition Graph.cc:311
int getDevice(String &str)
Definition Graph.cc:149
int setMarkColor(int index)
Definition Graph.cc:1663
int setTextWeight(float weight)
Definition Graph.cc:1393
int close()
Definition Graph.cc:206
int setTextCharWidth(float space)
Definition Graph.cc:1457
int setTextBoxColor(int index)
Definition Graph.cc:1336
int setTextAlign(int hor, int vert)
Definition Graph.cc:1437
Rect getViewport()
Definition Graph.cc:507
~Graph()
Definition Graph.cc:107
int setDevice(const char *device, const char *params)
Definition Graph.cc:116
int setInverse(bool val)
Definition Graph.cc:322
int drawFillarea(Points &data)
Definition Graph.cc:940
int getImage(Image &image)
Definition Graph.cc:1814
int drawRect(float x1, float y1, float x2, float y2)
Definition Graph.cc:760
int setCursor(int type)
Definition Graph.cc:1890
int drawMark(float x, float y)
Definition Graph.cc:1630
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition Graph.cc:250
int drawImage(Image &image, float x, float y)
Definition Graph.cc:1801
int drawFormText(float x, float y, const char *format,...)
Definition Graph.cc:1207
bool isLooping()
Definition Graph.cc:1824
int update()
Definition Graph.cc:217
int setFontSpec()
Definition Graph.cc:1249
int setTextSpacing(float space)
Definition Graph.cc:1447
bool isManaged()
Definition Graph.h:83
int setFixed(bool val)
Definition Graph.cc:289
int unmanage()
Definition Graph.cc:237
int tranWindow(int tran1, float x1, float y1, int tran2, float &x2, float &y2)
Definition Graph.cc:662
int setSize(float width, float height)
Definition Graph.cc:300
int newFrame()
Definition Graph.cc:1852
int getNumFrames()
Definition Graph.cc:1873
Rect getMaxViewport()
Definition Graph.cc:544
int clearRect(Rect &rect)
Definition Graph.cc:695
int setLineWidth(float width)
Definition Graph.cc:866
int setTextExpansion(float expansion)
Definition Graph.cc:1383
int drawText(float ox, float oy, const char *string)
Definition Graph.cc:1093
int setFont(const char *str)
Definition Graph.cc:1279
int setTitle(const char *str)
Definition Graph.cc:359
int setMarkWeight(float weight)
Definition Graph.cc:1695
int deleteFrame(int ind)
Definition Graph.cc:1864
Graph()
Definition Graph.cc:90
int setFillStyle(int index)
Definition Graph.cc:960
bool getInverse()
Definition Graph.cc:332
int setFrame(int ind)
Definition Graph.cc:1842
int setViewport(int num, Rect &rect)
Definition Graph.cc:479
int setTextHeight(float height)
Definition Graph.cc:1405
int setBackground(const char *str)
Definition Graph.cc:341
This class defines an image.
Definition Image.h:19
This virtual class defines the callback method for use with plotting.
Definition Listener.h:11
This class creates an array a 2D points (x, y)
Definition Points.h:8
This is a variable length string class.
Definition String.h:5
This class reads in symbol font data.
Definition Symbol.h:7
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This defines some basic graphics attributes.
Definition GraphAttr.h:11
This struct sets a 3D point (x, y, z)
Definition Point.h:5
This struct defines a set of RGB values.
Definition RGB.h:5
This structure defines rectangle coordinates.
Definition Rect.h:5