SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
PlotEnrichement.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : PlotEnrichement.h
3
Project : SciDAVis
4
--------------------------------------------------------------------
5
Copyright : (C) 2007 by Ion Vasilief, Knut Franke
6
Email (use @ for *) : ion_vasilief*yahoo.fr, knut.franke*gmx.de
7
Description : Abstract enrichement class for 2D Plots
8
9
***************************************************************************/
10
11
/***************************************************************************
12
* *
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
17
* *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
22
* *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
27
* *
28
***************************************************************************/
29
#ifndef PLOTENRICHEMENT_H
30
#define PLOTENRICHEMENT_H
31
32
#include <qwt_plot.h>
33
#include <qwt_plot_marker.h>
34
62
class
PlotEnrichement
:
public
QwtPlotMarker
63
{
64
public
:
65
PlotEnrichement
();
66
68
virtual
QRect
rect
()
const
{
return
QRect(
d_pos
,
d_size
);};
70
virtual
void
setRect
(
int
x,
int
y,
int
w,
int
h);
71
73
virtual
QwtDoubleRect
boundingRect
()
const
;
75
virtual
void
setBoundingRect
(
double
left,
double
top,
double
right
,
double
bottom
);
76
77
double
right
(){
return
d_x_right
;};
78
double
bottom
(){
return
d_y_bottom
;};
79
81
QPoint
origin
()
const
{
return
d_pos
; };
83
void
setOrigin
(
const
QPoint &p);
84
86
QSize
size
() {
return
d_size
;};
88
void
setSize
(
const
QSize&
size
);
89
90
virtual
void
updateBoundingRect
();
91
92
private
:
93
QRect
calculatePaintingRect
();
95
double
d_x_right
;
97
double
d_y_bottom
;
99
QPoint
d_pos
;
101
QSize
d_size
;
102
};
103
104
#endif
105
Generated by
1.8.1