00001 //-------------------------------------------------------------------- 00002 // 00003 // File: TxqAxisAttribs.h 00004 // 00005 // Purpose: Define the axis attributes 00006 // 00007 // Version: $Id: TxqAxisAttribs.h,v 1.9 2001/10/09 19:15:48 kgl Exp $ 00008 // 00009 // Copyright (c) 2000 by Tech-X Corporation. All rights reserved. 00010 // 00011 // Author: Kelly G. Luetkemeyer 00012 // 00013 //-------------------------------------------------------------------- 00014 00015 #ifndef TXQ_AXISATTRIBS_H 00016 #define TXQ_AXISATTRIBS_H 00017 00018 // Qt includes 00019 #include <qcolor.h> 00020 #include <qstring.h> 00021 00022 #include "TxqDefines.h" 00023 00024 00031 class TxqAxisAttribs 00032 { 00033 public: 00034 00038 TxqAxisAttribs(){ 00039 00040 title = " "; 00041 titleColor = "white"; 00042 min = 0.0; 00043 max = 1.0; 00044 autoLims = false; 00045 sciNotation = true; 00046 scaleType = "LINEAR"; 00047 scale = SCALE_LINEAR; 00048 tickLabelColor = "white"; 00049 insideTick = true; 00050 outsideTick = false; 00051 00052 } 00053 00069 TxqAxisAttribs(QString intitle, QColor intitlecolor, 00070 double inmin, double inmax, bool inlims, bool inSciNote, 00071 QString inscaletype, int inscale, 00072 QColor intickcolor, bool intick, bool outtick) 00073 { 00074 title = intitle; 00075 titleColor = intitlecolor; 00076 min = inmin; 00077 max = inmax; 00078 autoLims = inlims; 00079 sciNotation = inSciNote; 00080 scaleType = inscaletype; 00081 scale = inscale; 00082 tickLabelColor = intickcolor; 00083 insideTick = intick; 00084 outsideTick = outtick; 00085 } 00086 00090 ~TxqAxisAttribs(){} 00091 00092 // 00093 // Public Class data members 00094 // 00095 00099 QString title; 00100 00104 QColor titleColor; 00105 00109 double min; 00110 00114 double max; 00115 00120 bool autoLims; 00121 00126 bool sciNotation; 00127 00133 QString scaleType; 00134 00140 int scale; 00141 00145 QColor tickLabelColor; 00146 00150 bool insideTick; 00151 00155 bool outsideTick; 00156 00157 00158 }; 00159 #endif
Copyright Tech-X Corporation, all rights reserved.