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 Member Functions | Protected Attributes | Properties | List of all members
ctkVTKChartView Class Reference

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

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

Public Types

typedef ctkVTKOpenGLNativeWidget Superclass
 
- Public Types inherited from ctkVTKOpenGLNativeWidget
typedef QVTKWidget Superclass
 

Public Slots

virtual void boundAxesToChartBounds ()
 
void removeAllPlots ()
 Remove all the plots from the chart. More...
 
virtual void setAxesToChartBounds ()
 

Signals

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

virtual Q_INVOKABLE void addPlot (vtkPlot *plot)
 
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 Member Functions

void chartBoundsToPlotBounds (double bounds[8], double plotBounds[4]) const
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void onChartUpdated ()
 

Protected Attributes

QScopedPointer< ctkVTKChartViewPrivate > d_ptr
 

Properties

QVTK_OBJECTQString title
 

Detailed Description

Definition at line 36 of file ctkVTKChartView.h.

Member Typedef Documentation

◆ Superclass

Definition at line 43 of file ctkVTKChartView.h.

Constructor & Destructor Documentation

◆ ctkVTKChartView()

ctkVTKChartView::ctkVTKChartView ( QWidget *  parent = 0)

◆ ~ctkVTKChartView()

virtual ctkVTKChartView::~ctkVTKChartView ( )
virtual

Member Function Documentation

◆ addPlot()

virtual Q_INVOKABLE void ctkVTKChartView::addPlot ( vtkPlot *  plot)
virtual

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

Reimplemented in ctkVTKScalarsToColorsView.

◆ boundAxesToChartBounds

virtual void ctkVTKChartView::boundAxesToChartBounds ( )
virtualslot

Reimplemented in ctkVTKScalarsToColorsView.

◆ boundsChanged

void ctkVTKChartView::boundsChanged ( )
signal

Fired anytime the bound of a plot modifies the overall bounds.

◆ chart()

Q_INVOKABLE vtkChartXY* ctkVTKChartView::chart ( ) const

Utility function that returns the view chart. It can be used for customizing the chart display options (axes, legend...)

◆ chartBounds()

void ctkVTKChartView::chartBounds ( double  bounds[8]) const

Return the chart bounds for the 4 chart axes. bounds must be an array of 8 doubles. If no bounds is provided by the user, compute the bounds for the 4 chart axes from the vtkPlots bounds.

◆ chartBoundsToPlotBounds()

void ctkVTKChartView::chartBoundsToPlotBounds ( double  bounds[8],
double  plotBounds[4] 
) const
protected

◆ chartExtent()

void ctkVTKChartView::chartExtent ( double  bounds[8]) const

Return the chart extent for the 4 chart axes. extent must be an array of 8 doubles The current extent is the visible area on the chart. it is equivalent to the Minimum/Maximum of the axes

◆ chartUserBounds()

void ctkVTKChartView::chartUserBounds ( double *  bounds) const

◆ extentChanged

void ctkVTKChartView::extentChanged ( )
signal

Fired anytime an axis is modified.

◆ mouseDoubleClickEvent()

virtual void ctkVTKChartView::mouseDoubleClickEvent ( QMouseEvent *  event)
protectedvirtual

◆ onChartUpdated()

virtual void ctkVTKChartView::onChartUpdated ( )
protectedvirtual

◆ plotAdded

void ctkVTKChartView::plotAdded ( vtkPlot *  plot)
signal

◆ plotIndex()

Q_INVOKABLE vtkIdType ctkVTKChartView::plotIndex ( vtkPlot *  plot)

Return the id of the plot in the chart. -1 if the plot is not found in the chart

◆ plotRemoved

void ctkVTKChartView::plotRemoved ( vtkPlot *  plot)
signal

◆ removeAllPlots

void ctkVTKChartView::removeAllPlots ( )
slot

Remove all the plots from the chart.

◆ removePlot()

virtual Q_INVOKABLE void ctkVTKChartView::removePlot ( vtkPlot *  plot)
virtual

Remove the plot from the chart. Do nothing if plot is not in the chart. Emit the plotRemoved(vtkPlot*) signal.

◆ scene()

Q_INVOKABLE vtkContextScene* ctkVTKChartView::scene ( ) const

◆ setAxesToChartBounds

virtual void ctkVTKChartView::setAxesToChartBounds ( )
virtualslot

◆ setChartUserBounds()

void ctkVTKChartView::setChartUserBounds ( double *  bounds)

◆ setChartUserExtent()

void ctkVTKChartView::setChartUserExtent ( double *  userExtent)

◆ setTitle()

void ctkVTKChartView::setTitle ( const QString &  title)

◆ title()

QString ctkVTKChartView::title ( ) const

Title that appears inside the view.

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkVTKChartViewPrivate> ctkVTKChartView::d_ptr
protected

Definition at line 102 of file ctkVTKChartView.h.

Property Documentation

◆ title

QVTK_OBJECTQString ctkVTKChartView::title
readwrite

Definition at line 39 of file ctkVTKChartView.h.


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