VTK
vtkQtStackedChartOptions.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtStackedChartOptions.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 _vtkQtStackedChartOptions_h
25 #define _vtkQtStackedChartOptions_h
26 
27 #include "vtkQtChartExport.h"
28 #include <QObject>
29 #include "vtkQtChartLayer.h" // needed for enum
30 
32 
33 
38 class VTKQTCHART_EXPORT vtkQtStackedChartOptions : public QObject
39 {
40  Q_OBJECT
41 
42 public:
46  vtkQtStackedChartOptions(QObject *parent=0);
47 
52  virtual ~vtkQtStackedChartOptions();
53 
58  vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->Axes;}
59 
63  void setAxesCorner(vtkQtChartLayer::AxesCorner axes);
64 
69  bool isSumNormalized() const {return this->Normalized;}
70 
74  void setSumNormalized(bool normalized);
75 
80  bool isGradientDislpayed() const {return this->Gradient;}
81 
85  void setGradientDisplayed(bool gradient);
86 
95  vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;}
96 
101  const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;}
102 
108  vtkQtStackedChartOptions &operator=(const vtkQtStackedChartOptions &other);
109 
110 signals:
112  void axesCornerChanged();
113 
115  void sumationChanged();
116 
118  void gradientChanged();
119 
120 private:
123 
125  bool Normalized;
126 
128  bool Gradient;
129 };
130 
131 #endif
vtkQtChartLayer::AxesCorner getAxesCorner() const
Gets the pair of axes used by the stacked chart.
vtkQtChartHelpFormatter * getHelpFormat()
Gets the chart help text formatter.
The vtkQtChartHelpFormatter class is used to generate help text from a format string.
const vtkQtChartHelpFormatter * getHelpFormat() const
Gets the chart help text formatter.
bool isSumNormalized() const
Gets whether or not the sum is normalized.
The vtkQtStackedChartOptions class stores the stacked chart options.
bool isGradientDislpayed() const
Gets whether or not gradients are displayed.