00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtStatisticalBoxChartOptions.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 _vtkQtStatisticalBoxChartOptions_h 00025 #define _vtkQtStatisticalBoxChartOptions_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include <QObject> 00029 00030 #include "vtkQtChartLayer.h" // needed for enum 00031 00032 class vtkQtChartHelpFormatter; 00033 00034 00044 class VTKQTCHART_EXPORT vtkQtStatisticalBoxChartOptions : public QObject 00045 { 00046 Q_OBJECT 00047 00048 public: 00049 enum OutlineStyle 00050 { 00051 Darker, 00052 Black 00053 }; 00054 00055 public: 00059 vtkQtStatisticalBoxChartOptions(QObject *parent=0); 00060 00064 vtkQtStatisticalBoxChartOptions( 00065 const vtkQtStatisticalBoxChartOptions &other); 00066 virtual ~vtkQtStatisticalBoxChartOptions() {} 00067 00072 vtkQtChartLayer::AxesCorner getAxesCorner() const {return this->AxesCorner;} 00073 00077 void setAxesCorner(vtkQtChartLayer::AxesCorner axes); 00078 00087 float getBoxWidthFraction() const {return this->BoxFraction;} 00088 00092 void setBoxWidthFraction(float fraction); 00093 00098 OutlineStyle getOutlineStyle() const {return this->OutlineType;} 00099 00106 void setOutlineStyle(OutlineStyle style); 00107 00116 vtkQtChartHelpFormatter *getHelpFormat() {return this->Help;} 00117 00122 const vtkQtChartHelpFormatter *getHelpFormat() const {return this->Help;} 00123 00132 vtkQtChartHelpFormatter *getOutlierFormat() {return this->Outlier;} 00133 00138 const vtkQtChartHelpFormatter *getOutlierFormat() const {return this->Outlier;} 00139 00145 vtkQtStatisticalBoxChartOptions &operator=( 00146 const vtkQtStatisticalBoxChartOptions &other); 00147 00148 signals: 00150 void axesCornerChanged(); 00151 00153 void boxFractionChanged(); 00154 00156 void outlineStyleChanged(); 00157 00158 private: 00159 vtkQtChartLayer::AxesCorner AxesCorner; 00160 OutlineStyle OutlineType; 00161 vtkQtChartHelpFormatter *Help; 00162 vtkQtChartHelpFormatter *Outlier; 00163 float BoxFraction; 00164 }; 00165 00166 #endif