 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkVTKChartView_h
22 #define __ctkVTKChartView_h
27 #include "ctkVisualizationVTKWidgetsExport.h"
28 class ctkVTKChartViewPrivate;
32 class vtkContextScene;
40 Q_PROPERTY(QString title READ title WRITE setTitle)
49 Q_INVOKABLE
virtual void addPlot(vtkPlot* plot);
61 Q_INVOKABLE vtkChartXY*
chart()
const;
62 Q_INVOKABLE vtkContextScene*
scene()
const;
102 QScopedPointer<ctkVTKChartViewPrivate>
d_ptr;
QString title() const
Title that appears inside the view.
QScopedPointer< ctkVTKChartViewPrivate > d_ptr
ctkVTKChartView(QWidget *parent=0)
Q_INVOKABLE vtkContextScene * scene() const
void setTitle(const QString &title)
virtual Q_INVOKABLE void removePlot(vtkPlot *plot)
virtual void onChartUpdated()
void setChartUserExtent(double *userExtent)
#define QVTK_OBJECT
Define VTK/Qt event/slot connection utility methods. It is a convenient macro that declares and defin...
void chartBoundsToPlotBounds(double bounds[8], double plotBounds[4]) const
void setChartUserBounds(double *bounds)
void plotAdded(vtkPlot *plot)
Q_INVOKABLE vtkIdType plotIndex(vtkPlot *plot)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
virtual void setAxesToChartBounds()
virtual void boundAxesToChartBounds()
virtual Q_INVOKABLE void addPlot(vtkPlot *plot)
void removeAllPlots()
Remove all the plots from the chart.
void boundsChanged()
Fired anytime the bound of a plot modifies the overall bounds.
void chartExtent(double bounds[8]) const
Q_INVOKABLE vtkChartXY * chart() const
ctkVTKOpenGLNativeWidget Superclass
virtual ~ctkVTKChartView()
void chartUserBounds(double *bounds) const
void extentChanged()
Fired anytime an axis is modified.
void chartBounds(double bounds[8]) const
void plotRemoved(vtkPlot *plot)