Public Types | Public Member Functions | Protected Member Functions | List of all members
iqt2d::CSelectableSceneExtenderComp Class Reference

#include <CSelectableSceneExtenderComp.h>

Inheritance diagram for iqt2d::CSelectableSceneExtenderComp:
icomp::CComponentBase imod::TSingleModelObserverBase< iprm::ISelectionParam > iqt2d::IViewExtender icomp::IComponent imod::CSingleModelObserverBase istd::IPolymorphic istd::IPolymorphic imod::IObserver istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
typedef
imod::TSingleModelObserverBase
< iprm::ISelectionParam
BaseClass2
 
- Public Types inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
typedef CSingleModelObserverBase BaseClass
 
typedef iprm::ISelectionParam ModelType
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- Public Types inherited from iqt2d::IViewExtender
enum  SceneFlags { SF_BACKGROUND = 1, SF_DIRECT = 2 }
 Standard flags for items . More...
 

Public Member Functions

 CSelectableSceneExtenderComp ()
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 This call back function will be called, if an observable object is about to be attached. More...
 
virtual bool OnModelDetached (imod::IModel *modelPtr)
 This call back function will be called, if an observable object is about to be detached. More...
 
virtual void AddItemsToScene (iqt2d::IViewProvider *providerPtr, int flags)
 Called when items should be added to specified scene. More...
 
virtual void RemoveItemsFromScene (iqt2d::IViewProvider *providerPtr)
 Called when items should be removed from specified scene. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
 TSingleModelObserverBase ()
 
iprm::ISelectionParamGetObservedObject () const
 Get instance of observed object. More...
 
iprm::ISelectionParamGetObjectPtr () const
 Get instance of observed object. More...
 
bool AttachOrSetObject (iprm::ISelectionParam *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model. More...
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 This function will be called before update of the observer contents occures. More...
 

Protected Member Functions

void AttachCurrent ()
 
void DetachCurrent ()
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 This function will be called after update of the observer contents occures. More...
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< iprm::ISelectionParam >
virtual iprm::ISelectionParamCastFromModel (imod::IModel *modelPtr) const
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet)
 Called on update of observed model. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const
istd::IChangeable::ChangeSet 
s_undoChanges
 

Detailed Description

Definition at line 16 of file CSelectableSceneExtenderComp.h.

Member Typedef Documentation

Definition at line 22 of file CSelectableSceneExtenderComp.h.

Definition at line 23 of file CSelectableSceneExtenderComp.h.

Constructor & Destructor Documentation

iqt2d::CSelectableSceneExtenderComp::CSelectableSceneExtenderComp ( )

Member Function Documentation

virtual void iqt2d::CSelectableSceneExtenderComp::AddItemsToScene ( iqt2d::IViewProvider providerPtr,
int  flags 
)
virtual

Called when items should be added to specified scene.

Implements iqt2d::IViewExtender.

virtual void iqt2d::CSelectableSceneExtenderComp::AfterUpdate ( imod::IModel modelPtr,
const istd::IChangeable::ChangeSet changeSet 
)
protectedvirtual

This function will be called after update of the observer contents occures.

Reimplemented from imod::CSingleModelObserverBase.

void iqt2d::CSelectableSceneExtenderComp::AttachCurrent ( )
protected
void iqt2d::CSelectableSceneExtenderComp::DetachCurrent ( )
protected
virtual bool iqt2d::CSelectableSceneExtenderComp::OnModelAttached ( imod::IModel modelPtr,
istd::IChangeable::ChangeSet changeMask 
)
virtual

This call back function will be called, if an observable object is about to be attached.

This function returns a true, if observable object is accepted by the implementation logic of the observer, otherwise returns false.

Parameters
modelPtrpointer to model object being attached.
changeMaskoutput parameter returning set of change ID's will be accepted. returns a false.

Reimplemented from imod::TSingleModelObserverBase< iprm::ISelectionParam >.

virtual bool iqt2d::CSelectableSceneExtenderComp::OnModelDetached ( imod::IModel modelPtr)
virtual

This call back function will be called, if an observable object is about to be detached.

Reimplemented from imod::TSingleModelObserverBase< iprm::ISelectionParam >.

virtual void iqt2d::CSelectableSceneExtenderComp::RemoveItemsFromScene ( iqt2d::IViewProvider providerPtr)
virtual

Called when items should be removed from specified scene.

Implements iqt2d::IViewExtender.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy