Design Patterns
graphic_interface.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef STRUCTURAL_PROXY_GRAPHIC_H_
7 #define STRUCTURAL_PROXY_GRAPHIC_H_
8 
9 #include "event.h"
10 
11 #include "../commons/point.h"
12 
13 namespace structural
14 {
15 namespace proxy
16 {
18 {
19  public:
20  virtual ~GraphicInterface() { }
21 
22  virtual void Draw(const commons::Point<float>& at) = 0;
23  virtual void HandleMouse(Event& event) = 0;
24  virtual const commons::Point<float> &GetExtent() = 0;
25  virtual void Load(std::istream& from) = 0;
26  virtual void Save(std::ostream& to) = 0;
27 };
28 }
29 }
30 
31 #endif
32 
virtual void HandleMouse(Event &event)=0
Definition: shape_interface.h:11
Definition: graphic_interface.h:17
virtual ~GraphicInterface()
Definition: graphic_interface.h:20
virtual const commons::Point< float > & GetExtent()=0
Definition: event.h:13
virtual void Load(std::istream &from)=0
virtual void Save(std::ostream &to)=0
virtual void Draw(const commons::Point< float > &at)=0