ACF $AcfVersion:0$
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 iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d > iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus > iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment > iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc > iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d > iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d > iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle > iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle > iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >

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::IShapeShapes
 
typedef QMap< IViewProvider *, ShapesShapesMap
 

Protected Member Functions

bool IsViewIdSupported (int viewId) const
 
const ShapesMapGetShapesMap () const
 
void UpdateAllViews ()
 It calls Update for all used views.
 
virtual void CreateShapes (int viewId, Shapes &result)=0
 Create shapes for the view.
 

Detailed Description

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

Definition at line 21 of file TViewExtenderCompBase.h.

Member Typedef Documentation

◆ BaseClass

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

Definition at line 24 of file TViewExtenderCompBase.h.

◆ Shapes

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

Definition at line 48 of file TViewExtenderCompBase.h.

◆ ShapesMap

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

Definition at line 49 of file TViewExtenderCompBase.h.

Member Enumeration Documentation

◆ ExtenderMode

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 40 of file TViewExtenderCompBase.h.

Constructor & Destructor Documentation

◆ TViewExtenderCompBase()

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

Definition at line 79 of file TViewExtenderCompBase.h.

Member Function Documentation

◆ AddItemsToScene()

template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::AddItemsToScene ( IViewProvider providerPtr,
int  flags 
)
overridevirtual

◆ CreateShapes()

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

Create shapes for the view.

Parameters

Implemented in iqt2d::CAffineTransformationParamsGuiComp.

◆ GetShapesMap()

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

Definition at line 209 of file TViewExtenderCompBase.h.

◆ IsViewIdSupported()

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

Definition at line 190 of file TViewExtenderCompBase.h.

◆ RemoveItemsFromScene()

template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::RemoveItemsFromScene ( IViewProvider providerPtr)
overridevirtual

◆ UpdateAllViews()

template<class Base >
void iqt2d::TViewExtenderCompBase< Base >::UpdateAllViews ( )
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().


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