ACF $AcfVersion:0$
Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel > Class Template Reference

#include <TShapeParamsGuiCompBase.h>

Inheritance diagram for iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >:
iqt2d::TViewExtenderCompBase< iqtgui::TWheelFocusEvent< iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel > > > iview::IShapeFactory iqtgui::TWheelFocusEvent< iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel > > iqt2d::IViewExtender istd::IPolymorphic iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel > istd::IPolymorphic ibase::TModelObserverCompBaseWrap< ObserverComponent > iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle > iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle > iqt2d::TPolygonBasedParamsGuiComp< iview::CPolygonShape, i2d::CPolygon > iqt2d::TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline > iqt2d::TPolygonBasedParamsGuiComp< iview::CTubePolylineShape, i2d::CTubePolyline > iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel, CircleBasedGui > iqt2d::CCircleParamsGuiComp iqt2d::COrientedCircleEditorComp iqt2d::CPolygonParamsGuiComp iqt2d::CPolylineParamsGuiComp iqt2d::CTubePolylineParamsGuiComp

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::IShapeCreateShape (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::CInteractiveShapeBaseCreateShapeInstance () 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
 

Detailed Description

template<class Ui, class Shape, class ShapeModel>
class iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >

Definition at line 31 of file TShapeParamsGuiCompBase.h.

Member Typedef Documentation

◆ BaseClass

template<class Ui , class Shape , class ShapeModel >
typedef iqt2d::TViewExtenderCompBase< iqtgui::TWheelFocusEvent< iqtgui::TDesignerGuiObserverCompBase<Ui, ShapeModel> > > iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::BaseClass

Definition at line 40 of file TShapeParamsGuiCompBase.h.

◆ Shapes

template<class Ui , class Shape , class ShapeModel >
typedef BaseClass::Shapes iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::Shapes
protected

Definition at line 63 of file TShapeParamsGuiCompBase.h.

◆ ShapesMap

template<class Ui , class Shape , class ShapeModel >
typedef BaseClass::ShapesMap iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::ShapesMap
protected

Definition at line 64 of file TShapeParamsGuiCompBase.h.

Constructor & Destructor Documentation

◆ TShapeParamsGuiCompBase()

template<class Ui , class Shape , class ShapeModel >
iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::TShapeParamsGuiCompBase ( )

Definition at line 117 of file TShapeParamsGuiCompBase.h.

Member Function Documentation

◆ CreateShape()

template<class Ui , class Shape , class ShapeModel >
iview::IShape * iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::CreateShape ( const istd::IChangeable objectPtr,
bool  connectToModel = false 
) const
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.

Parameters
objectPtrObject 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.
connectToModelIf 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().

◆ CreateShapeInstance()

template<class Ui , class Shape , class ShapeModel >
iview::CInteractiveShapeBase * iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::CreateShapeInstance ( ) const
protectedvirtual

Simple creation of shape instance.

Reimplemented in iqt2d::CPolylineParamsGuiComp.

Definition at line 275 of file TShapeParamsGuiCompBase.h.

◆ CreateShapes()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::CreateShapes ( int  sceneId,
Shapes result 
)
overrideprotectedvirtual

Definition at line 403 of file TShapeParamsGuiCompBase.h.

References NULL.

◆ CreateToolsMenu()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::CreateToolsMenu ( QAbstractButton *  buttonPtr)
protectedvirtual

◆ GetToolBar()

template<class Ui , class Shape , class ShapeModel >
QToolBar * iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::GetToolBar ( ) const
protected

Definition at line 240 of file TShapeParamsGuiCompBase.h.

References NULL.

◆ GetUnitName()

template<class Ui , class Shape , class ShapeModel >
QString iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::GetUnitName ( ) const
protected

◆ IsPositionFixed()

template<class Ui , class Shape , class ShapeModel >
bool iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::IsPositionFixed ( ) const
protected

Definition at line 222 of file TShapeParamsGuiCompBase.h.

◆ IsToolsMenuAllowed()

template<class Ui , class Shape , class ShapeModel >
bool iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::IsToolsMenuAllowed ( ) const
protected

Definition at line 233 of file TShapeParamsGuiCompBase.h.

◆ OnActionTriggered()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnActionTriggered ( QAction *  actionPtr)
protectedvirtual

◆ OnGuiDestroyed()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnGuiDestroyed ( )
overrideprotectedvirtual

Definition at line 415 of file TShapeParamsGuiCompBase.h.

References NULL.

◆ OnGuiHidden()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnGuiHidden ( )
overrideprotectedvirtual

Definition at line 438 of file TShapeParamsGuiCompBase.h.

◆ OnGuiModelAttached()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnGuiModelAttached ( )
overrideprotectedvirtual

◆ OnGuiModelDetached()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnGuiModelDetached ( )
overrideprotectedvirtual

Definition at line 462 of file TShapeParamsGuiCompBase.h.

◆ OnGuiShown()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnGuiShown ( )
overrideprotectedvirtual

Definition at line 429 of file TShapeParamsGuiCompBase.h.

◆ OnModelAttached()

template<class Ui , class Shape , class ShapeModel >
bool iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnModelAttached ( imod::IModel modelPtr,
istd::IChangeable::ChangeSet changeMask 
)
overridevirtual

Definition at line 127 of file TShapeParamsGuiCompBase.h.

References imod::IModel::AttachObserver(), and NULL.

◆ OnModelAttachedAndGuiShown()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnModelAttachedAndGuiShown ( imod::IModel modelPtr)
protectedvirtual

Definition at line 321 of file TShapeParamsGuiCompBase.h.

References NULL.

◆ OnModelDetached()

template<class Ui , class Shape , class ShapeModel >
bool iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnModelDetached ( imod::IModel modelPtr)
overridevirtual

◆ OnModelDetachedOrGuiHidden()

template<class Ui , class Shape , class ShapeModel >
void iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::OnModelDetachedOrGuiHidden ( imod::IModel modelPtr)
protectedvirtual

Definition at line 372 of file TShapeParamsGuiCompBase.h.

References NULL.

◆ PopulateActions()

template<class Ui , class Shape , class ShapeModel >
bool iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >::PopulateActions ( QWidget &  host,
imod::IModel modelPtr 
)
protectedvirtual

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