|
ACF $AcfVersion:0$
|
#include <TShapeParamsGuiCompBase.h>
Public Types | |
| typedef iqt2d::TViewExtenderCompBase< iqtgui::TWheelFocusEvent< iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel > > > | BaseClass |
Public Types inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent > | |
| typedef ObserverComponent | BaseClass |
Public Types inherited from iqt2d::IViewExtender | |
| enum | SceneFlags { SF_BACKGROUND = 1 , SF_DIRECT = 2 } |
| Standard flags for items . More... | |
Public Member Functions | |
| TShapeParamsGuiCompBase () | |
| virtual bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override |
| virtual bool | OnModelDetached (imod::IModel *modelPtr) override |
| virtual 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 iqt2d::IViewExtender | |
| virtual void | AddItemsToScene (IViewProvider *providerPtr, int flags)=0 |
| Called when items should be added to specified scene. | |
| virtual void | RemoveItemsFromScene (IViewProvider *providerPtr)=0 |
| Called when items should be removed from specified scene. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Types | |
| typedef BaseClass::Shapes | Shapes |
| typedef BaseClass::ShapesMap | ShapesMap |
Protected Member Functions | |
| QString | GetUnitName () const |
| bool | IsPositionFixed () const |
| bool | IsToolsMenuAllowed () const |
| QToolBar * | GetToolBar () const |
| virtual void | CreateToolsMenu (QAbstractButton *buttonPtr) |
| Maintenance of the tools actions. | |
| virtual bool | PopulateActions (QWidget &host, imod::IModel *modelPtr) |
| virtual void | OnModelAttachedAndGuiShown (imod::IModel *modelPtr) |
| virtual void | OnModelDetachedOrGuiHidden (imod::IModel *modelPtr) |
| virtual void | OnActionTriggered (QAction *actionPtr) |
| virtual iview::CInteractiveShapeBase * | CreateShapeInstance () const |
| Simple creation of shape instance. | |
| virtual void | CreateShapes (int sceneId, Shapes &result) override |
| virtual void | OnGuiDestroyed () override |
| virtual void | OnGuiShown () override |
| virtual void | OnGuiHidden () override |
| virtual void | OnGuiModelAttached () override |
| virtual void | OnGuiModelDetached () override |
Protected Member Functions inherited from ibase::TModelObserverCompBaseWrap< ObserverComponent > | |
| virtual void | OnComponentCreated () override |
| virtual void | OnComponentDestroyed () override |
Definition at line 31 of file TShapeParamsGuiCompBase.h.
| typedef iqt2d::TViewExtenderCompBase< iqtgui::TWheelFocusEvent< iqtgui::TDesignerGuiObserverCompBase<Ui, ShapeModel> > > iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::BaseClass |
Definition at line 40 of file TShapeParamsGuiCompBase.h.
|
protected |
Definition at line 63 of file TShapeParamsGuiCompBase.h.
|
protected |
Definition at line 64 of file TShapeParamsGuiCompBase.h.
| iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::TShapeParamsGuiCompBase | ( | ) |
Definition at line 117 of file TShapeParamsGuiCompBase.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 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. |
Implements iview::IShapeFactory.
Definition at line 187 of file TShapeParamsGuiCompBase.h.
References iview::CShapeBase::AssignToLayer(), imod::IModel::AttachObserver(), iview::IViewLayer::LT_INACTIVE, NULL, iview::CShapeBase::SetDefaultDescription(), iview::CInteractiveShapeBase::SetEditablePosition(), iview::CShapeBase::SetUserColorSchema(), and iview::CShapeBase::SetVisible().
|
protectedvirtual |
Simple creation of shape instance.
Reimplemented in iqt2d::CPolylineParamsGuiComp.
Definition at line 275 of file TShapeParamsGuiCompBase.h.
|
overrideprotectedvirtual |
Definition at line 403 of file TShapeParamsGuiCompBase.h.
References NULL.
|
protectedvirtual |
Maintenance of the tools actions.
Reimplemented in iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel, CircleBasedGui >, iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle >, and iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle >.
Definition at line 282 of file TShapeParamsGuiCompBase.h.
References NULL.
|
protected |
Definition at line 240 of file TShapeParamsGuiCompBase.h.
References NULL.
|
protected |
Definition at line 247 of file TShapeParamsGuiCompBase.h.
References i2d::ICalibration2d::GetArgumentUnitInfo(), i2d::ICalibrationProvider::GetCalibration(), imath::IUnitInfo::GetUnitName(), and NULL.
|
protected |
Definition at line 222 of file TShapeParamsGuiCompBase.h.
|
protected |
Definition at line 233 of file TShapeParamsGuiCompBase.h.
|
protectedvirtual |
Reimplemented in iqt2d::TPolygonBasedParamsGuiComp< iview::CPolygonShape, i2d::CPolygon >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline >, and iqt2d::TPolygonBasedParamsGuiComp< iview::CTubePolylineShape, i2d::CTubePolyline >.
Definition at line 395 of file TShapeParamsGuiCompBase.h.
|
overrideprotectedvirtual |
Definition at line 415 of file TShapeParamsGuiCompBase.h.
References NULL.
|
overrideprotectedvirtual |
Definition at line 438 of file TShapeParamsGuiCompBase.h.
|
overrideprotectedvirtual |
Reimplemented in iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel, CircleBasedGui >, iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle >, and iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle >.
Definition at line 449 of file TShapeParamsGuiCompBase.h.
|
overrideprotectedvirtual |
Definition at line 462 of file TShapeParamsGuiCompBase.h.
|
overrideprotectedvirtual |
Definition at line 429 of file TShapeParamsGuiCompBase.h.
|
overridevirtual |
Definition at line 127 of file TShapeParamsGuiCompBase.h.
References imod::IModel::AttachObserver(), and NULL.
|
protectedvirtual |
Definition at line 321 of file TShapeParamsGuiCompBase.h.
References NULL.
|
overridevirtual |
Definition at line 155 of file TShapeParamsGuiCompBase.h.
References imod::IModel::DetachObserver(), imod::IModel::IsAttached(), and NULL.
|
protectedvirtual |
Definition at line 372 of file TShapeParamsGuiCompBase.h.
References NULL.
|
protectedvirtual |
Reimplemented in iqt2d::COrientedCircleEditorComp, iqt2d::CPolylineParamsGuiComp, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolygonShape, i2d::CPolygon >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline >, and iqt2d::TPolygonBasedParamsGuiComp< iview::CTubePolylineShape, i2d::CTubePolyline >.
Definition at line 314 of file TShapeParamsGuiCompBase.h.