Design Patterns
text_shape_object_adapter.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_ADAPTER_TEXT_SHAPE_OBJECT_ADAPTER_H_
7 #define STRUCTURAL_ADAPTER_TEXT_SHAPE_OBJECT_ADAPTER_H_
8 
9 #include "shape_interface.h"
10 #include "text_view.h"
11 
12 namespace structural
13 {
14 namespace adapter
15 {
17 {
18  public:
20 
21  virtual void BoundingBox(commons::Point<float>& bottom_left, commons::Point<float>& top_right) const override;
22 
23  virtual bool IsEmpty() const;
24 
25  private:
26  TextView* text_view_;
27 };
28 }
29 }
30 
31 #endif
32 
virtual void BoundingBox(commons::Point< float > &bottom_left, commons::Point< float > &top_right) const override
Definition: text_shape_object_adapter.cc:14
Definition: shape_interface.h:11
Definition: text_view.h:17
Definition: shape_interface.h:15
Definition: text_shape_object_adapter.h:16
virtual bool IsEmpty() const
Definition: text_shape_object_adapter.cc:25
TextShapeObjectAdapter(TextView *)
Definition: text_shape_object_adapter.cc:12