IShape.h
Go to the documentation of this file.
1 #ifndef iview_IShape_included
2 #define iview_IShape_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <imod/IModel.h>
10 #include <imod/IObserver.h>
11 #include <i2d/CRect.h>
12 #include <iview/IVisualizable.h>
13 #include <iview/ITouchable.h>
14 
15 
16 namespace iview
17 {
18 
19 
20 class IColorSchema;
21 
22 
27 class IShape:
28  virtual public imod::IObserver,
29  virtual public IVisualizable,
30  virtual public ITouchable
31 {
32 public:
37  {
38  CF_CALIB = 0x3663adf
39  };
40 
45  virtual int GetLayerType() const = 0;
46 
53  virtual i2d::CRect GetBoundingBox() const = 0;
54 
58  virtual void SetVisible(bool state = true) = 0;
59 
63  virtual const iview::IColorSchema* GetUserColorSchema() const = 0;
67  virtual void SetUserColorSchema(const IColorSchema* schemaPtr) = 0;
68 
72  virtual void SetDefaultDescription(const QString& description) = 0;
73 };
74 
75 
76 } // namespace iview
77 
78 
79 #endif // !iview_IShape_included
80 
81 
virtual void SetUserColorSchema(const IColorSchema *schemaPtr)=0
Set color schema to draw shape.
Simple rectangle with integer bounds.
Definition: CRect.h:21
virtual i2d::CRect GetBoundingBox() const =0
Return bounding box in client window coordinates.
Common interface for all display console shapes.
Definition: IShape.h:27
virtual void SetVisible(bool state=true)=0
Make shape to be visible or not.
virtual void SetDefaultDescription(const QString &description)=0
Set default description will be used to display on console.
This interface describes all untransparent GUI objects, which can be touched.
Definition: ITouchable.h:17
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Definition: IObserver.h:24
ChangeFlags
Data model change notification flags.
Definition: IShape.h:36
Defines set of standard pens, brushes and simple management of unions.
Definition: IColorSchema.h:28
virtual const iview::IColorSchema * GetUserColorSchema() const =0
Get color schema from view or user defined.
virtual int GetLayerType() const =0
Get layer type of this shape object.

© 2007-2017 Witold Gantzke and Kirill Lepskiy