Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Signals | Public Member Functions | Protected Slots | Protected Attributes
qMRMLTransformItemDelegate Class Reference

Item Delegate for MRML parent transform property. More...

#include <Modules/Loadable/SubjectHierarchy/Widgets/qMRMLTransformItemDelegate.h>

Inheritance diagram for qMRMLTransformItemDelegate:
Inheritance graph
[legend]
Collaboration diagram for qMRMLTransformItemDelegate:
Collaboration graph
[legend]

Signals

void hardenTransformOnBranchOfCurrentItem ()
 
void removeTransformsFromBranchOfCurrentItem ()
 

Public Member Functions

QWidget * createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
bool eventFilter (QObject *object, QEvent *event) override
 
bool isTransform (const QModelIndex &index) const
 Determine if the current index contains a transform. More...
 
 qMRMLTransformItemDelegate (QObject *parent=nullptr)
 
void setEditorData (QWidget *editor, const QModelIndex &index) const override
 
void setFixedRowHeight (int height)
 
void setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override
 
void setMRMLScene (vtkMRMLScene *scene)
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
void updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 ~qMRMLTransformItemDelegate () override
 

Protected Slots

void commitAndClose ()
 
void transformActionSelected ()
 

Protected Attributes

int FixedRowHeight
 
QAction * HardenAction
 
vtkMRMLSceneMRMLScene
 
QAction * NoneAction
 
QActionGroup * TransformActionGroup
 

Detailed Description

Item Delegate for MRML parent transform property.

Definition at line 39 of file qMRMLTransformItemDelegate.h.

Constructor & Destructor Documentation

◆ qMRMLTransformItemDelegate()

qMRMLTransformItemDelegate::qMRMLTransformItemDelegate ( QObject *  parent = nullptr)

◆ ~qMRMLTransformItemDelegate()

qMRMLTransformItemDelegate::~qMRMLTransformItemDelegate ( )
override

Member Function Documentation

◆ commitAndClose

void qMRMLTransformItemDelegate::commitAndClose ( )
protectedslot

◆ createEditor()

QWidget* qMRMLTransformItemDelegate::createEditor ( QWidget *  parent,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ eventFilter()

bool qMRMLTransformItemDelegate::eventFilter ( QObject *  object,
QEvent *  event 
)
override

◆ hardenTransformOnBranchOfCurrentItem

void qMRMLTransformItemDelegate::hardenTransformOnBranchOfCurrentItem ( )
signal

◆ isTransform()

bool qMRMLTransformItemDelegate::isTransform ( const QModelIndex &  index) const

Determine if the current index contains a transform.

◆ removeTransformsFromBranchOfCurrentItem

void qMRMLTransformItemDelegate::removeTransformsFromBranchOfCurrentItem ( )
signal

◆ setEditorData()

void qMRMLTransformItemDelegate::setEditorData ( QWidget *  editor,
const QModelIndex &  index 
) const
override

◆ setFixedRowHeight()

void qMRMLTransformItemDelegate::setFixedRowHeight ( int  height)

Set a fixed row height. Useful if uniform row heights is turned on, but the desired row height is different than that of the first row (often scene). Set value to -1 to disable fixed row height (this is the default)

◆ setModelData()

void qMRMLTransformItemDelegate::setModelData ( QWidget *  editor,
QAbstractItemModel *  model,
const QModelIndex &  index 
) const
override

◆ setMRMLScene()

void qMRMLTransformItemDelegate::setMRMLScene ( vtkMRMLScene scene)

◆ sizeHint()

QSize qMRMLTransformItemDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

◆ transformActionSelected

void qMRMLTransformItemDelegate::transformActionSelected ( )
protectedslot

◆ updateEditorGeometry()

void qMRMLTransformItemDelegate::updateEditorGeometry ( QWidget *  editor,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override

Member Data Documentation

◆ FixedRowHeight

int qMRMLTransformItemDelegate::FixedRowHeight
protected

Definition at line 88 of file qMRMLTransformItemDelegate.h.

◆ HardenAction

QAction* qMRMLTransformItemDelegate::HardenAction
protected

Definition at line 87 of file qMRMLTransformItemDelegate.h.

◆ MRMLScene

vtkMRMLScene* qMRMLTransformItemDelegate::MRMLScene
protected

Definition at line 84 of file qMRMLTransformItemDelegate.h.

◆ NoneAction

QAction* qMRMLTransformItemDelegate::NoneAction
protected

Definition at line 86 of file qMRMLTransformItemDelegate.h.

◆ TransformActionGroup

QActionGroup* qMRMLTransformItemDelegate::TransformActionGroup
protected

Definition at line 85 of file qMRMLTransformItemDelegate.h.


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