ICF 3.0.5.47
Technical documentation of ICF Libraries
IVisualizable.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iview_IVisualisable_included
7#define iview_IVisualisable_included
8
9
10#include <istd/IPolymorphic.h>
11
12#include <iview/iview.h>
13
14
15class QPainter;
16
17
18namespace iview
19{
20
21
22class IDisplay;
23
24
25class IVisualizable: virtual public istd::IPolymorphic
26{
27public:
31 virtual bool IsVisible() const = 0;
32
36 virtual bool IsDisplayAccepted(const IDisplay& display) const = 0;
37
43 virtual void OnDisplayConnected(IDisplay* displayPtr) = 0;
44
50 virtual void OnDisplayDisconnected(IDisplay* displayPtr) = 0;
51
55 virtual void Draw(QPainter& drawContext) const = 0;
56
62 virtual bool OnDisplayChanged(const istd::IChangeable::ChangeSet& changeSet) = 0;
63};
64
65
66} // namespace iview
67
68
69#endif // !iview_IVisualisable_included
70
71
Set of change flags (its IDs).
Definition IChangeable.h:38
virtual void Draw(QPainter &drawContext) const =0
Draw this shape using draw context.
virtual bool IsVisible() const =0
Check, if this object is visible.
virtual void OnDisplayConnected(IDisplay *displayPtr)=0
Called after display is connected.
virtual bool IsDisplayAccepted(const IDisplay &display) const =0
Check if this object can be connected to this display.
virtual void OnDisplayDisconnected(IDisplay *displayPtr)=0
Called after display is disconnected.
virtual bool OnDisplayChanged(const istd::IChangeable::ChangeSet &changeSet)=0
It informs about changes in display.
In this library is defined 2D view concept and standard visualisation objects.

© Witold Gantzke and Kirill Lepskiy