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 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

void chartsBounds (double bounds[4]) 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

bool thresholdEnabled
 
bool thresholdToggleVisibility
 

Detailed Description

Definition at line 36 of file ctkVTKVolumePropertyWidget.h.

Constructor & Destructor Documentation

ctkVTKVolumePropertyWidget::ctkVTKVolumePropertyWidget ( QWidget *  parent = 0)
virtual ctkVTKVolumePropertyWidget::~ctkVTKVolumePropertyWidget ( )
virtual

Member Function Documentation

void ctkVTKVolumePropertyWidget::chartsBounds ( double  bounds[4]) const
void ctkVTKVolumePropertyWidget::chartsExtent ( double  extent[4]) const
void ctkVTKVolumePropertyWidget::chartsExtentChanged ( )
signal
bool ctkVTKVolumePropertyWidget::isThresholdEnabled ( ) const
bool ctkVTKVolumePropertyWidget::isThresholdToggleVisible ( ) const
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()
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.

void ctkVTKVolumePropertyWidget::onThresholdOpacityToggled ( bool  )
protectedslot
void ctkVTKVolumePropertyWidget::setAmbient ( double  value)
protectedslot
void ctkVTKVolumePropertyWidget::setDiffuse ( double  value)
protectedslot
void ctkVTKVolumePropertyWidget::setInterpolationMode ( int  mode)
protectedslot
void ctkVTKVolumePropertyWidget::setShade ( bool  )
protectedslot
void ctkVTKVolumePropertyWidget::setSpecular ( double  value)
protectedslot
void ctkVTKVolumePropertyWidget::setSpecularPower ( double  value)
protectedslot
void ctkVTKVolumePropertyWidget::setThresholdEnabled ( bool  enable)
slot
void ctkVTKVolumePropertyWidget::setThresholdToggleVisible ( bool  showToggle)
void ctkVTKVolumePropertyWidget::setVolumeProperty ( vtkVolumeProperty *  volumeProperty)
slot
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()
void ctkVTKVolumePropertyWidget::thresholdEnabledChanged ( bool  enable)
signal
void ctkVTKVolumePropertyWidget::updateFromVolumeProperty ( )
protectedslot
void ctkVTKVolumePropertyWidget::updateRange ( )
protectedslot
vtkVolumeProperty* ctkVTKVolumePropertyWidget::volumeProperty ( ) const

Member Data Documentation

QScopedPointer<ctkVTKVolumePropertyWidgetPrivate> ctkVTKVolumePropertyWidget::d_ptr
protected

Definition at line 105 of file ctkVTKVolumePropertyWidget.h.

Property Documentation

bool ctkVTKVolumePropertyWidget::thresholdEnabled
readwrite

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

Definition at line 44 of file ctkVTKVolumePropertyWidget.h.

bool ctkVTKVolumePropertyWidget::thresholdToggleVisibility
readwrite

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

Definition at line 49 of file ctkVTKVolumePropertyWidget.h.


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