CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
ctkVTKDataSetArrayComboBox Class Reference

#include <Libs/Visualization/VTK/Widgets/ctkVTKDataSetArrayComboBox.h>

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

Public Types

typedef QComboBox Superclass
 Superclass typedef. More...
 

Public Slots

void setCurrentArray (const QString &name)
 the array must exist in the dataset More...
 
void setCurrentArray (vtkAbstractArray *dataArray)
 The array must exist in the dataset. More...
 
void setDataSet (vtkDataSet *dataSet)
 

Signals

void currentArrayChanged (const QString &name)
 
void currentArrayChanged (vtkAbstractArray *)
 

Public Member Functions

ctkVTKDataSetModel::AttributeTypes attributeTypes () const
 
 ctkVTKDataSetArrayComboBox (QWidget *parent=0)
 Constructors. More...
 
vtkAbstractArray * currentArray () const
 
int currentArrayLocation () const
 
QString currentArrayName () const
 
vtkDataSet * dataSet () const
 
ctkVTKDataSetModeldataSetModel () const
 
bool noneEnabled () const
 
void setAttributeTypes (const ctkVTKDataSetModel::AttributeTypes &attributeTypes)
 
void setNoneEnabled (bool enable)
 
virtual ~ctkVTKDataSetArrayComboBox ()
 

Protected Slots

void onCurrentIndexChanged (int)
 

Protected Attributes

QScopedPointer< ctkVTKDataSetArrayComboBoxPrivate > d_ptr
 

Properties

ctkVTKDataSetModel::AttributeTypes attributeTypes
 
bool noneEnabled
 

Detailed Description

QComboBox linked to vtkDataSet field arrays

Definition at line 38 of file ctkVTKDataSetArrayComboBox.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 47 of file ctkVTKDataSetArrayComboBox.h.

Constructor & Destructor Documentation

◆ ctkVTKDataSetArrayComboBox()

ctkVTKDataSetArrayComboBox::ctkVTKDataSetArrayComboBox ( QWidget *  parent = 0)
explicit

Constructors.

◆ ~ctkVTKDataSetArrayComboBox()

virtual ctkVTKDataSetArrayComboBox::~ctkVTKDataSetArrayComboBox ( )
virtual

Member Function Documentation

◆ attributeTypes()

ctkVTKDataSetModel::AttributeTypes ctkVTKDataSetArrayComboBox::attributeTypes ( ) const

◆ currentArray()

vtkAbstractArray* ctkVTKDataSetArrayComboBox::currentArray ( ) const

◆ currentArrayChanged [1/2]

void ctkVTKDataSetArrayComboBox::currentArrayChanged ( const QString &  name)
signal

◆ currentArrayChanged [2/2]

void ctkVTKDataSetArrayComboBox::currentArrayChanged ( vtkAbstractArray *  )
signal

◆ currentArrayLocation()

int ctkVTKDataSetArrayComboBox::currentArrayLocation ( ) const

Return the current array location, i.e. whether it's a point data array or a cell data array.

See also
currentArrayChanged(int), ctkVTKDataSetModel::locationFromItem()

◆ currentArrayName()

QString ctkVTKDataSetArrayComboBox::currentArrayName ( ) const

◆ dataSet()

vtkDataSet* ctkVTKDataSetArrayComboBox::dataSet ( ) const

◆ dataSetModel()

ctkVTKDataSetModel* ctkVTKDataSetArrayComboBox::dataSetModel ( ) const

Return a pointer to the model used to populate the combobox.

See also
dataSet()

◆ noneEnabled()

bool ctkVTKDataSetArrayComboBox::noneEnabled ( ) const

◆ onCurrentIndexChanged

void ctkVTKDataSetArrayComboBox::onCurrentIndexChanged ( int  )
protectedslot

◆ setAttributeTypes()

void ctkVTKDataSetArrayComboBox::setAttributeTypes ( const ctkVTKDataSetModel::AttributeTypes &  attributeTypes)

◆ setCurrentArray [1/2]

void ctkVTKDataSetArrayComboBox::setCurrentArray ( const QString &  name)
slot

the array must exist in the dataset

◆ setCurrentArray [2/2]

void ctkVTKDataSetArrayComboBox::setCurrentArray ( vtkAbstractArray *  dataArray)
slot

The array must exist in the dataset.

◆ setDataSet

void ctkVTKDataSetArrayComboBox::setDataSet ( vtkDataSet *  dataSet)
slot

Set the dataset to observe. It is used to as the "model" for the combobox.

See also
dataSet(), dataSetModel()

◆ setNoneEnabled()

void ctkVTKDataSetArrayComboBox::setNoneEnabled ( bool  enable)

Set/Get NoneEnabled flags An additional empty item is added into the list, where the user can select. It is recommended to enable this if the combobox is used to select active scalar of the observed VTK data set, because if there is no None option is available then the combobox selects the first array automatically if an array becomes available, causing unintended change of the VTK data set (and often infinite loop of widget/MRML node updates).

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKDataSetArrayComboBoxPrivate> ctkVTKDataSetArrayComboBox::d_ptr
protected

Definition at line 94 of file ctkVTKDataSetArrayComboBox.h.

Property Documentation

◆ attributeTypes

ctkVTKDataSetModel::AttributeTypes ctkVTKDataSetArrayComboBox::attributeTypes
readwrite

Definition at line 1 of file ctkVTKDataSetArrayComboBox.h.

◆ noneEnabled

bool ctkVTKDataSetArrayComboBox::noneEnabled
readwrite

Definition at line 1 of file ctkVTKDataSetArrayComboBox.h.


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