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

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

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

Public Slots

void moveAllPoints (double xOffset, double yOffset=0., bool dontSpreadFirstAndLast=false)
 
void setChartsExtent (double extent[2])
 Set chart extent. More...
 
void setChartsExtent (double min, double max)
 
void setThresholdEnabled (bool enable)
 
void setVolumeProperty (vtkVolumeProperty *volumeProperty)
 
void spreadAllPoints (double factor=1., bool dontSpreadFirstAndLast=false)
 

Signals

void chartsExtentChanged ()
 
void thresholdEnabledChanged (bool enable)
 

Public Member Functions

Q_INVOKABLE QList< double > chartsBounds () const
 
void chartsBounds (double bounds[4]) const
 
Q_INVOKABLE QList< double > chartsExtent () const
 
void chartsExtent (double extent[4]) const
 
 ctkVTKVolumePropertyWidget (QWidget *parent=0)
 
bool isThresholdEnabled () const
 
bool isThresholdToggleVisible () const
 
void setThresholdToggleVisible (bool showToggle)
 
vtkVolumeProperty * volumeProperty () const
 
virtual ~ctkVTKVolumePropertyWidget ()
 

Protected Slots

void onAxesModified ()
 
void onThresholdOpacityToggled (bool)
 
void setAmbient (double value)
 
void setDiffuse (double value)
 
void setInterpolationMode (int mode)
 
void setShade (bool)
 
void setSpecular (double value)
 
void setSpecularPower (double value)
 
void updateFromVolumeProperty ()
 
void updateRange ()
 

Protected Attributes

QScopedPointer< ctkVTKVolumePropertyWidgetPrivate > d_ptr
 

Properties

QVTK_OBJECTbool thresholdEnabled
 
bool thresholdToggleVisibility
 

Detailed Description

Definition at line 36 of file ctkVTKVolumePropertyWidget.h.

Constructor & Destructor Documentation

◆ ctkVTKVolumePropertyWidget()

ctkVTKVolumePropertyWidget::ctkVTKVolumePropertyWidget ( QWidget *  parent = 0)

◆ ~ctkVTKVolumePropertyWidget()

virtual ctkVTKVolumePropertyWidget::~ctkVTKVolumePropertyWidget ( )
virtual

Member Function Documentation

◆ chartsBounds() [1/2]

Q_INVOKABLE QList<double> ctkVTKVolumePropertyWidget::chartsBounds ( ) const

◆ chartsBounds() [2/2]

void ctkVTKVolumePropertyWidget::chartsBounds ( double  bounds[4]) const

◆ chartsExtent() [1/2]

Q_INVOKABLE QList<double> ctkVTKVolumePropertyWidget::chartsExtent ( ) const

◆ chartsExtent() [2/2]

void ctkVTKVolumePropertyWidget::chartsExtent ( double  extent[4]) const

◆ chartsExtentChanged

void ctkVTKVolumePropertyWidget::chartsExtentChanged ( )
signal

◆ isThresholdEnabled()

bool ctkVTKVolumePropertyWidget::isThresholdEnabled ( ) const

◆ isThresholdToggleVisible()

bool ctkVTKVolumePropertyWidget::isThresholdToggleVisible ( ) const

◆ moveAllPoints

void ctkVTKVolumePropertyWidget::moveAllPoints ( double  xOffset,
double  yOffset = 0.,
bool  dontSpreadFirstAndLast = false 
)
slot

Move all the control points of the opacity, colors and gradient of a give offset.

See also
vtkControlPoints::movePoints()

◆ onAxesModified

void ctkVTKVolumePropertyWidget::onAxesModified ( )
protectedslot

Called whenever a view (opacity, colors or gradient) has one of its axis modified. It synchronize all the views to see the same.

◆ onThresholdOpacityToggled

void ctkVTKVolumePropertyWidget::onThresholdOpacityToggled ( bool  )
protectedslot

◆ setAmbient

void ctkVTKVolumePropertyWidget::setAmbient ( double  value)
protectedslot

◆ setChartsExtent [1/2]

void ctkVTKVolumePropertyWidget::setChartsExtent ( double  extent[2])
slot

Set chart extent.

◆ setChartsExtent [2/2]

void ctkVTKVolumePropertyWidget::setChartsExtent ( double  min,
double  max 
)
slot

◆ setDiffuse

void ctkVTKVolumePropertyWidget::setDiffuse ( double  value)
protectedslot

◆ setInterpolationMode

void ctkVTKVolumePropertyWidget::setInterpolationMode ( int  mode)
protectedslot

◆ setShade

void ctkVTKVolumePropertyWidget::setShade ( bool  )
protectedslot

◆ setSpecular

void ctkVTKVolumePropertyWidget::setSpecular ( double  value)
protectedslot

◆ setSpecularPower

void ctkVTKVolumePropertyWidget::setSpecularPower ( double  value)
protectedslot

◆ setThresholdEnabled

void ctkVTKVolumePropertyWidget::setThresholdEnabled ( bool  enable)
slot

◆ setThresholdToggleVisible()

void ctkVTKVolumePropertyWidget::setThresholdToggleVisible ( bool  showToggle)

◆ setVolumeProperty

void ctkVTKVolumePropertyWidget::setVolumeProperty ( vtkVolumeProperty *  volumeProperty)
slot

◆ spreadAllPoints

void ctkVTKVolumePropertyWidget::spreadAllPoints ( double  factor = 1.,
bool  dontSpreadFirstAndLast = false 
)
slot

Spread all the control points of the opacity, colors and gradient by a given offset. A value >0 will space the control points, a value <0. will contract them.

See also
vtkControlPoints::spreadPoints()

◆ thresholdEnabledChanged

void ctkVTKVolumePropertyWidget::thresholdEnabledChanged ( bool  enable)
signal

◆ updateFromVolumeProperty

void ctkVTKVolumePropertyWidget::updateFromVolumeProperty ( )
protectedslot

◆ updateRange

void ctkVTKVolumePropertyWidget::updateRange ( )
protectedslot

◆ volumeProperty()

vtkVolumeProperty* ctkVTKVolumePropertyWidget::volumeProperty ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKVolumePropertyWidgetPrivate> ctkVTKVolumePropertyWidget::d_ptr
protected

Definition at line 111 of file ctkVTKVolumePropertyWidget.h.

Property Documentation

◆ thresholdEnabled

QVTK_OBJECTbool ctkVTKVolumePropertyWidget::thresholdEnabled
readwrite

Control whether a range slider widget is used to edit the opacity function instead of a chart editor. False by default

Definition at line 40 of file ctkVTKVolumePropertyWidget.h.

◆ thresholdToggleVisibility

bool ctkVTKVolumePropertyWidget::thresholdToggleVisibility
readwrite

Show or hide the opacity threshold slider toggle button. True by default.

Definition at line 40 of file ctkVTKVolumePropertyWidget.h.


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