|
ACF $AcfVersion:0$
|
Interface for creation of visualization shapes of some geometrical object. More...
#include <IShapeFactory.h>
Public Member Functions | |
| virtual IShape * | CreateShape (const istd::IChangeable *objectPtr, bool connectToModel=false) const =0 |
Create a graphical representation of the given 2D-object object. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Interface for creation of visualization shapes of some geometrical object.
Definition at line 18 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 NULL if the shape could not be created.
| objectPtr | Object 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. |
| connectToModel | If this flag is enabled, the shape will be attached to model of object using observer/observable mechanism. |
Implemented in iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqtprm::CComposedParamsSetGuiComp, and iview::CSimpleShapeFactoryComp.