TBTK
Need a break? Support the development by playing Polarity Puzzles
Drawable.h
1 /* Copyright 2017 Kristofer Björnson
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
17 
24 #ifndef COM_DAFER45_TBTK_PLOT_DRAWABLE
25 #define COM_DAFER45_TBTK_PLOT_DRAWABLE
26 
27 #include "TBTK/Plot/PlotCanvas.h"
28 
29 #include <opencv2/core/core.hpp>
30 
31 namespace TBTK{
32 namespace Plot{
33 
34 class Plotter;
35 
36 class Drawable{
37 public:
39  Drawable();
40 
42  virtual ~Drawable();
43 
45  virtual void draw(PlotCanvas &canvas) = 0;
46 
48  virtual double getMinX() const = 0;
49 
51  virtual double getMaxX() const = 0;
52 
54  virtual double getMinY() const = 0;
55 
57  virtual double getMaxY() const = 0;
58 private:
59 };
60 
61 inline Drawable::Drawable(){
62 }
63 
64 inline Drawable::~Drawable(){
65 }
66 
67 }; //End namespace Plot
68 }; //End namespace TBTK
69 
70 #endif
71 
Definition: Boolean.h:32