TBTK
Drawable.h
Go to the documentation of this file.
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 
23 #ifndef COM_DAFER45_TBTK_DRAWABLE
24 #define COM_DAFER45_TBTK_DRAWABLE
25 
26 #include "TBTK/PlotCanvas.h"
27 
28 #include <opencv2/core/core.hpp>
29 
30 namespace TBTK{
31 namespace Plot{
32 
33 class Plotter;
34 
35 class Drawable{
36 public:
38  Drawable();
39 
41  virtual ~Drawable();
42 
44  virtual void draw(PlotCanvas &canvas) = 0;
45 
47  virtual double getMinX() const = 0;
48 
50  virtual double getMaxX() const = 0;
51 
53  virtual double getMinY() const = 0;
54 
56  virtual double getMaxY() const = 0;
57 private:
58 };
59 
61 }
62 
64 }
65 
66 }; //End namespace Plot
67 }; //End namespace TBTK
68 
69 #endif
Drawable()
Definition: Drawable.h:60
virtual double getMinY() const =0
Definition: Drawable.h:35
virtual ~Drawable()
Definition: Drawable.h:63
virtual double getMaxY() const =0
virtual void draw(PlotCanvas &canvas)=0
Definition: PlotCanvas.h:36
virtual double getMinX() const =0
Definition: ModelFactory.h:35
virtual double getMaxX() const =0