![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Interface for creation of visualization shapes of some geometrical object. More...
#include <IShapeFactory.h>
Public Member Functions | |
virtual std::unique_ptr< IShape > | CreateShape (const istd::IChangeable *objectPtr, bool connectToModel=false) const =0 |
Create a graphical representation of the given 2D-object object . | |
Interface for creation of visualization shapes of some geometrical object.
Definition at line 23 of file IShapeFactory.h.
|
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.
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. |
Implemented in i2dgui::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iprmgui::CComposedParamsSetGuiComp, and iview::CSimpleShapeFactoryComp.
Referenced by iinspgui::TResultShapeCreatorWrap< Base >::CreateResultShape().
© Witold Gantzke and Kirill Lepskiy