VTK
dox/GUISupport/Qt/Chart/vtkQtChartSeriesSelection.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtChartSeriesSelection.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00020 
00023 
00024 #ifndef _vtkQtChartSeriesSelection_h
00025 #define _vtkQtChartSeriesSelection_h
00026 
00027 #include "vtkQtChartExport.h"
00028 #include <QMap> // needed for return type
00029 #include "vtkQtChartIndexRangeList.h" // needed for return type.
00030 
00031 class vtkQtChartSeriesSelectionInternal;
00032 
00033 
00038 class VTKQTCHART_EXPORT vtkQtChartSeriesSelection
00039 {
00040 public:
00041   enum SelectionType
00042     {
00043     NoSelection = 0, 
00044     SeriesSelection, 
00045     PointSelection   
00046     };
00047 
00048 public:
00049   vtkQtChartSeriesSelection();
00050   vtkQtChartSeriesSelection(const vtkQtChartSeriesSelection &other);
00051   ~vtkQtChartSeriesSelection();
00052 
00053   vtkQtChartSeriesSelection &operator=(const vtkQtChartSeriesSelection &other);
00054 
00059   bool isEmpty() const;
00060 
00065   SelectionType getType() const;
00066 
00068   bool clear();
00069 
00071 
00072 
00073 
00074 
00075 
00076   const vtkQtChartIndexRangeList &getSeries() const;
00077 
00083   bool setSeries(const vtkQtChartIndexRangeList &series);
00084 
00091   bool setSeries(int first, int last);
00092 
00098   bool addSeries(const vtkQtChartIndexRangeList &series);
00099 
00106   bool addSeries(int first, int last);
00107 
00113   bool subtractSeries(const vtkQtChartIndexRangeList &series);
00114 
00121   bool subtractSeries(int first, int last);
00122 
00128   bool xorSeries(const vtkQtChartIndexRangeList &series);
00129 
00136   bool xorSeries(int first, int last);
00137 
00142   void limitSeries(int minimum, int maximum);
00143 
00151   bool offsetSeries(int first, int offset);
00153 
00155 
00156 
00157 
00158 
00159 
00160   const QMap<int, vtkQtChartIndexRangeList> &getPoints() const;
00161 
00167   bool setPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
00168 
00175   bool setPoints(int series, const vtkQtChartIndexRangeList &indexes);
00176 
00182   bool addPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
00183 
00190   bool addPoints(int series, const vtkQtChartIndexRangeList &indexes);
00191 
00197   bool subtractPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
00198 
00205   bool subtractPoints(int series, const vtkQtChartIndexRangeList &indexes);
00206 
00214   bool subtractPoints(int first, int last);
00215 
00221   bool xorPoints(const QMap<int, vtkQtChartIndexRangeList> &points);
00222 
00229   bool xorPoints(int series, const vtkQtChartIndexRangeList &indexes);
00230 
00236   void limitPoints(int series, int minimum, int maximum);
00238 
00239 private:
00240   vtkQtChartSeriesSelectionInternal *Internal; 
00241 };
00242 
00243 #endif