IVisualizable.h
Go to the documentation of this file.
1 #ifndef iview_IVisualisable_included
2 #define iview_IVisualisable_included
3 
4 
5 #include <istd/IPolymorphic.h>
6 
7 #include <iview/iview.h>
8 
9 
10 class QPainter;
11 
12 
13 namespace iview
14 {
15 
16 
17 class IDisplay;
18 
19 
20 class IVisualizable: virtual public istd::IPolymorphic
21 {
22 public:
26  virtual bool IsVisible() const = 0;
27 
31  virtual bool IsDisplayAccepted(const IDisplay& display) const = 0;
32 
38  virtual void OnConnectDisplay(IDisplay* displayPtr) = 0;
39 
45  virtual void OnDisconnectDisplay(IDisplay* displayPtr) = 0;
46 
50  virtual void Draw(QPainter& drawContext) const = 0;
51 
57  virtual bool OnDisplayChange(const istd::IChangeable::ChangeSet& changeSet) = 0;
58 };
59 
60 
61 } // namespace iview
62 
63 
64 #endif // !iview_IVisualisable_included
65 
66 
virtual void OnConnectDisplay(IDisplay *displayPtr)=0
Called after display is connected.
virtual void Draw(QPainter &drawContext) const =0
Draw this shape using draw context.
virtual void OnDisconnectDisplay(IDisplay *displayPtr)=0
Called after display is disconnected.
virtual bool OnDisplayChange(const istd::IChangeable::ChangeSet &changeSet)=0
It informs about changes in display.
virtual bool IsDisplayAccepted(const IDisplay &display) const =0
Check if this object can be connected to this display.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
virtual bool IsVisible() const =0
Check, if this object is visible.
Set of change flags (its IDs).
Definition: IChangeable.h:30

© 2007-2017 Witold Gantzke and Kirill Lepskiy