WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
Figure.h
1
#ifndef _WINC_FIGURE
2
#define _WINC_FIGURE
3
4
#include <time.h>
5
6
#include <WXP/Date.h>
7
#include <WXP/Domain.h>
8
#include <WXP/Drawing.h>
9
#include <WXP/Listener.h>
10
#include <WXP/Plot.h>
11
#include <WXP/PlotItem.h>
12
#include <WXP/Rect.h>
13
#include <WXP/String.h>
14
15
namespace
WXP
{
16
17
class
Figure
:
public
Listener
{
18
Plot
plot;
19
PlotItem
*plot_queue;
20
String
file;
21
String
ftime;
22
Date
bdate;
23
Date
ldate;
24
Domain
bdomain;
25
int
loop_frames;
26
int
num_frames;
// Number of frames in loop
27
int
num_plot;
// Number of plots in frame
28
int
loop_type;
// Type of loop based on time or file
29
int
loop_inc;
// The increment in time for each plot
30
int
redraw;
31
int
border;
32
int
num_redraw;
33
int
refresh;
34
time_t rtime;
35
36
public
:
37
Figure
();
38
Figure
(
const
char
*param );
39
~Figure
();
40
41
int
init
();
42
int
setParam
(
const
char
*param );
43
int
open
(
const
char
*param );
44
int
open
();
45
int
close
();
46
int
setForeTime(
const
char
*fore );
47
int
setDomain
(
Domain
&rdomain );
48
int
setLoopType(
int
rtype );
50
inline
int
setRefresh
(
int
val ){ refresh = val;
return
1; };
51
int
setDate(
Date
&date );
52
int
setDate(
Date
&date,
int
inc,
int
num );
53
int
draw( );
54
int
startPlot();
55
int
startPlot(
Domain
&rdomain );
56
int
startPlot(
Rect
&offset,
float
aspect );
57
int
startPlot(
Rect
&offset,
Domain
&rdomain );
58
int
startPlot(
Rect
&offset );
59
int
clearQueue( );
60
int
addDrawing
(
Drawing
&draw );
61
int
addPanel(
const
char
*param );
62
int
draw(
Drawing
&draw );
63
int
drawFrame(
Date
&date );
64
int
drawFrame(
const
char
*fore );
65
int
endPlot
();
66
int
drawPlot();
67
int
updateLoop(
Date
&date );
68
int
manage
();
69
int
setDrawing(
const
char
*str );
70
bool
isDrawing(
int
ind );
71
void
callback
(
const
char
*ev_str,
const
char
*ev_data,
const
void
*data );
72
73
};
74
}
75
#endif
WXP::Date
This class stores date and time information.
Definition
Date.h:8
WXP::Domain
This class stores and manipulates domain data.
Definition
Domain.h:19
WXP::Drawing
This is a virtual class defining drawing routines.
Definition
Drawing.h:16
WXP::Figure
This class coordinates the drawing of full plots.
Definition
Figure.h:17
WXP::Figure::init
int init()
Definition
Figure.cc:56
WXP::Figure::open
int open()
Definition
Figure.cc:119
WXP::Figure::Figure
Figure()
Definition
Figure.cc:29
WXP::Figure::setDomain
int setDomain(Domain &rdomain)
Definition
Figure.cc:146
WXP::Figure::close
int close()
Definition
Figure.cc:127
WXP::Figure::setRefresh
int setRefresh(int val)
Definition
Figure.h:50
WXP::Figure::manage
int manage()
Definition
Figure.cc:563
WXP::Figure::setParam
int setParam(const char *param)
Definition
Figure.cc:90
WXP::Figure::addDrawing
int addDrawing(Drawing &draw)
Definition
Figure.cc:222
WXP::Figure::callback
void callback(const char *ev_str, const char *ev_data, const void *data)
Definition
Figure.cc:568
WXP::Figure::endPlot
int endPlot()
Definition
Figure.cc:338
WXP::Figure::~Figure
~Figure()
Definition
Figure.cc:48
WXP::Listener
This virtual class defines the callback method for use with plotting.
Definition
Listener.h:11
WXP::Plot
This class defines mid-level graphics commands. Calls the Graph object for actual graphics output.
Definition
Plot.h:26
WXP::String
This is a variable length string class.
Definition
String.h:5
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::PlotItem
This struct stores drawing objects used in complex plot.
Definition
PlotItem.h:14
WXP::Rect
This structure defines rectangle coordinates.
Definition
Rect.h:5
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7