VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtChartAxisCornerDomain.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 _vtkQtChartAxisCornerDomain_h 00025 #define _vtkQtChartAxisCornerDomain_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include "vtkQtChartAxis.h" // needed for enum 00029 00030 class vtkQtChartAxisCornerDomainInternal; 00031 class vtkQtChartAxisDomainPriority; 00032 class vtkQtChartSeriesDomain; 00033 00034 00039 class VTKQTCHART_EXPORT vtkQtChartAxisCornerDomain 00040 { 00041 public: 00042 vtkQtChartAxisCornerDomain(); 00043 vtkQtChartAxisCornerDomain(const vtkQtChartAxisCornerDomain &other); 00044 ~vtkQtChartAxisCornerDomain(); 00045 00054 int getNumberOfDomains() const; 00055 00061 const vtkQtChartSeriesDomain *getDomain(int index) const; 00062 00068 vtkQtChartSeriesDomain *getDomain(int index); 00069 00076 const vtkQtChartSeriesDomain *getDomain( 00077 const vtkQtChartAxisDomainPriority &xPriority, 00078 const vtkQtChartAxisDomainPriority &yPriority) const; 00079 00086 const vtkQtChartSeriesDomain *getDomain( 00087 vtkQtChartAxis::AxisDomain xDomain, 00088 const vtkQtChartAxisDomainPriority &yPriority) const; 00089 00096 const vtkQtChartSeriesDomain *getDomain( 00097 const vtkQtChartAxisDomainPriority &xPriority, 00098 vtkQtChartAxis::AxisDomain yDomain) const; 00099 00107 const vtkQtChartSeriesDomain *getDomain( 00108 vtkQtChartAxis::AxisDomain xDomain, 00109 vtkQtChartAxis::AxisDomain yDomain, int *index=0) const; 00110 00123 bool mergeDomain(const vtkQtChartSeriesDomain &domain, int *index=0); 00124 00128 void removeDomain(int index); 00129 00131 void clear(); 00132 00138 void setHorizontalPreferences(bool padRange, bool expandToZero, 00139 bool addSpace); 00140 00146 void setVerticalPreferences(bool padRange, bool expandToZero, 00147 bool addSpace); 00148 00149 vtkQtChartAxisCornerDomain &operator=( 00150 const vtkQtChartAxisCornerDomain &other); 00151 00152 private: 00153 vtkQtChartAxisCornerDomainInternal *Internal; 00154 }; 00155 00156 #endif