ACF $AcfVersion:0$
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel > Class Template Reference

#include <TPolygonBasedParamsGuiComp.h>

Inheritance diagram for iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >:
iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel > iqt2d::TViewExtenderCompBase< Base > iview::IShapeFactory iqt2d::IViewExtender istd::IPolymorphic istd::IPolymorphic

Classes

class  TableModel
 

Public Types

enum  CellIndex { CI_X , CI_Y , CI_LAST = CI_Y }
 Cell index. More...
 
typedef iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel > BaseClass
 
- Public Types inherited from iqt2d::TViewExtenderCompBase< Base >
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

 TPolygonBasedParamsGuiComp ()
 
- Public Member Functions inherited from iqt2d::TViewExtenderCompBase< Base >
 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 ()
 
- Public Member Functions inherited from iview::IShapeFactory
virtual IShapeCreateShape (const istd::IChangeable *objectPtr, bool connectToModel=false) const =0
 Create a graphical representation of the given 2D-object object.
 

Protected Member Functions

QTableView * GetNodeTable ()
 Get the table with the node data.
 
virtual void OnInsertNode ()
 
virtual void OnRemoveNode ()
 
virtual void OnCopyData ()
 
virtual void OnPasteData ()
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual void OnGuiCreated () override
 
virtual void OnGuiRetranslate () override
 
virtual void OnGuiDesignChanged () override
 
virtual bool PopulateActions (QWidget &host, imod::IModel *modelPtr) override
 
virtual void OnActionTriggered (QAction *actionPtr) override
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet) override
 
- Protected Member Functions inherited from iqt2d::TViewExtenderCompBase< Base >
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.
 

Static Protected Member Functions

static bool SetValue (const QVariant &variant, double &result)
 
static QVariant GetValue (double value, int round=2)
 

Protected Attributes

QAction m_flipHorizontalAction
 
QAction m_flipVerticalAction
 
QAction m_rotateCwAction
 
QAction m_rotateCcwAction
 
QAction m_reversePolarityAction
 

Additional Inherited Members

- Protected Types inherited from iqt2d::TViewExtenderCompBase< Base >
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
 

Detailed Description

template<class PolygonBasedShape, class PolygonBasedModel>
class iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >

Definition at line 34 of file TPolygonBasedParamsGuiComp.h.

Member Typedef Documentation

◆ BaseClass

template<class PolygonBasedShape , class PolygonBasedModel >
typedef iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel> iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::BaseClass

Definition at line 65 of file TPolygonBasedParamsGuiComp.h.

Member Enumeration Documentation

◆ CellIndex

template<class PolygonBasedShape , class PolygonBasedModel >
enum iqt2d::TPolygonBasedParamsGuiComp::CellIndex

Cell index.

Enumerator
CI_X 

Index of the table cell for the X coordinate of the polygon node.

CI_Y 

Index of the table cell for the X coordinate of the polygon node.

CI_LAST 

Last used cell index.

Definition at line 44 of file TPolygonBasedParamsGuiComp.h.

Constructor & Destructor Documentation

◆ TPolygonBasedParamsGuiComp()

template<class PolygonBasedShape , class PolygonBasedModel >
iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::TPolygonBasedParamsGuiComp ( )

Definition at line 163 of file TPolygonBasedParamsGuiComp.h.

Member Function Documentation

◆ columnCount()

template<class PolygonBasedShape , class PolygonBasedModel >
int iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::columnCount ( const QModelIndex &  parent = QModelIndex()) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 277 of file TPolygonBasedParamsGuiComp.h.

◆ data()

template<class PolygonBasedShape , class PolygonBasedModel >
QVariant iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 284 of file TPolygonBasedParamsGuiComp.h.

References i2d::CPolypoint::GetNodePos(), and NULL.

◆ flags()

template<class PolygonBasedShape , class PolygonBasedModel >
Qt::ItemFlags iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::flags ( const QModelIndex &  index) const
protectedvirtual

Definition at line 340 of file TPolygonBasedParamsGuiComp.h.

◆ GetNodeTable()

template<class PolygonBasedShape , class PolygonBasedModel >
QTableView * iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::GetNodeTable ( )
protected

Get the table with the node data.

Definition at line 177 of file TPolygonBasedParamsGuiComp.h.

◆ GetValue()

template<class PolygonBasedShape , class PolygonBasedModel >
QVariant iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::GetValue ( double  value,
int  round = 2 
)
staticprotected

Definition at line 501 of file TPolygonBasedParamsGuiComp.h.

◆ headerData()

template<class PolygonBasedShape , class PolygonBasedModel >
QVariant iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
protectedvirtual

Reimplemented in iqt2d::CTubePolylineParamsGuiComp.

Definition at line 321 of file TPolygonBasedParamsGuiComp.h.

◆ OnActionTriggered()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnActionTriggered ( QAction *  actionPtr)
overrideprotectedvirtual

Definition at line 442 of file TPolygonBasedParamsGuiComp.h.

References NULL.

◆ OnCopyData()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnCopyData ( )
protectedvirtual

◆ OnGuiCreated()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnGuiCreated ( )
overrideprotectedvirtual

Definition at line 349 of file TPolygonBasedParamsGuiComp.h.

◆ OnGuiDesignChanged()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnGuiDesignChanged ( )
overrideprotectedvirtual

Definition at line 402 of file TPolygonBasedParamsGuiComp.h.

◆ OnGuiRetranslate()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnGuiRetranslate ( )
overrideprotectedvirtual

Reimplemented in iqt2d::CPolylineParamsGuiComp.

Definition at line 389 of file TPolygonBasedParamsGuiComp.h.

◆ OnInsertNode()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnInsertNode ( )
protectedvirtual

◆ OnPasteData()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnPasteData ( )
protectedvirtual

Definition at line 224 of file TPolygonBasedParamsGuiComp.h.

References NULL.

◆ OnRemoveNode()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::OnRemoveNode ( )
protectedvirtual

Definition at line 245 of file TPolygonBasedParamsGuiComp.h.

References NULL.

◆ PopulateActions()

template<class PolygonBasedShape , class PolygonBasedModel >
bool iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::PopulateActions ( QWidget &  host,
imod::IModel modelPtr 
)
overrideprotectedvirtual

Reimplemented in iqt2d::CPolylineParamsGuiComp.

Definition at line 417 of file TPolygonBasedParamsGuiComp.h.

◆ rowCount()

template<class PolygonBasedShape , class PolygonBasedModel >
int iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::rowCount ( const QModelIndex &  parent = QModelIndex()) const
protectedvirtual

Definition at line 263 of file TPolygonBasedParamsGuiComp.h.

References i2d::CPolypoint::GetNodesCount(), and NULL.

◆ setData()

template<class PolygonBasedShape , class PolygonBasedModel >
bool iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
protectedvirtual

◆ SetValue()

template<class PolygonBasedShape , class PolygonBasedModel >
bool iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::SetValue ( const QVariant &  variant,
double &  result 
)
staticprotected

Definition at line 487 of file TPolygonBasedParamsGuiComp.h.

◆ UpdateGui()

template<class PolygonBasedShape , class PolygonBasedModel >
void iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
overrideprotectedvirtual

Definition at line 474 of file TPolygonBasedParamsGuiComp.h.

Member Data Documentation

◆ m_flipHorizontalAction

template<class PolygonBasedShape , class PolygonBasedModel >
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_flipHorizontalAction
protected

Definition at line 149 of file TPolygonBasedParamsGuiComp.h.

◆ m_flipVerticalAction

template<class PolygonBasedShape , class PolygonBasedModel >
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_flipVerticalAction
protected

Definition at line 150 of file TPolygonBasedParamsGuiComp.h.

◆ m_reversePolarityAction

template<class PolygonBasedShape , class PolygonBasedModel >
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_reversePolarityAction
protected

Definition at line 153 of file TPolygonBasedParamsGuiComp.h.

◆ m_rotateCcwAction

template<class PolygonBasedShape , class PolygonBasedModel >
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_rotateCcwAction
protected

Definition at line 152 of file TPolygonBasedParamsGuiComp.h.

◆ m_rotateCwAction

template<class PolygonBasedShape , class PolygonBasedModel >
QAction iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >::m_rotateCwAction
protected

Definition at line 151 of file TPolygonBasedParamsGuiComp.h.


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