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 Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | Properties | List of all members
ctkVTKScalarsToColorsComboBox Class Reference

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

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

Public Slots

void setCurrentScalarsToColors (vtkScalarsToColors *scalarsToColors)
 
- Public Slots inherited from ctkComboBox
void setCurrentUserDataAsString (QString userData)
 Set current item based on user data. More...
 

Signals

void currentScalarsToColorsChanged (vtkScalarsToColors *)
 Signal triggered when the current scalars to colors function changes. More...
 

Public Member Functions

int addScalarsToColors (vtkScalarsToColors *function, const QString &text=QString())
 
 ctkVTKScalarsToColorsComboBox (QWidget *parent=0)
 Constructors. More...
 
vtkScalarsToColors * currentScalarsToColors () const
 
int findScalarsToColors (vtkScalarsToColors *scalarsToColors) const
 
vtkScalarsToColors * getScalarsToColors (int index) const
 
void removeScalarsToColors (vtkScalarsToColors *scalarsToColors)
 
virtual ~ctkVTKScalarsToColorsComboBox ()
 
- Public Member Functions inherited from ctkComboBox
 ctkComboBox (QWidget *parent=0)
 Constructor, build a ctkComboBox that behaves like QComboBox. More...
 
QString currentUserDataAsString () const
 Get current item's user data as string. More...
 
QIcon defaultIcon () const
 
QString defaultText () const
 
Qt::TextElideMode elideMode () const
 
void forceDefault (bool forceDefault)
 
bool isDefaultForced () const
 
virtual QSize minimumSizeHint () const
 Reimplemented for internal reasons. More...
 
ScrollEffect scrollWheelEffect () const
 
void setDefaultIcon (const QIcon &)
 Empty by default (same behavior as QComboBox) More...
 
void setDefaultText (const QString &)
 Empty by default (same behavior as QComboBox) More...
 
void setElideMode (const Qt::TextElideMode &newMode)
 
void setScrollWheelEffect (ScrollEffect scroll)
 
virtual QSize sizeHint () const
 Reimplemented for internal reasons. More...
 
virtual ~ctkComboBox ()
 

Protected Slots

void onCurrentIndexChanged (int)
 
void onRowsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 

Protected Attributes

QScopedPointer< ctkVTKScalarsToColorsComboBoxPrivate > d_ptr
 
- Protected Attributes inherited from ctkComboBox
QScopedPointer< ctkComboBoxPrivate > d_ptr
 

Properties

vtkScalarsToColors * currentScalarsToColors
 
- Properties inherited from ctkComboBox
QString currentUserDataAsString
 Current item's user data as string (Qt::UserRole role) More...
 
QIcon defaultIcon
 
QString defaultText
 
Qt::TextElideMode elideMode
 
bool forceDefault
 
ScrollEffect scrollWheelEffect
 

Additional Inherited Members

- Public Types inherited from ctkComboBox
enum  ScrollEffect { NeverScroll , AlwaysScroll , ScrollWithFocus , ScrollWithNoVScrollBar }
 \tbd turn into flags ? More...
 
- Protected Member Functions inherited from ctkComboBox
virtual void changeEvent (QEvent *event)
 
virtual void paintEvent (QPaintEvent *event)
 Reimplemented for internal reasons. More...
 
virtual void wheelEvent (QWheelEvent *event)
 

Detailed Description

QComboBox linked to vtkScalarsToColors objects

Definition at line 37 of file ctkVTKScalarsToColorsComboBox.h.

Constructor & Destructor Documentation

◆ ctkVTKScalarsToColorsComboBox()

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

Constructors.

◆ ~ctkVTKScalarsToColorsComboBox()

virtual ctkVTKScalarsToColorsComboBox::~ctkVTKScalarsToColorsComboBox ( )
virtual

Member Function Documentation

◆ addScalarsToColors()

int ctkVTKScalarsToColorsComboBox::addScalarsToColors ( vtkScalarsToColors *  function,
const QString &  text = QString() 
)

Add scalars to colors function (of any type) to the combobox. Increment reference count of given function (if any) Returns the index of the added function.

◆ currentScalarsToColors()

vtkScalarsToColors* ctkVTKScalarsToColorsComboBox::currentScalarsToColors ( ) const

Returns the currentScalarsToColors property value 0 if no item is selected

◆ currentScalarsToColorsChanged

void ctkVTKScalarsToColorsComboBox::currentScalarsToColorsChanged ( vtkScalarsToColors *  )
signal

Signal triggered when the current scalars to colors function changes.

◆ findScalarsToColors()

int ctkVTKScalarsToColorsComboBox::findScalarsToColors ( vtkScalarsToColors *  scalarsToColors) const

Searches the combobox for the given scalarsToColors

See also
findText()

◆ getScalarsToColors()

vtkScalarsToColors* ctkVTKScalarsToColorsComboBox::getScalarsToColors ( int  index) const

◆ onCurrentIndexChanged

void ctkVTKScalarsToColorsComboBox::onCurrentIndexChanged ( int  )
protectedslot

◆ onRowsAboutToBeRemoved

void ctkVTKScalarsToColorsComboBox::onRowsAboutToBeRemoved ( const QModelIndex &  parent,
int  first,
int  last 
)
protectedslot

◆ removeScalarsToColors()

void ctkVTKScalarsToColorsComboBox::removeScalarsToColors ( vtkScalarsToColors *  scalarsToColors)

◆ setCurrentScalarsToColors

void ctkVTKScalarsToColorsComboBox::setCurrentScalarsToColors ( vtkScalarsToColors *  scalarsToColors)
slot

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKScalarsToColorsComboBoxPrivate> ctkVTKScalarsToColorsComboBox::d_ptr
protected

Definition at line 85 of file ctkVTKScalarsToColorsComboBox.h.

Property Documentation

◆ currentScalarsToColors

vtkScalarsToColors* ctkVTKScalarsToColorsComboBox::currentScalarsToColors
readwrite

This property controls the current scalarsToColors item of the combobox. \accessors currentScalarsToColors(), setCurrentScalarsToColors()

Definition at line 42 of file ctkVTKScalarsToColorsComboBox.h.


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