Public Types | Public Member Functions | List of all members
icmpstr::ISceneProvider Class Referenceabstract

Interface for GUI objects managing scene. More...

#include <ISceneProvider.h>

Inheritance diagram for icmpstr::ISceneProvider:
istd::IPolymorphic icmpstr::CSceneProviderGuiComp

Public Types

enum  SceneFlags { SF_FIXED_SIZE = 1, SF_ALIGNED = 2 }
 

Public Member Functions

virtual int GetSceneId () const =0
 Get ID indentifing this scene. More...
 
virtual QGraphicsScene * GetScene () const =0
 Called when items should be removed from specified scene. More...
 
virtual bool GetSceneAlignment (double &distance) const =0
 Get parameters of grid alignment. More...
 
virtual int GetSceneFlags () const =0
 Get scene's paremeter info. More...
 

Detailed Description

Interface for GUI objects managing scene.

Definition at line 27 of file ISceneProvider.h.

Member Enumeration Documentation

Enumerator
SF_FIXED_SIZE 

Scene has a fixed size and cannot be resized by user.

SF_ALIGNED 

Scene has a grid alignment.

See Also
GetSceneAlignment

Definition at line 31 of file ISceneProvider.h.

Member Function Documentation

virtual QGraphicsScene* icmpstr::ISceneProvider::GetScene ( ) const
pure virtual

Called when items should be removed from specified scene.

Implemented in icmpstr::CSceneProviderGuiComp.

virtual bool icmpstr::ISceneProvider::GetSceneAlignment ( double &  distance) const
pure virtual

Get parameters of grid alignment.

Parameters
distancedistance between nearest alignment positions.
Returns
true if grid alignment is enabled.
See Also
SceneFlags

Implemented in icmpstr::CSceneProviderGuiComp.

virtual int icmpstr::ISceneProvider::GetSceneFlags ( ) const
pure virtual

Get scene's paremeter info.

See Also
SceneFlags

Implemented in icmpstr::CSceneProviderGuiComp.

virtual int icmpstr::ISceneProvider::GetSceneId ( ) const
pure virtual

Get ID indentifing this scene.

Typically this ID is 0 for first scene, 1 for the second etc.

Implemented in icmpstr::CSceneProviderGuiComp.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy