ACF $AcfVersion:0$
Public Types | Public Member Functions | Protected Member Functions | List of all members
iview::CSimpleShapeFactoryComp Class Reference

Simple shape factory for common 2D-objects. More...

#include <CSimpleShapeFactoryComp.h>

Inheritance diagram for iview::CSimpleShapeFactoryComp:
icomp::CComponentBase iview::IShapeFactory icomp::IComponent istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 

Public Member Functions

virtual IShapeCreateShape (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.
 
virtual const icomp::IComponentGetParentComponent (bool ownerOnly=false) const override
 Get parent of this component.
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") override
 Get access to specified component interface.
 
virtual IComponentContextSharedPtr GetComponentContext () const override
 Get access to component context describing all application-specified component information loaded from components registry.
 
virtual void SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner) override
 Set component context of this component.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual CShapeBaseCreateShapeInstance (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 icomp::IRealComponentStaticInfoGetComponentStaticInfo () const =0
 Get access to static info of this component.
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const icomp::IRealComponentStaticInfoInitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Simple shape factory for common 2D-objects.

Definition at line 19 of file CSimpleShapeFactoryComp.h.

Member Typedef Documentation

◆ BaseClass

Definition at line 24 of file CSimpleShapeFactoryComp.h.

Member Function Documentation

◆ CreateShape()

virtual IShape * iview::CSimpleShapeFactoryComp::CreateShape ( const istd::IChangeable objectPtr,
bool  connectToModel = false 
) const
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 NULL if the shape could not be created.

Parameters
objectPtrObject for which the shape will be created. If it is NULL, this will be anonymous. It is declared as const, but for attachement to model this const will be removed.
connectToModelIf this flag is enabled, the shape will be attached to model of object using observer/observable mechanism.

Implements iview::IShapeFactory.

◆ CreateShapeInstance()

virtual CShapeBase * iview::CSimpleShapeFactoryComp::CreateShapeInstance ( const istd::IChangeable object) const
protectedvirtual

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