![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
Simple shape factory for common 2D-objects. More...
#include <CSimpleShapeFactoryComp.h>
Public Types | |
| typedef icomp::CComponentBase | BaseClass |
Public Member Functions | |
| std::unique_ptr< iview::IShape > | CreateShape (const istd::IChangeable *objectPtr, bool connectToModel=false) const override |
Create a graphical representation of the given 2D-object object. | |
Public Member Functions inherited from icomp::CComponentBase | |
| CComponentBase () | |
| Create component and assign it to specific context. | |
| CComponentBase (const CComponentBase &)=delete | |
| CComponentBase & | operator= (const CComponentBase &)=delete |
| virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
| Get parent of this component. | |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
| Get access to specified component interface. | |
| virtual const IComponentContext * | GetComponentContext () const |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
| Set component context of this component. | |
Public Member Functions inherited from icomp::IComponent | |
Public Member Functions inherited from iview::IShapeFactory | |
Protected Member Functions | |
| virtual std::unique_ptr< IShape > | CreateShapeInstance (const istd::IChangeable &object) const |
Protected Member Functions inherited from icomp::CComponentBase | |
| bool | IsComponentActive () const |
| Check if component is active. | |
| virtual void | OnComponentCreated () |
| virtual void | OnComponentDestroyed () |
| virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
| Get access to static info of this component. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from icomp::CComponentBase | |
| static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
| static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
Simple shape factory for common 2D-objects.
Definition at line 24 of file CSimpleShapeFactoryComp.h.
Definition at line 29 of file CSimpleShapeFactoryComp.h.
|
overridevirtual |
Create a graphical representation of the given 2D-object object.
If \connectModel is enabled, the created shape will be connected to the object's data model. If connection has failed, then no shape will be returned. The method returns nullptr if the shape could not be created.
| objectPtr | Object for which the shape will be created. If it is nullptr, this will be anonymous. It is declared as const, but for attachement to model this const will be removed. |
| connectToModel | If this flag is enabled, the shape will be attached to model of object using observer/observable mechanism. |
Implements iview::IShapeFactory.
|
protectedvirtual |
© Witold Gantzke and Kirill Lepskiy