WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
VectPlot.h
1#ifndef _WINC_VECTPLOT
2#define _WINC_VECTPLOT
3
4#include <WXP/ColorFill.h>
5#include <WXP/Grid.h>
6#include <WXP/Plot.h>
7#include <WXP/String.h>
8
9namespace WXP {
10 class VectPlot {
11 int type;
12 int uvgrid;
13 int skipx, skipy;
14 float intrvl;
15 float base;
16 float vect_mag;
17 int density;
18 float scale;
19 float arrow_scale;
20 float dom_scale;
21 float min_cut;
22 float max_cut;
23 float max;
24 String color_table;
25 String color_data;
26 String color_fill;
27 String color_label;
28 ColorFill fill;
29 int bar;
30 int *num; // Used for streamlines
31 int numsize;
32
33 public:
34 VectPlot();
35 VectPlot( const char *param );
36 int init();
37 int setParam( const char *param );
38 int setColorTable( const char *str );
39 int setColorFill( const char *str );
40 int setColor( const char *str );
41 int setSkip( int x, int y );
42 int setSkip( int val );
43 int setInterval( float val );
44 int setBase( float val );
45 int setMagnitude( float val );
46 int setDensity( int val );
47 int setScale( float val );
48 int setArrowScale( float val );
50 inline int getType(){ return type; };
51 int setType( const char *str );
53 inline int setType( int rtype ){ type = rtype; return 1; };
55 inline float getMax(){ return max; };
56 int drawLabels( Plot &plot, Grid &grid );
57 int draw( Plot &plot, Grid &ugrid, Grid &vgrid );
58 int drawStreamline( Plot &plot, Grid &ugrid, Grid &vgrid,
59 int i, int j, float length );
60 int drawBar( Plot &plot, const char *locate );
61 int drawVect( Plot &plot, const char *locate );
62
64 enum Type {
67 STREAM
68 };
69 };
70}
71#endif
This class sets up color fill parameters.
Definition ColorFill.h:8
This class defines a grid.
Definition Grid.h:20
This class defines mid-level graphics commands. Calls the Graph object for actual graphics output.
Definition Plot.h:26
This is a variable length string class.
Definition String.h:5
This class plots vectors and streamlines from U and V grids.
Definition VectPlot.h:10
int setType(const char *str)
Definition VectPlot.cc:157
int setColorFill(const char *str)
Definition VectPlot.cc:182
int setScale(float val)
Definition VectPlot.cc:258
int setInterval(float val)
Definition VectPlot.cc:221
int draw(Plot &plot, Grid &ugrid, Grid &vgrid)
Definition VectPlot.cc:333
int drawStreamline(Plot &plot, Grid &ugrid, Grid &vgrid, int i, int j, float length)
Definition VectPlot.cc:507
Type
Definition VectPlot.h:64
@ VECTOR
Definition VectPlot.h:65
@ BARB
Definition VectPlot.h:66
@ STREAM
Definition VectPlot.h:67
int setDensity(int val)
Definition VectPlot.cc:249
float getMax()
Definition VectPlot.h:55
int setBase(float val)
Definition VectPlot.cc:230
int setType(int rtype)
Definition VectPlot.h:53
int setArrowScale(float val)
Definition VectPlot.cc:267
int setColorTable(const char *str)
Definition VectPlot.cc:173
int init()
Definition VectPlot.cc:50
int drawLabels(Plot &plot, Grid &grid)
Definition VectPlot.cc:277
int setParam(const char *param)
Definition VectPlot.cc:104
int setColor(const char *str)
Definition VectPlot.cc:191
int setMagnitude(float val)
Definition VectPlot.cc:239
int setSkip(int x, int y)
Definition VectPlot.cc:201
int drawBar(Plot &plot, const char *locate)
Definition VectPlot.cc:661
int getType()
Definition VectPlot.h:50
VectPlot()
Definition VectPlot.cc:34
int drawVect(Plot &plot, const char *locate)
Definition VectPlot.cc:673
All WXP classes fall under the WXP namespace.
Definition Angle.h:4