21 #ifndef __ctkVTKChartView_h 22 #define __ctkVTKChartView_h 26 #include "ctkVisualizationVTKWidgetsExport.h" 27 class ctkVTKChartViewPrivate;
30 #if CTK_USE_QVTKOPENGLWIDGET 31 #include <QVTKOpenGLWidget.h> 33 #include <QVTKWidget.h> 37 class vtkContextScene;
41 #if CTK_USE_QVTKOPENGLWIDGET 42 class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT
ctkVTKChartView :
public QVTKOpenGLWidget
49 Q_PROPERTY(QString title READ title WRITE setTitle)
52 #if CTK_USE_QVTKOPENGLWIDGET 62 Q_INVOKABLE
virtual void addPlot(vtkPlot* plot);
66 Q_INVOKABLE
virtual void removePlot(vtkPlot* plot);
70 Q_INVOKABLE vtkIdType
plotIndex(vtkPlot* plot);
74 Q_INVOKABLE vtkChartXY*
chart()
const;
75 Q_INVOKABLE vtkContextScene*
scene()
const;
114 QScopedPointer<ctkVTKChartViewPrivate>
d_ptr;
void setChartUserBounds(double *bounds)
void plotRemoved(vtkPlot *plot)
void chartBounds(double bounds[8]) const
Q_INVOKABLE vtkChartXY * chart() const
virtual Q_INVOKABLE void addPlot(vtkPlot *plot)
void chartExtent(double bounds[8]) const
void setTitle(const QString &title)
Q_INVOKABLE vtkIdType plotIndex(vtkPlot *plot)
void chartUserBounds(double *bounds) const
virtual ~ctkVTKChartView()
virtual void boundAxesToChartBounds()
void extentChanged()
Fired anytime an axis is modified.
void removeAllPlots()
Remove all the plots from the chart.
#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
virtual void mouseDoubleClickEvent(QMouseEvent *event)
virtual void setAxesToChartBounds()
virtual void onChartUpdated()
Q_INVOKABLE vtkContextScene * scene() const
QString title() const
Title that appears inside the view.
QScopedPointer< ctkVTKChartViewPrivate > d_ptr
virtual Q_INVOKABLE void removePlot(vtkPlot *plot)
ctkVTKChartView(QWidget *parent=0)
void boundsChanged()
Fired anytime the bound of a plot modifies the overal bounds.
void plotAdded(vtkPlot *plot)