ROOT
6.06/08
Reference Guide
math
vc
examples
buddhabrot
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
32
class
ProgressWriter
33
{
34
public
:
35
ProgressWriter
();
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
:
63
Options
m_opt
;
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
;
70
ProgressWriter
m_progress
;
71
};
72
#endif // MAIN_H
ProgressWriter::setValue
void setValue(float v)
Definition:
main.cpp:54
h
TH1 * h
Definition:
legend2.C:5
Baker::m_image
QImage m_image
Definition:
main.h:68
Baker::m_height
float m_height
Definition:
main.h:67
ProgressWriter::ProgressWriter
ProgressWriter()
Definition:
main.cpp:49
Baker::m_progress
ProgressWriter m_progress
Definition:
main.h:70
v
SVector< double, 2 > v
Definition:
Dict.h:5
Baker::m_opt
Options m_opt
Definition:
main.h:63
Baker::m_y
float m_y
Definition:
main.h:65
Baker::Options
Definition:
main.h:46
Baker
Definition:
main.h:43
ProgressWriter::m_out
QTextStream m_out
Definition:
main.h:40
Baker::m_x
float m_x
Definition:
main.h:64
ProgressWriter
Definition:
main.h:32
ProgressWriter::done
void done()
Definition:
main.cpp:93
Baker::setOptions
void setOptions(Options o)
Definition:
main.h:57
Baker::m_width
float m_width
Definition:
main.h:66
Baker::m_filename
QString m_filename
Definition:
main.h:69