VTK
vtkQtChartAxisCornerDomain.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartAxisCornerDomain.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 _vtkQtChartAxisCornerDomain_h
25 #define _vtkQtChartAxisCornerDomain_h
26 
27 #include "vtkQtChartExport.h"
28 #include "vtkQtChartAxis.h" // needed for enum
29 
30 class vtkQtChartAxisCornerDomainInternal;
33 
34 
39 class VTKQTCHART_EXPORT vtkQtChartAxisCornerDomain
40 {
41 public:
45 
54  int getNumberOfDomains() const;
55 
61  const vtkQtChartSeriesDomain *getDomain(int index) const;
62 
68  vtkQtChartSeriesDomain *getDomain(int index);
69 
76  const vtkQtChartSeriesDomain *getDomain(
77  const vtkQtChartAxisDomainPriority &xPriority,
78  const vtkQtChartAxisDomainPriority &yPriority) const;
79 
86  const vtkQtChartSeriesDomain *getDomain(
88  const vtkQtChartAxisDomainPriority &yPriority) const;
89 
96  const vtkQtChartSeriesDomain *getDomain(
97  const vtkQtChartAxisDomainPriority &xPriority,
98  vtkQtChartAxis::AxisDomain yDomain) const;
99 
107  const vtkQtChartSeriesDomain *getDomain(
109  vtkQtChartAxis::AxisDomain yDomain, int *index=0) const;
110 
123  bool mergeDomain(const vtkQtChartSeriesDomain &domain, int *index=0);
124 
128  void removeDomain(int index);
129 
131  void clear();
132 
138  void setHorizontalPreferences(bool padRange, bool expandToZero,
139  bool addSpace);
140 
146  void setVerticalPreferences(bool padRange, bool expandToZero,
147  bool addSpace);
148 
149  vtkQtChartAxisCornerDomain &operator=(
150  const vtkQtChartAxisCornerDomain &other);
151 
152 private:
153  vtkQtChartAxisCornerDomainInternal *Internal;
154 };
155 
156 #endif