ICF 3.0.5.47
Technical documentation of ICF Libraries
iview::IShapeFactory Class Referenceabstract

Interface for creation of visualization shapes of some geometrical object. More...

#include <IShapeFactory.h>

Inheritance diagram for iview::IShapeFactory:
Collaboration diagram for iview::IShapeFactory:

Public Member Functions

virtual std::unique_ptr< IShapeCreateShape (const istd::IChangeable *objectPtr, bool connectToModel=false) const =0
 Create a graphical representation of the given 2D-object object.
 

Detailed Description

Interface for creation of visualization shapes of some geometrical object.

Definition at line 23 of file IShapeFactory.h.

Member Function Documentation

◆ CreateShape()

virtual std::unique_ptr< IShape > iview::IShapeFactory::CreateShape ( const istd::IChangeable * objectPtr,
bool connectToModel = false ) const
pure virtual

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.

Parameters
objectPtrObject 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.
connectToModelIf this flag is enabled, the shape will be attached to model of object using observer/observable mechanism.

Implemented in i2dgui::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iprmgui::CComposedParamsSetGuiComp, and iview::CSimpleShapeFactoryComp.

Referenced by iinspgui::TResultShapeCreatorWrap< Base >::CreateResultShape().


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

© Witold Gantzke and Kirill Lepskiy