source: tags/arb_5.2/PGT/plot.hxx

Last change on this file was 3952, checked in by baderk, 21 years ago

Added PGT to its new place in the ARB repository.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1// Copyright (c) 2004 - 2005 Kai Bader <baderk@in.tum.de>
2//
3// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
6// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
7// AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
10// CVS REVISION TAG  --  $Revision: 3952 $
11
12#ifndef PLOT_H
13#define PLOT_H
14
15
16#include <X11/Xlib.h>
17#include <Xm/XmAll.h>
18#include <sys/types.h>
19#include <sys/stat.h>
20#include <stdio.h>
21#include <stdlib.h>
22#include <math.h>
23#include <unistd.h>
24
25
26class Plot
27{
28    public:
29        Plot(Display *, Window);
30        ~Plot();
31        void demo();
32        void setParentWindow(Window);
33        void resizeWindow(int, int, int, int);
34    protected:
35        FILE *open_command_pipe();
36        void close_command_pipe();
37        FILE *open_data_pipe();
38        void close_data_pipe();
39        void send_command_pipe(char *);
40        void send_data_pipe(char *);
41    private:
42        void embed();
43        //
44        FILE *m_command_pipe;
45        bool m_has_command_pipe;
46        FILE *m_data_pipe;
47        bool m_has_data_pipe;
48        Window m_gnuplot_window;
49        Window m_parent_window;
50        Display *m_parent_display;
51        char *m_title;
52        char *m_temp_name;
53};
54
55#endif // PLOT_HXX
Note: See TracBrowser for help on using the repository browser.