Ardour  8.7-15-gadf511264b
poly_line.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Carl Hetherington <carl@carlh.net>
3  * Copyright (C) 2013-2014 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2015-2016 Robin Gareus <robin@gareus.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #ifndef __CANVAS_POLY_LINE_H__
22 #define __CANVAS_POLY_LINE_H__
23 
24 #include "canvas/outline.h"
25 #include "canvas/poly_item.h"
26 #include "canvas/visibility.h"
27 
28 namespace ArdourCanvas {
29 
31 {
32 public:
35 
36  void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
37 
38  virtual void set_steps (Points const &, bool stepped);
39  virtual void compute_bounding_box () const;
40 
41  bool covers (Duple const &) const;
42 
48  void set_covers_threshold (double);
49 
50  void set_fill_y1 (double);
51 
52 private:
53  double _threshold;
54  double _y1;
55 };
56 
57 }
58 
59 #endif
#define LIBCANVAS_API
virtual void set_steps(Points const &, bool stepped)
bool covers(Duple const &) const
virtual void compute_bounding_box() const
void render(Rect const &area, Cairo::RefPtr< Cairo::Context >) const
void set_fill_y1(double)
void set_covers_threshold(double)
std::vector< Duple > Points