summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/examples/enrichments/src/enrichments.h
blob: 2a47968d98acebcc2fe108404b61ddbef5bf87be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef enrichments_h__2004_02_25_13_58_begin_guarded_code
#define enrichments_h__2004_02_25_13_58_begin_guarded_code

#include "qwt3d_plot.h"


class Bar : public Qwt3D::VertexEnrichment
{
public:
  Bar();
  Bar(double rad, double level);

  Qwt3D::Enrichment* clone() const {return new Bar(*this);}
  
  void configure(double rad, double level);
  void drawBegin();
  void drawEnd();
  void draw(Qwt3D::Triple const&);

private:
  double level_, radius_;
  double diag_;
};

class  Label3D
{
public:
  void draw(Qwt3D::Triple const&, double w, double h);
};

#endif