00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtLineChartSeriesOptions.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 _vtkQtLineChartSeriesOptions_h 00025 #define _vtkQtLineChartSeriesOptions_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include "vtkQtChartSeriesOptions.h" 00029 #include "vtkQtChartLayer.h" // needed for enum 00030 #include "vtkQtPointMarker.h" // needed for enum 00031 00032 class QSizeF; 00033 00034 00039 class VTKQTCHART_EXPORT vtkQtLineChartSeriesOptions : 00040 public vtkQtChartSeriesOptions 00041 { 00042 Q_OBJECT 00043 00044 public: 00048 vtkQtLineChartSeriesOptions(QObject *parent=0); 00049 virtual ~vtkQtLineChartSeriesOptions(); 00050 00059 virtual void setStyle(int style, vtkQtChartStyleGenerator *generator); 00060 00065 vtkQtChartLayer::AxesCorner getAxesCorner() const; 00066 00070 void setAxesCorner(vtkQtChartLayer::AxesCorner axes); 00071 00076 bool arePointsVisible() const {return this->ShowPoints;} 00077 00081 void setPointsVisible(bool visible); 00082 00087 vtkQtPointMarker::MarkerStyle getMarkerStyle() const; 00088 00092 void setMarkerStyle(vtkQtPointMarker::MarkerStyle style); 00093 00098 const QSizeF &getMarkerSize() const; 00099 00103 void setMarkerSize(const QSizeF &size); 00104 00105 signals: 00110 void axesCornerChanged(int corner, int previous); 00111 00115 void pointVisibilityChanged(bool visible); 00116 00118 void pointMarkerChanged(); 00119 00120 protected: 00121 vtkQtChartLayer::AxesCorner AxesCorner; 00122 vtkQtPointMarker::MarkerStyle PointStyle; 00123 QSizeF *PointSize; 00124 bool ShowPoints; 00125 }; 00126 00127 #endif 00128