QtiPlot  0.9.8.2
Bar.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : Bar.h
3  Project : QtiPlot
4  --------------------------------------------------------------------
5  Copyright : (C) 2006 by Ion Vasilief
6  Email (use @ for *) : ion_vasilief*yahoo.fr
7  Description : 3D bars (modifed enrichment from QwtPlot3D)
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 BARS_H
30 #define BARS_H
31 
32 #include <qwt3d_plot.h>
33 
35 class Bar : public Qwt3D::VertexEnrichment
36 {
37 public:
38  Bar();
39  Bar(double rad, bool lines = true, bool filled = true, bool smooth = true);
40 
41  Qwt3D::Enrichment* clone() const {return new Bar(*this);}
42 
43  void configure(double rad, bool lines = true, bool filled = true, bool smooth = true);
44  void drawBegin();
45  void drawEnd();
46  void draw(Qwt3D::Triple const&);
47 
48 private:
49  double radius_;
50  double diag_;
51  bool d_smooth;
54 };
55 
56 
57 #endif
void drawBegin()
Definition: Bar.cpp:63
double diag_
Definition: Bar.h:50
bool d_filled_bars
Definition: Bar.h:53
3D bars (modifed enrichment from QwtPlot3D)
Definition: Bar.h:35
Qwt3D::Enrichment * clone() const
Definition: Bar.h:41
bool d_draw_lines
Definition: Bar.h:52
bool d_smooth
Definition: Bar.h:51
void configure(double rad, bool lines=true, bool filled=true, bool smooth=true)
Definition: Bar.cpp:54
Bar()
Definition: Bar.cpp:44
double radius_
Definition: Bar.h:49
void drawEnd()
Definition: Bar.cpp:76
void draw(Qwt3D::Triple const &)
Definition: Bar.cpp:80