VTK
vtkQtChartSeriesSelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartSeriesSelection.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 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtChartSeriesSelection_h
25 #define _vtkQtChartSeriesSelection_h
26 
27 #include "vtkQtChartExport.h"
28 #include <QMap> // needed for return type
29 #include "vtkQtChartIndexRangeList.h" // needed for return type.
30 
31 class vtkQtChartSeriesSelectionInternal;
32 
33 
38 class VTKQTCHART_EXPORT vtkQtChartSeriesSelection
39 {
40 public:
42  {
43  NoSelection = 0,
45  PointSelection
46  };
47 
48 public:
52 
54 
59  bool isEmpty() const;
60 
65  SelectionType getType() const;
66 
68  bool clear();
69 
71 
72  const vtkQtChartIndexRangeList &getSeries() const;
77 
83  bool setSeries(const vtkQtChartIndexRangeList &series);
84 
91  bool setSeries(int first, int last);
92 
98  bool addSeries(const vtkQtChartIndexRangeList &series);
99 
106  bool addSeries(int first, int last);
107 
113  bool subtractSeries(const vtkQtChartIndexRangeList &series);
114 
121  bool subtractSeries(int first, int last);
122 
128  bool xorSeries(const vtkQtChartIndexRangeList &series);
129 
136  bool xorSeries(int first, int last);
137 
142  void limitSeries(int minimum, int maximum);
143 
151  bool offsetSeries(int first, int offset);
153 
155 
156  const QMap<int, vtkQtChartIndexRangeList> &getPoints() const;
161 
167  bool setPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
168 
175  bool setPoints(int series, const vtkQtChartIndexRangeList &indexes);
176 
182  bool addPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
183 
190  bool addPoints(int series, const vtkQtChartIndexRangeList &indexes);
191 
197  bool subtractPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
198 
205  bool subtractPoints(int series, const vtkQtChartIndexRangeList &indexes);
206 
214  bool subtractPoints(int first, int last);
215 
221  bool xorPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
222 
229  bool xorPoints(int series, const vtkQtChartIndexRangeList &indexes);
230 
236  void limitPoints(int series, int minimum, int maximum);
238 
239 private:
240  vtkQtChartSeriesSelectionInternal *Internal;
241 };
242 
243 #endif
The vtkQtChartSeriesSelection class is used for series and point selection.
The selection contains series indexes.
The vtkQtChartIndexRangeList class stores a searchable list of index ranges.