00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtBarChartOptions.h,v $ 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 #include <QColor> // needed for static member 00032 00033 class vtkQtChartHelpFormatter; 00034 00035 00047 class VTKQTCHART_EXPORT vtkQtBarChartOptions : public QObject 00048 { 00049 Q_OBJECT 00050 00051 public: 00052 enum OutlineStyle 00053 { 00054 Darker = 0, 00055 Black 00056 }; 00057 00058 public: 00062 vtkQtBarChartOptions(QObject *parent=0); 00063 00067 vtkQtBarChartOptions(const vtkQtBarChartOptions &other); 00068 virtual ~vtkQtBarChartOptions(); 00069 00074 vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->AxesCorner;} 00075 00079 void setAxesCorner(vtkQtChartLayer::AxesCorner axes); 00080 00090 float getBarGroupFraction() const {return this->GroupFraction;} 00091 00095 void setBarGroupFraction(float fraction); 00096 00105 float getBarWidthFraction() const {return this->BarFraction;} 00106 00110 void setBarWidthFraction(float fraction); 00111 00116 OutlineStyle getOutlineStyle() const {return this->OutlineType;} 00117 00124 void setOutlineStyle(OutlineStyle style); 00125 00130 const QColor &getHighlightColor() const {return this->Highlight;} 00131 00135 void setHighlightColor(const QColor &color); 00136 00145 vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;} 00146 00151 const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;} 00152 00158 vtkQtBarChartOptions &operator=(const vtkQtBarChartOptions &other); 00159 00160 signals: 00162 void axesCornerChanged(); 00163 00165 void barFractionsChanged(); 00166 00168 void outlineStyleChanged(); 00169 00171 void highlightChanged(); 00172 00173 public: 00175 static const QColor LightBlue; 00176 00177 private: 00179 QColor Highlight; 00180 vtkQtChartLayer::AxesCorner AxesCorner; 00181 OutlineStyle OutlineType; 00182 vtkQtChartHelpFormatter *Help; 00183 float GroupFraction; 00184 float BarFraction; 00185 }; 00186 00187 #endif