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
ctkVTKScalarsToColorsWidget Class Reference

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

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

Public Slots

void resetRange ()
 
void setCurrentControlPointsItem (vtkControlPointsItem *item)
 
void setCurrentPoint (int pointId)
 
void setXRange (double min, double max)
 
void setYRange (double min, double max)
 

Signals

void axesModified ()
 

Public Member Functions

void addExtraWidget (QWidget *extraWidget)
 
 ctkVTKScalarsToColorsWidget (QWidget *parent=0)
 
vtkControlPointsItem * currentControlPointsItem () const
 
bool editColors () const
 
QWidgetList extraWidgets () const
 Return the top-left corner widget if any. More...
 
bool isHorizontalSliderVisible () const
 
bool isVerticalSliderVisible () const
 
void setEditColors (bool edit)
 
void setHorizontalSliderVisible (bool visible)
 
void setVerticalSliderVisible (bool visible)
 
ctkVTKScalarsToColorsViewview () const
 
void xRange (double *range) const
 
void yRange (double *range) const
 
virtual ~ctkVTKScalarsToColorsWidget ()
 

Protected Slots

void onAxesModified ()
 
void onBoundsChanged ()
 
void onColorChanged (const QColor &color)
 
void onCurrentPointChanged (int pointId)
 
void onExpandButton (bool state)
 
void onMidPointChanged (double midPoint)
 
void onOpacityChanged (double opacity)
 
void onPlotAdded (vtkPlot *)
 
void onSharpnessChanged (double sharpness)
 
void onXChanged (double x)
 
void restorePalette ()
 
void setCurrentPoint (vtkObject *controlPointsItem, void *pointId)
 
void updateCurrentPoint ()
 
void updateNumberOfPoints ()
 

Protected Attributes

QScopedPointer< ctkVTKScalarsToColorsWidgetPrivate > d_ptr
 

Properties

bool editColors
 
QVTK_OBJECTbool horizontalSliderVisible
 
bool verticalSliderVisible
 

Detailed Description

Definition at line 38 of file ctkVTKScalarsToColorsWidget.h.

Constructor & Destructor Documentation

◆ ctkVTKScalarsToColorsWidget()

ctkVTKScalarsToColorsWidget::ctkVTKScalarsToColorsWidget ( QWidget *  parent = 0)

◆ ~ctkVTKScalarsToColorsWidget()

virtual ctkVTKScalarsToColorsWidget::~ctkVTKScalarsToColorsWidget ( )
virtual

Member Function Documentation

◆ addExtraWidget()

void ctkVTKScalarsToColorsWidget::addExtraWidget ( QWidget *  extraWidget)

Add a widget in the top-left corner. ctkVTKScalarsToColorsWidget takes ownership of the widget

◆ axesModified

void ctkVTKScalarsToColorsWidget::axesModified ( )
signal

Be carefull, axesModified() can be fired inside the Render() function of the view. You might want to connect the slot using Qt::QueuedConnection

◆ currentControlPointsItem()

vtkControlPointsItem* ctkVTKScalarsToColorsWidget::currentControlPointsItem ( ) const

◆ editColors()

bool ctkVTKScalarsToColorsWidget::editColors ( ) const

◆ extraWidgets()

QWidgetList ctkVTKScalarsToColorsWidget::extraWidgets ( ) const

Return the top-left corner widget if any.

◆ isHorizontalSliderVisible()

bool ctkVTKScalarsToColorsWidget::isHorizontalSliderVisible ( ) const

◆ isVerticalSliderVisible()

bool ctkVTKScalarsToColorsWidget::isVerticalSliderVisible ( ) const

◆ onAxesModified

void ctkVTKScalarsToColorsWidget::onAxesModified ( )
protectedslot

◆ onBoundsChanged

void ctkVTKScalarsToColorsWidget::onBoundsChanged ( )
protectedslot

◆ onColorChanged

void ctkVTKScalarsToColorsWidget::onColorChanged ( const QColor &  color)
protectedslot

◆ onCurrentPointChanged

void ctkVTKScalarsToColorsWidget::onCurrentPointChanged ( int  pointId)
protectedslot

◆ onExpandButton

void ctkVTKScalarsToColorsWidget::onExpandButton ( bool  state)
protectedslot

◆ onMidPointChanged

void ctkVTKScalarsToColorsWidget::onMidPointChanged ( double  midPoint)
protectedslot

◆ onOpacityChanged

void ctkVTKScalarsToColorsWidget::onOpacityChanged ( double  opacity)
protectedslot

◆ onPlotAdded

void ctkVTKScalarsToColorsWidget::onPlotAdded ( vtkPlot *  )
protectedslot

◆ onSharpnessChanged

void ctkVTKScalarsToColorsWidget::onSharpnessChanged ( double  sharpness)
protectedslot

◆ onXChanged

void ctkVTKScalarsToColorsWidget::onXChanged ( double  x)
protectedslot

◆ resetRange

void ctkVTKScalarsToColorsWidget::resetRange ( )
slot

◆ restorePalette

void ctkVTKScalarsToColorsWidget::restorePalette ( )
protectedslot

◆ setCurrentControlPointsItem

void ctkVTKScalarsToColorsWidget::setCurrentControlPointsItem ( vtkControlPointsItem *  item)
slot

◆ setCurrentPoint [1/2]

void ctkVTKScalarsToColorsWidget::setCurrentPoint ( int  pointId)
slot

◆ setCurrentPoint [2/2]

void ctkVTKScalarsToColorsWidget::setCurrentPoint ( vtkObject *  controlPointsItem,
void *  pointId 
)
protectedslot

◆ setEditColors()

void ctkVTKScalarsToColorsWidget::setEditColors ( bool  edit)

◆ setHorizontalSliderVisible()

void ctkVTKScalarsToColorsWidget::setHorizontalSliderVisible ( bool  visible)

◆ setVerticalSliderVisible()

void ctkVTKScalarsToColorsWidget::setVerticalSliderVisible ( bool  visible)

◆ setXRange

void ctkVTKScalarsToColorsWidget::setXRange ( double  min,
double  max 
)
slot

◆ setYRange

void ctkVTKScalarsToColorsWidget::setYRange ( double  min,
double  max 
)
slot

◆ updateCurrentPoint

void ctkVTKScalarsToColorsWidget::updateCurrentPoint ( )
protectedslot

◆ updateNumberOfPoints

void ctkVTKScalarsToColorsWidget::updateNumberOfPoints ( )
protectedslot

◆ view()

ctkVTKScalarsToColorsView* ctkVTKScalarsToColorsWidget::view ( ) const

◆ xRange()

void ctkVTKScalarsToColorsWidget::xRange ( double *  range) const

◆ yRange()

void ctkVTKScalarsToColorsWidget::yRange ( double *  range) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKScalarsToColorsWidgetPrivate> ctkVTKScalarsToColorsWidget::d_ptr
protected

Definition at line 101 of file ctkVTKScalarsToColorsWidget.h.

Property Documentation

◆ editColors

bool ctkVTKScalarsToColorsWidget::editColors
readwrite

Definition at line 41 of file ctkVTKScalarsToColorsWidget.h.

◆ horizontalSliderVisible

QVTK_OBJECTbool ctkVTKScalarsToColorsWidget::horizontalSliderVisible
readwrite

Definition at line 41 of file ctkVTKScalarsToColorsWidget.h.

◆ verticalSliderVisible

bool ctkVTKScalarsToColorsWidget::verticalSliderVisible
readwrite

Definition at line 41 of file ctkVTKScalarsToColorsWidget.h.


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