Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
iqt2d::TViewExtenderCompBase< Base > Class Template Referenceabstract

#include <TViewExtenderCompBase.h>

Inheritance diagram for iqt2d::TViewExtenderCompBase< Base >:
iqt2d::IViewExtender istd::IPolymorphic

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)
 Called when items should be added to specified scene. More...
 
virtual void RemoveItemsFromScene (IViewProvider *providerPtr)
 Called when items should be removed from specified scene. More...
 
- 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 ShapesMapGetShapesMap () const
 
void UpdateAllViews ()
 It calls Update for all used views. More...
 
virtual void CreateShapes (int viewId, Shapes &result)=0
 Create shapes for the view. More...
 

Detailed Description

template<class Base>
class iqt2d::TViewExtenderCompBase< Base >

Definition at line 20 of file TViewExtenderCompBase.h.

Member Typedef Documentation

template<class Base>
typedef Base iqt2d::TViewExtenderCompBase< Base >::BaseClass

Definition at line 23 of file TViewExtenderCompBase.h.

template<class Base>
typedef istd::TPointerVector<iview::IShape> iqt2d::TViewExtenderCompBase< Base >::Shapes
protected

Definition at line 47 of file TViewExtenderCompBase.h.

template<class Base>
typedef QMap<IViewProvider*, Shapes> iqt2d::TViewExtenderCompBase< Base >::ShapesMap
protected

Definition at line 48 of file TViewExtenderCompBase.h.

Member Enumeration Documentation

template<class Base>
enum iqt2d::TViewExtenderCompBase::ExtenderMode
protected
Enumerator
EM_COMBINE 
EM_SLAVE_DIRECT_ONLY 
EM_OWN_SHAPES_INDIRECT 
EM_SLAVE_DIRECT_ONLY_OWN_SHAPES_INDIRECT 

Definition at line 39 of file TViewExtenderCompBase.h.

Constructor & Destructor Documentation

template<class Base >
iqt2d::TViewExtenderCompBase< Base >::TViewExtenderCompBase ( )

Definition at line 78 of file TViewExtenderCompBase.h.

Member Function Documentation

template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::AddItemsToScene ( IViewProvider providerPtr,
int  flags 
)
virtual
template<class Base>
virtual void iqt2d::TViewExtenderCompBase< Base >::CreateShapes ( int  viewId,
Shapes result 
)
protectedpure virtual

Create shapes for the view.

Parameters

Implemented in iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >.

template<class Base >
const TViewExtenderCompBase< Base >::ShapesMap & iqt2d::TViewExtenderCompBase< Base >::GetShapesMap ( ) const
protected

Definition at line 208 of file TViewExtenderCompBase.h.

template<class Base >
bool iqt2d::TViewExtenderCompBase< Base >::IsViewIdSupported ( int  viewId) const
protected

Definition at line 189 of file TViewExtenderCompBase.h.

template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::RemoveItemsFromScene ( IViewProvider providerPtr)
virtual
template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::UpdateAllViews ( )
protected

It calls Update for all used views.

Definition at line 215 of file TViewExtenderCompBase.h.

References iqt2d::IViewProvider::GetView(), NULL, and iview::IShapeView::Update().


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy