ISceneProvider.h
Go to the documentation of this file.
1 #ifndef icmpstr_ISceneProvider_included
2 #define icmpstr_ISceneProvider_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QGraphicsScene>
9 #else
10 #include <QtGui/QGraphicsScene>
11 #endif
12 
13 // ACF includes
14 #include "istd/IPolymorphic.h"
15 
16 // ACF-Solutons includes
17 #include "icmpstr/icmpstr.h"
18 
19 
20 namespace icmpstr
21 {
22 
23 
27 class ISceneProvider: virtual public istd::IPolymorphic
28 {
29 public:
30 
32  {
37 
43  };
44 
45 
50  virtual int GetSceneId() const = 0;
51 
55  virtual QGraphicsScene* GetScene() const = 0;
56 
63  virtual bool GetSceneAlignment(double& distance) const = 0;
64 
69  virtual int GetSceneFlags() const = 0;
70 };
71 
72 
73 } // namespace icmpstr
74 
75 
76 #endif // !icmpstr_ISceneProvider_included
77 
78 
virtual int GetSceneId() const =0
Get ID indentifing this scene.
virtual bool GetSceneAlignment(double &distance) const =0
Get parameters of grid alignment.
virtual int GetSceneFlags() const =0
Get scene's paremeter info.
Interface for GUI objects managing scene.
virtual QGraphicsScene * GetScene() const =0
Called when items should be removed from specified scene.
Scene has a fixed size and cannot be resized by user.
Scene has a grid alignment.

© 2007-2011 Witold Gantzke and Kirill Lepskiy