![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Visualization/VTK/Widgets/ctkVTKScalarsToColorsView.h>
Public Types | |
typedef ctkVTKChartView | Superclass |
![]() | |
typedef ctkVTKOpenGLNativeWidget | Superclass |
![]() | |
typedef QVTKWidget | Superclass |
Public Slots | |
void | editPoint (vtkObject *plot, void *pointId) |
void | moveAllPoints (double xOffset, double yOffset=0., bool dontMoveFirstAndLast=false) |
void | spreadAllPoints (double factor=1., bool dontMoveFirstAndLast=false) |
![]() | |
void | removeAllPlots () |
Remove all the plots from the chart. More... | |
virtual void | setAxesToChartBounds () |
Signals | |
void | functionChanged () |
![]() | |
void | boundsChanged () |
Fired anytime the bound of a plot modifies the overall bounds. More... | |
void | extentChanged () |
Fired anytime an axis is modified. More... | |
void | plotAdded (vtkPlot *plot) |
void | plotRemoved (vtkPlot *plot) |
Public Member Functions | |
Q_INVOKABLE vtkPlot * | addColorTransferFunction (vtkColorTransferFunction *colorTF, bool editable=true) |
vtkPlot * | addColorTransferFunctionControlPoints (vtkColorTransferFunction *colorTF) |
vtkPlot * | addCompositeFunction (vtkColorTransferFunction *colorTF, vtkPiecewiseFunction *opacityTF, bool colorTFEditable=true, bool opacityTFEditable=true) |
vtkPlot * | addCompositeFunctionControlPoints (vtkColorTransferFunction *colorTF, vtkPiecewiseFunction *opacityTF) |
vtkPlot * | addLookupTable (vtkLookupTable *lut) |
vtkPlot * | addOpacityFunction (vtkPiecewiseFunction *opacityTF, bool editable=true) |
vtkPlot * | addOpacityFunctionControlPoints (vtkPiecewiseFunction *opacityTF) |
vtkPlot * | addPiecewiseFunction (vtkPiecewiseFunction *piecewiseTF, bool editable=true) |
vtkPlot * | addPiecewiseFunctionControlPoints (vtkPiecewiseFunction *piecewiseTF) |
virtual void | addPlot (vtkPlot *plot) |
bool | areBordersVisible () const |
virtual void | boundAxesToChartBounds () |
Reimplemented to set the bounds to the plots as well. More... | |
QList< vtkPlot * > | colorTransferFunctionPlots () const |
QList< vtkPlot * > | colorTransferFunctionPlots (vtkColorTransferFunction *colorTF) const |
QList< vtkControlPointsItem * > | controlPointsItems () const |
ctkVTKScalarsToColorsView (QWidget *parent=0) | |
QList< vtkPlot * > | lookupTablePlots () const |
QList< vtkPlot * > | lookupTablePlots (vtkLookupTable *lut) const |
QList< vtkPlot * > | opacityFunctionPlots () const |
QList< vtkPlot * > | opacityFunctionPlots (vtkPiecewiseFunction *opacityTF) const |
QList< vtkPlot * > | plots () const |
template<class T > | |
QList< T * > | plots () const |
void | setBordersVisible (bool show) |
void | setColorTransferFunctionToPlots (vtkColorTransferFunction *colorTF) |
void | setLookuptTableToPlots (vtkLookupTable *lut) |
void | setOpacityFunctionToPlots (vtkPiecewiseFunction *opacityTF) |
void | setPiecewiseFunctionToPlots (vtkPiecewiseFunction *piecewiseTF) |
void | setPlotsUserBounds (double *bounds) |
void | setValidBounds (double bounds[4]) |
void | validBounds (double bounds[4]) const |
virtual | ~ctkVTKScalarsToColorsView () |
![]() | |
Q_INVOKABLE vtkChartXY * | chart () const |
void | chartBounds (double bounds[8]) const |
void | chartExtent (double bounds[8]) const |
void | chartUserBounds (double *bounds) const |
ctkVTKChartView (QWidget *parent=0) | |
Q_INVOKABLE vtkIdType | plotIndex (vtkPlot *plot) |
virtual Q_INVOKABLE void | removePlot (vtkPlot *plot) |
Q_INVOKABLE vtkContextScene * | scene () const |
void | setChartUserBounds (double *bounds) |
void | setChartUserExtent (double *userExtent) |
void | setTitle (const QString &title) |
QString | title () const |
Title that appears inside the view. More... | |
virtual | ~ctkVTKChartView () |
![]() | |
ctkVTKOpenGLNativeWidget (QWidget *parent=0) | |
virtual | ~ctkVTKOpenGLNativeWidget () |
Protected Slots | |
void | onBoundsChanged () |
Protected Attributes | |
QScopedPointer< ctkVTKScalarsToColorsViewPrivate > | d_ptr |
![]() | |
QScopedPointer< ctkVTKChartViewPrivate > | d_ptr |
Properties | |
QVTK_OBJECTbool | bordersVisible |
![]() | |
QVTK_OBJECTQString | title |
Additional Inherited Members | |
![]() | |
void | chartBoundsToPlotBounds (double bounds[8], double plotBounds[4]) const |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) |
virtual void | onChartUpdated () |
Definition at line 38 of file ctkVTKScalarsToColorsView.h.
Definition at line 48 of file ctkVTKScalarsToColorsView.h.
ctkVTKScalarsToColorsView::ctkVTKScalarsToColorsView | ( | QWidget * | parent = 0 | ) |
|
virtual |
Q_INVOKABLE vtkPlot* ctkVTKScalarsToColorsView::addColorTransferFunction | ( | vtkColorTransferFunction * | colorTF, |
bool | editable = true |
||
) |
vtkPlot* ctkVTKScalarsToColorsView::addColorTransferFunctionControlPoints | ( | vtkColorTransferFunction * | colorTF | ) |
vtkPlot* ctkVTKScalarsToColorsView::addCompositeFunction | ( | vtkColorTransferFunction * | colorTF, |
vtkPiecewiseFunction * | opacityTF, | ||
bool | colorTFEditable = true , |
||
bool | opacityTFEditable = true |
||
) |
vtkPlot* ctkVTKScalarsToColorsView::addCompositeFunctionControlPoints | ( | vtkColorTransferFunction * | colorTF, |
vtkPiecewiseFunction * | opacityTF | ||
) |
vtkPlot* ctkVTKScalarsToColorsView::addLookupTable | ( | vtkLookupTable * | lut | ) |
vtkPlot* ctkVTKScalarsToColorsView::addOpacityFunction | ( | vtkPiecewiseFunction * | opacityTF, |
bool | editable = true |
||
) |
vtkPlot* ctkVTKScalarsToColorsView::addOpacityFunctionControlPoints | ( | vtkPiecewiseFunction * | opacityTF | ) |
vtkPlot* ctkVTKScalarsToColorsView::addPiecewiseFunction | ( | vtkPiecewiseFunction * | piecewiseTF, |
bool | editable = true |
||
) |
vtkPlot* ctkVTKScalarsToColorsView::addPiecewiseFunctionControlPoints | ( | vtkPiecewiseFunction * | piecewiseTF | ) |
|
virtual |
Generic function to add a custom plot. plot is added into the chart Emit the plotAdded(vtkPlot*) signal.
Reimplemented from ctkVTKChartView.
bool ctkVTKScalarsToColorsView::areBordersVisible | ( | ) | const |
|
virtual |
Reimplemented to set the bounds to the plots as well.
Reimplemented from ctkVTKChartView.
QList<vtkPlot*> ctkVTKScalarsToColorsView::colorTransferFunctionPlots | ( | ) | const |
QList<vtkPlot*> ctkVTKScalarsToColorsView::colorTransferFunctionPlots | ( | vtkColorTransferFunction * | colorTF | ) | const |
QList<vtkControlPointsItem*> ctkVTKScalarsToColorsView::controlPointsItems | ( | ) | const |
|
slot |
|
signal |
Emitted when a new function is set to the view
QList<vtkPlot*> ctkVTKScalarsToColorsView::lookupTablePlots | ( | ) | const |
QList<vtkPlot*> ctkVTKScalarsToColorsView::lookupTablePlots | ( | vtkLookupTable * | lut | ) | const |
|
slot |
Move all the control points by a given offset.
|
protectedslot |
QList<vtkPlot*> ctkVTKScalarsToColorsView::opacityFunctionPlots | ( | ) | const |
QList<vtkPlot*> ctkVTKScalarsToColorsView::opacityFunctionPlots | ( | vtkPiecewiseFunction * | opacityTF | ) | const |
QList<vtkPlot*> ctkVTKScalarsToColorsView::plots | ( | ) | const |
QList< T * > ctkVTKScalarsToColorsView::plots |
Definition at line 130 of file ctkVTKScalarsToColorsView.h.
void ctkVTKScalarsToColorsView::setBordersVisible | ( | bool | show | ) |
void ctkVTKScalarsToColorsView::setColorTransferFunctionToPlots | ( | vtkColorTransferFunction * | colorTF | ) |
void ctkVTKScalarsToColorsView::setLookuptTableToPlots | ( | vtkLookupTable * | lut | ) |
void ctkVTKScalarsToColorsView::setOpacityFunctionToPlots | ( | vtkPiecewiseFunction * | opacityTF | ) |
void ctkVTKScalarsToColorsView::setPiecewiseFunctionToPlots | ( | vtkPiecewiseFunction * | piecewiseTF | ) |
void ctkVTKScalarsToColorsView::setPlotsUserBounds | ( | double * | bounds | ) |
void ctkVTKScalarsToColorsView::setValidBounds | ( | double | bounds[4] | ) |
|
slot |
Spread all the control points by a given offset. A value >0 will space the control points, a value <0. will contract them.
void ctkVTKScalarsToColorsView::validBounds | ( | double | bounds[4] | ) | const |
|
protected |
Definition at line 121 of file ctkVTKScalarsToColorsView.h.
|
readwrite |
Add an empty space around the view to give space to the corner control points. False by default
Definition at line 42 of file ctkVTKScalarsToColorsView.h.