VTK
vtkQtBarChartOptions.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtBarChartOptions.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 _vtkQtBarChartOptions_h
25 #define _vtkQtBarChartOptions_h
26 
27 #include "vtkQtChartExport.h"
28 #include <QObject>
29 
30 #include "vtkQtChartLayer.h" // needed for enum
31 
33 
34 
45 class VTKQTCHART_EXPORT vtkQtBarChartOptions : public QObject
46 {
47  Q_OBJECT
48 
49 public:
51  {
52  Darker = 0,
53  Black
54  };
55 
56 public:
60  vtkQtBarChartOptions(QObject *parent=0);
61 
66  virtual ~vtkQtBarChartOptions();
67 
72  vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->AxesCorner;}
73 
77  void setAxesCorner(vtkQtChartLayer::AxesCorner axes);
78 
88  float getBarGroupFraction() const {return this->GroupFraction;}
89 
93  void setBarGroupFraction(float fraction);
94 
103  float getBarWidthFraction() const {return this->BarFraction;}
104 
108  void setBarWidthFraction(float fraction);
109 
114  OutlineStyle getOutlineStyle() const {return this->OutlineType;}
115 
122  void setOutlineStyle(OutlineStyle style);
123 
132  vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;}
133 
138  const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;}
139 
145  vtkQtBarChartOptions &operator=(const vtkQtBarChartOptions &other);
146 
147 signals:
149  void axesCornerChanged();
150 
152  void barFractionsChanged();
153 
155  void outlineStyleChanged();
156 
158  void seriesColorsChanged();
159 
160 private:
161  vtkQtChartLayer::AxesCorner AxesCorner;
162  OutlineStyle OutlineType;
164  float GroupFraction;
165  float BarFraction;
166 };
167 
168 #endif