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

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

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

Public Types

typedef ctkVTKChartView Superclass
 
- Public Types inherited from ctkVTKChartView
typedef ctkVTKOpenGLNativeWidget Superclass
 
- Public Types inherited from ctkVTKOpenGLNativeWidget
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)
 
- Public Slots inherited from ctkVTKChartView
void removeAllPlots ()
 Remove all the plots from the chart. More...
 
virtual void setAxesToChartBounds ()
 

Signals

void functionChanged ()
 
- Signals inherited from ctkVTKChartView
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 ()
 
- Public Member Functions inherited from ctkVTKChartView
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 ()
 
- Public Member Functions inherited from ctkVTKOpenGLNativeWidget
 ctkVTKOpenGLNativeWidget (QWidget *parent=0)
 
virtual ~ctkVTKOpenGLNativeWidget ()
 

Protected Slots

void onBoundsChanged ()
 

Protected Attributes

QScopedPointer< ctkVTKScalarsToColorsViewPrivate > d_ptr
 
- Protected Attributes inherited from ctkVTKChartView
QScopedPointer< ctkVTKChartViewPrivate > d_ptr
 

Properties

QVTK_OBJECTbool bordersVisible
 
- Properties inherited from ctkVTKChartView
QVTK_OBJECTQString title
 

Additional Inherited Members

- Protected Member Functions inherited from ctkVTKChartView
void chartBoundsToPlotBounds (double bounds[8], double plotBounds[4]) const
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void onChartUpdated ()
 

Detailed Description

Definition at line 38 of file ctkVTKScalarsToColorsView.h.

Member Typedef Documentation

◆ Superclass

Definition at line 48 of file ctkVTKScalarsToColorsView.h.

Constructor & Destructor Documentation

◆ ctkVTKScalarsToColorsView()

ctkVTKScalarsToColorsView::ctkVTKScalarsToColorsView ( QWidget *  parent = 0)

◆ ~ctkVTKScalarsToColorsView()

virtual ctkVTKScalarsToColorsView::~ctkVTKScalarsToColorsView ( )
virtual

Member Function Documentation

◆ addColorTransferFunction()

Q_INVOKABLE vtkPlot* ctkVTKScalarsToColorsView::addColorTransferFunction ( vtkColorTransferFunction *  colorTF,
bool  editable = true 
)

◆ addColorTransferFunctionControlPoints()

vtkPlot* ctkVTKScalarsToColorsView::addColorTransferFunctionControlPoints ( vtkColorTransferFunction *  colorTF)

◆ addCompositeFunction()

vtkPlot* ctkVTKScalarsToColorsView::addCompositeFunction ( vtkColorTransferFunction *  colorTF,
vtkPiecewiseFunction *  opacityTF,
bool  colorTFEditable = true,
bool  opacityTFEditable = true 
)

◆ addCompositeFunctionControlPoints()

vtkPlot* ctkVTKScalarsToColorsView::addCompositeFunctionControlPoints ( vtkColorTransferFunction *  colorTF,
vtkPiecewiseFunction *  opacityTF 
)

◆ addLookupTable()

vtkPlot* ctkVTKScalarsToColorsView::addLookupTable ( vtkLookupTable *  lut)

◆ addOpacityFunction()

vtkPlot* ctkVTKScalarsToColorsView::addOpacityFunction ( vtkPiecewiseFunction *  opacityTF,
bool  editable = true 
)

◆ addOpacityFunctionControlPoints()

vtkPlot* ctkVTKScalarsToColorsView::addOpacityFunctionControlPoints ( vtkPiecewiseFunction *  opacityTF)

◆ addPiecewiseFunction()

vtkPlot* ctkVTKScalarsToColorsView::addPiecewiseFunction ( vtkPiecewiseFunction *  piecewiseTF,
bool  editable = true 
)

◆ addPiecewiseFunctionControlPoints()

vtkPlot* ctkVTKScalarsToColorsView::addPiecewiseFunctionControlPoints ( vtkPiecewiseFunction *  piecewiseTF)

◆ addPlot()

virtual void ctkVTKScalarsToColorsView::addPlot ( vtkPlot *  plot)
virtual

Generic function to add a custom plot. plot is added into the chart Emit the plotAdded(vtkPlot*) signal.

Reimplemented from ctkVTKChartView.

◆ areBordersVisible()

bool ctkVTKScalarsToColorsView::areBordersVisible ( ) const

◆ boundAxesToChartBounds()

virtual void ctkVTKScalarsToColorsView::boundAxesToChartBounds ( )
virtual

Reimplemented to set the bounds to the plots as well.

Reimplemented from ctkVTKChartView.

◆ colorTransferFunctionPlots() [1/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::colorTransferFunctionPlots ( ) const

◆ colorTransferFunctionPlots() [2/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::colorTransferFunctionPlots ( vtkColorTransferFunction *  colorTF) const

◆ controlPointsItems()

QList<vtkControlPointsItem*> ctkVTKScalarsToColorsView::controlPointsItems ( ) const

◆ editPoint

void ctkVTKScalarsToColorsView::editPoint ( vtkObject *  plot,
void *  pointId 
)
slot

◆ functionChanged

void ctkVTKScalarsToColorsView::functionChanged ( )
signal

◆ lookupTablePlots() [1/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::lookupTablePlots ( ) const

◆ lookupTablePlots() [2/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::lookupTablePlots ( vtkLookupTable *  lut) const

◆ moveAllPoints

void ctkVTKScalarsToColorsView::moveAllPoints ( double  xOffset,
double  yOffset = 0.,
bool  dontMoveFirstAndLast = false 
)
slot

Move all the control points by a given offset.

See also
vtkControlPoints::movePoints()

◆ onBoundsChanged

void ctkVTKScalarsToColorsView::onBoundsChanged ( )
protectedslot

◆ opacityFunctionPlots() [1/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::opacityFunctionPlots ( ) const

◆ opacityFunctionPlots() [2/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::opacityFunctionPlots ( vtkPiecewiseFunction *  opacityTF) const

◆ plots() [1/2]

QList<vtkPlot*> ctkVTKScalarsToColorsView::plots ( ) const

◆ plots() [2/2]

template<class T >
QList< T * > ctkVTKScalarsToColorsView::plots

Definition at line 130 of file ctkVTKScalarsToColorsView.h.

◆ setBordersVisible()

void ctkVTKScalarsToColorsView::setBordersVisible ( bool  show)

◆ setColorTransferFunctionToPlots()

void ctkVTKScalarsToColorsView::setColorTransferFunctionToPlots ( vtkColorTransferFunction *  colorTF)

◆ setLookuptTableToPlots()

void ctkVTKScalarsToColorsView::setLookuptTableToPlots ( vtkLookupTable *  lut)

◆ setOpacityFunctionToPlots()

void ctkVTKScalarsToColorsView::setOpacityFunctionToPlots ( vtkPiecewiseFunction *  opacityTF)

◆ setPiecewiseFunctionToPlots()

void ctkVTKScalarsToColorsView::setPiecewiseFunctionToPlots ( vtkPiecewiseFunction *  piecewiseTF)

◆ setPlotsUserBounds()

void ctkVTKScalarsToColorsView::setPlotsUserBounds ( double *  bounds)

◆ setValidBounds()

void ctkVTKScalarsToColorsView::setValidBounds ( double  bounds[4])

◆ spreadAllPoints

void ctkVTKScalarsToColorsView::spreadAllPoints ( double  factor = 1.,
bool  dontMoveFirstAndLast = false 
)
slot

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

See also
vtkControlPoints::spreadPoints()

◆ validBounds()

void ctkVTKScalarsToColorsView::validBounds ( double  bounds[4]) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKScalarsToColorsViewPrivate> ctkVTKScalarsToColorsView::d_ptr
protected

Definition at line 121 of file ctkVTKScalarsToColorsView.h.

Property Documentation

◆ bordersVisible

QVTK_OBJECTbool ctkVTKScalarsToColorsView::bordersVisible
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.


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