VTK
vtkQtChartView.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartView.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
30 #ifndef __vtkQtChartView_h
31 #define __vtkQtChartView_h
32 
33 #include "QVTKWin32Header.h"
34 #include "vtkQtView.h"
35 #include <QPointer>
36 
37 class vtkQtChartArea;
38 class vtkQtChartAxis;
39 class vtkQtChartLegend;
45 class vtkQtChartWidget;
46 class vtkTable;
47 
48 class QVTK_EXPORT vtkQtChartView : public vtkQtView
49 {
50 Q_OBJECT
51 
52 public:
53  vtkTypeMacro(vtkQtChartView, vtkQtView);
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
59  virtual QWidget* GetWidget();
60 
62  virtual void Update();
63 
65  virtual void Render();
66 
68  void Show();
69 
72  void AddTableToView(vtkTable* table);
73 
75  void SetTitle(const char* title);
76 
78  void SetTitleFont(const char* family, int pointSize, bool bold, bool italic);
79 
81  void SetTitleColor(double red, double green, double blue);
82 
84  void SetTitleAlignment(int alignment);
85 
87  void SetAxisTitle(int index, const char* title);
88 
90 
91  void SetAxisTitleFont(int index, const char* family, int pointSize,
92  bool bold, bool italic);
94 
96  void SetAxisTitleColor(int index, double red, double green, double blue);
97 
99  void SetAxisTitleAlignment(int index, int alignment);
100 
102  void SetLegendVisibility(bool visible);
103 
105  void SetLegendLocation(int location);
106 
108  void SetLegendFlow(int flow);
109 
111  void SetAxisVisibility(int index, bool visible);
112 
114  void SetAxisColor(int index, double red, double green, double blue);
115 
117  void SetGridVisibility(int index, bool visible);
118 
120  void SetGridColorType(int index, int gridColorType);
121 
123  void SetGridColor(int index, double red, double green, double blue);
124 
126  void SetAxisLabelVisibility(int index, bool visible);
127 
129 
130  void SetAxisLabelFont(int index, const char* family, int pointSize,
131  bool bold, bool italic);
133 
135  void SetAxisLabelColor(int index, double red, double green, double blue);
136 
138  void SetAxisLabelNotation(int index, int notation);
139 
141  void SetAxisLabelPrecision(int index, int precision);
142 
144  void SetAxisScale(int index, int scale);
145 
147  void SetAxisBehavior(int index, int behavior);
148 
150  void SetAxisRange(int index, double minimum, double maximum);
151 
153  void SetAxisRange(int index, int minimum, int maximum);
154 
156  virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector);
157 
160  vtkQtChartArea* GetChartArea();
161 
163  vtkQtChartAxis* GetAxis(int index);
164 
166  virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel()=0;
167 
169  virtual vtkQtChartSeriesOptionsModelCollection* GetChartOptionsModel();
170 
172  virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series) = 0;
173 
174  // Gets the chart series layer
175  virtual vtkQtChartSeriesLayer* GetChartSeriesLayer()=0;
176 
178  vtkQtChartLegend* GetLegend();
179 
181  virtual void SetupDefaultInteractor();
182 
184 
185  void SetColorSchemeToSpectrum();
186  void SetColorSchemeToWarm();
187  void SetColorSchemeToCool();
188  void SetColorSchemeToBlues();
189  void SetColorSchemeToWildFlower();
190  void SetColorSchemeToCitrus();
192 
193 protected:
194  vtkQtChartView();
195  ~vtkQtChartView();
196 
199 
200 private:
201  class vtkInternal;
202  vtkInternal* Internal;
203 
204 private:
205  vtkQtChartView(const vtkQtChartView&); // Not implemented.
206  void operator=(const vtkQtChartView&); // Not implemented.
207 };
208 
209 #endif
virtual void Update()
virtual QWidget * GetWidget()=0
Proxy object to connect input/output ports.
The vtkQtChartSeriesOptionsModelCollection class is used to combine chart series options models...
a simple class to control print indentation
Definition: vtkIndent.h:37
void PrintSelf(ostream &os, vtkIndent indent)
The vtkQtChartWidget class is a container for the chart widgets.
The superclass for all representations.
The vtkQtChartSeriesLayer class is the base class for chart layers that use the chart series model...
The vtkQtChartSeriesOptions class stores the common series drawing options.
The vtkQtChartSeriesModelCollection class is used to combine chart series models. ...
The vtkQtChartLegend class displays a chart legend.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
The vtkQtChartArea class manages the chart axes and layers.
Superclass for Qt widget-based views.
Definition: vtkQtView.h:30
The vtkQtChartAxis class is used to display a cartesian axis.
Wraps a vtkQtChartArea into a VTK view.
virtual vtkDataRepresentation * CreateDefaultRepresentation(vtkAlgorithmOutput *conn)
The vtkQtChartMouseSelection class is used to select chart elements based on the current selection mo...