|
ACF $AcfVersion:0$
|
#include <TViewExtenderCompBase.h>
Public Types | |
| typedef Base | BaseClass |
Public Types inherited from iqt2d::IViewExtender | |
| enum | SceneFlags { SF_BACKGROUND = 1 , SF_DIRECT = 2 } |
| Standard flags for items . More... | |
Public Member Functions | |
| TViewExtenderCompBase () | |
| virtual void | AddItemsToScene (IViewProvider *providerPtr, int flags) override |
| Called when items should be added to specified scene. | |
| virtual void | RemoveItemsFromScene (IViewProvider *providerPtr) override |
| Called when items should be removed from specified scene. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Types | |
| enum | ExtenderMode { EM_COMBINE , EM_SLAVE_DIRECT_ONLY , EM_OWN_SHAPES_INDIRECT , EM_SLAVE_DIRECT_ONLY_OWN_SHAPES_INDIRECT } |
| typedef istd::TPointerVector< iview::IShape > | Shapes |
| typedef QMap< IViewProvider *, Shapes > | ShapesMap |
Protected Member Functions | |
| bool | IsViewIdSupported (int viewId) const |
| const ShapesMap & | GetShapesMap () const |
| void | UpdateAllViews () |
It calls Update for all used views. | |
| virtual void | CreateShapes (int viewId, Shapes &result)=0 |
| Create shapes for the view. | |
Definition at line 21 of file TViewExtenderCompBase.h.
| typedef Base iqt2d::TViewExtenderCompBase< Base >::BaseClass |
Definition at line 24 of file TViewExtenderCompBase.h.
|
protected |
Definition at line 48 of file TViewExtenderCompBase.h.
|
protected |
Definition at line 49 of file TViewExtenderCompBase.h.
|
protected |
| Enumerator | |
|---|---|
| EM_COMBINE | |
| EM_SLAVE_DIRECT_ONLY | |
| EM_OWN_SHAPES_INDIRECT | |
| EM_SLAVE_DIRECT_ONLY_OWN_SHAPES_INDIRECT | |
Definition at line 40 of file TViewExtenderCompBase.h.
| iqt2d::TViewExtenderCompBase< Base >::TViewExtenderCompBase | ( | ) |
Definition at line 79 of file TViewExtenderCompBase.h.
|
overridevirtual |
Called when items should be added to specified scene.
Implements iqt2d::IViewExtender.
Definition at line 88 of file TViewExtenderCompBase.h.
References iview::CShapeBase::AssignToLayer(), iview::IShapeView::ConnectShape(), istd::TPointerVector< Pointer, AccessAdapter >::GetAt(), istd::TPointerVector< Pointer, AccessAdapter >::GetCount(), iview::IShape::GetLayerType(), iqt2d::IViewProvider::GetView(), iqt2d::IViewProvider::GetViewId(), iview::IViewLayer::LT_BACKGROUND, iview::IViewLayer::LT_INACTIVE, and NULL.
|
protectedpure virtual |
|
protected |
Definition at line 209 of file TViewExtenderCompBase.h.
|
protected |
Definition at line 190 of file TViewExtenderCompBase.h.
|
overridevirtual |
Called when items should be removed from specified scene.
Implements iqt2d::IViewExtender.
Definition at line 156 of file TViewExtenderCompBase.h.
References iview::IShapeObserver::DisconnectShape(), istd::TPointerVector< Pointer, AccessAdapter >::GetAt(), istd::TPointerVector< Pointer, AccessAdapter >::GetCount(), iqt2d::IViewProvider::GetView(), and NULL.
|
protected |
It calls Update for all used views.
Definition at line 216 of file TViewExtenderCompBase.h.
References iqt2d::IViewProvider::GetView(), NULL, and iview::IShapeView::Update().