ROOT  6.06/09
Reference Guide
main.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2011 Matthias Kretz <kretz@kde.org>
3 
4  Permission to use, copy, modify, and distribute this software
5  and its documentation for any purpose and without fee is hereby
6  granted, provided that the above copyright notice appear in all
7  copies and that both that the copyright notice and this
8  permission notice and warranty disclaimer appear in supporting
9  documentation, and that the name of the author not be used in
10  advertising or publicity pertaining to distribution of the
11  software without specific, written prior permission.
12 
13  The author disclaim all warranties with regard to this
14  software, including all implied warranties of merchantability
15  and fitness. In no event shall the author be liable for any
16  special, indirect or consequential damages or any damages
17  whatsoever resulting from loss of use, data or profits, whether
18  in an action of contract, negligence or other tortious action,
19  arising out of or in connection with the use or performance of
20  this software.
21 
22 */
23 
24 #ifndef MAIN_H
25 #define MAIN_H
26 
27 #include <QImage>
28 #include <QTextStream>
29 #include <QString>
30 #include <QObject>
31 
33 {
34  public:
36  void setValue(float v);
37  void done();
38 
39  private:
40  QTextStream m_out;
41 };
42 
43 class Baker
44 {
45  public:
46  struct Options
47  {
48  int red[2];
49  int green[2];
50  int blue[2];
51  int steps[2];
52  int it[2];
53  Options();
54  };
55 
56  Baker();
57  void setOptions(Options o) { m_opt = o; }
58  void setSize(int w, int h);
59  void setFilename(const QString &);
60  void createImage();
61 
62  private:
64  float m_x; // left
65  float m_y; // top
66  float m_width;
67  float m_height;
68  QImage m_image;
69  QString m_filename;
71 };
72 #endif // MAIN_H
void setValue(float v)
Definition: main.cpp:54
Baker()
Definition: main.cpp:100
void setSize(int w, int h)
Definition: main.cpp:104
int steps[2]
Definition: main.h:51
TH1 * h
Definition: legend2.C:5
QImage m_image
Definition: main.h:68
float m_height
Definition: main.h:67
void createImage()
Definition: main.cpp:413
int it[2]
Definition: main.h:52
int green[2]
Definition: main.h:49
ProgressWriter()
Definition: main.cpp:49
ProgressWriter m_progress
Definition: main.h:70
int blue[2]
Definition: main.h:50
SVector< double, 2 > v
Definition: Dict.h:5
Options m_opt
Definition: main.h:63
int red[2]
Definition: main.h:48
float m_y
Definition: main.h:65
Definition: main.h:43
QTextStream m_out
Definition: main.h:40
float m_x
Definition: main.h:64
void done()
Definition: main.cpp:93
void setOptions(Options o)
Definition: main.h:57
void setFilename(const QString &)
Definition: main.cpp:115
float m_width
Definition: main.h:66
QString m_filename
Definition: main.h:69