00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtBarChartOptions.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 _vtkQtBarChartOptions_h 00025 #define _vtkQtBarChartOptions_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include <QObject> 00029 00030 #include "vtkQtChartLayer.h" // needed for enum 00031 00032 class vtkQtChartHelpFormatter; 00033 00034 00045 class VTKQTCHART_EXPORT vtkQtBarChartOptions : public QObject 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 enum OutlineStyle 00051 { 00052 Darker = 0, 00053 Black 00054 }; 00055 00056 public: 00060 vtkQtBarChartOptions(QObject *parent=0); 00061 00065 vtkQtBarChartOptions(const vtkQtBarChartOptions &other); 00066 virtual ~vtkQtBarChartOptions(); 00067 00072 vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->AxesCorner;} 00073 00077 void setAxesCorner(vtkQtChartLayer::AxesCorner axes); 00078 00088 float getBarGroupFraction() const {return this->GroupFraction;} 00089 00093 void setBarGroupFraction(float fraction); 00094 00103 float getBarWidthFraction() const {return this->BarFraction;} 00104 00108 void setBarWidthFraction(float fraction); 00109 00114 OutlineStyle getOutlineStyle() const {return this->OutlineType;} 00115 00122 void setOutlineStyle(OutlineStyle style); 00123 00132 vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;} 00133 00138 const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;} 00139 00145 vtkQtBarChartOptions &operator=(const vtkQtBarChartOptions &other); 00146 00147 signals: 00149 void axesCornerChanged(); 00150 00152 void barFractionsChanged(); 00153 00155 void outlineStyleChanged(); 00156 00158 void seriesColorsChanged(); 00159 00160 private: 00161 vtkQtChartLayer::AxesCorner AxesCorner; 00162 OutlineStyle OutlineType; 00163 vtkQtChartHelpFormatter *Help; 00164 float GroupFraction; 00165 float BarFraction; 00166 }; 00167 00168 #endif