00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtStackedChartOptions.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 _vtkQtStackedChartOptions_h 00025 #define _vtkQtStackedChartOptions_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include <QObject> 00029 #include "vtkQtChartLayer.h" // needed for enum 00030 00031 class vtkQtChartHelpFormatter; 00032 00033 00038 class VTKQTCHART_EXPORT vtkQtStackedChartOptions : public QObject 00039 { 00040 Q_OBJECT 00041 00042 public: 00046 vtkQtStackedChartOptions(QObject *parent=0); 00047 00051 vtkQtStackedChartOptions(const vtkQtStackedChartOptions &other); 00052 virtual ~vtkQtStackedChartOptions(); 00053 00058 vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->Axes;} 00059 00063 void setAxesCorner(vtkQtChartLayer::AxesCorner axes); 00064 00069 bool isSumNormalized() const {return this->Normalized;} 00070 00074 void setSumNormalized(bool normalized); 00075 00080 bool isGradientDislpayed() const {return this->Gradient;} 00081 00085 void setGradientDisplayed(bool gradient); 00086 00095 vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;} 00096 00101 const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;} 00102 00108 vtkQtStackedChartOptions &operator=(const vtkQtStackedChartOptions &other); 00109 00110 signals: 00112 void axesCornerChanged(); 00113 00115 void sumationChanged(); 00116 00118 void gradientChanged(); 00119 00120 private: 00121 vtkQtChartLayer::AxesCorner Axes; 00122 vtkQtChartHelpFormatter *Help; 00123 00125 bool Normalized; 00126 00128 bool Gradient; 00129 }; 00130 00131 #endif