Design Patterns
text_shape_class_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_CLASS_ADAPTER_H_
7 #define STRUCTURAL_ADAPTER_TEXT_SHAPE_CLASS_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:
19  explicit TextShapeClassAdapter(const std::string& text);
21 
22  virtual void BoundingBox(commons::Point<float>& bottom_left, commons::Point<float>& top_right) const override;
23 
24  virtual bool IsEmpty() const override;
25 };
26 }
27 }
28 
29 #endif
30 
Definition: shape_interface.h:11
Definition: text_view.h:17
Definition: text_shape_class_adapter.h:16
Definition: shape_interface.h:15
virtual void BoundingBox(commons::Point< float > &bottom_left, commons::Point< float > &top_right) const override
Definition: text_shape_class_adapter.cc:16
TextShapeClassAdapter()
Definition: text_shape_class_adapter.cc:14
virtual bool IsEmpty() const override
Definition: text_shape_class_adapter.cc:27