00001 //-------------------------------------------------------------------- 00002 // 00003 // File: Txq3dPlotAttribs.h 00004 // 00005 // Purpose: Define the plot attributes 00006 // 00007 // Version: $Id: Txq3dPlotAttribs.h,v 1.11 2001/11/26 23:11: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 TXQ3D_PLOT_ATTRIBS_H 00016 #define TXQ3D_PLOT_ATTRIBS_H 00017 00018 #include <TxqAxisAttribs.h> 00019 #include <TxqPlotAttribs.h> 00020 00033 class Txq3dPlotAttribs : public TxqPlotAttribs 00034 { 00035 public: 00036 00040 Txq3dPlotAttribs(){ 00041 00042 // Set the default plot attributes for the X axis. 00043 setDefaultPlotAttrib(x); 00044 00045 // Set the default plot attributes for the Y axis. 00046 setDefaultPlotAttrib(y); 00047 00048 // Set the default plot attributes for the Z axis. 00049 setDefaultPlotAttrib(z); 00050 00051 // grid size and step size default to 1 00052 xGridSize = 1; 00053 yGridSize = 1; 00054 xMaxGridSize = 1; 00055 yMaxGridSize = 1; 00056 xGridStepSize = 1; 00057 yGridStepSize = 1; 00058 } 00059 00090 Txq3dPlotAttribs(QString xtitle, QColor xtitlecolor, 00091 double xmin, double xmax, bool xlims, 00092 bool xSciNote, QString xscaletype, int xscale, 00093 QString ytitle, QColor ytitlecolor, 00094 double ymin, double ymax, bool ylims, 00095 bool ySciNote, QString yscaletype, int yscale, 00096 QString ztitle, QColor ztitlecolor, 00097 double zmin, double zmax, bool zlims, 00098 bool zSciNote, QString zscaletype, int zscale) { 00099 x.title = xtitle; 00100 x.titleColor = xtitlecolor; 00101 x.min = xmin; 00102 x.max = xmax; 00103 x.autoLims = xlims; 00104 x.sciNotation = xSciNote; 00105 x.scaleType = xscaletype; 00106 x.scale = xscale; 00107 00108 // Y attributes 00109 y.title = ytitle; 00110 y.titleColor = ytitlecolor; 00111 y.min = ymin; 00112 y.max = ymax; 00113 y.autoLims = ylims; 00114 y.sciNotation= ySciNote; 00115 y.scaleType = yscaletype; 00116 y.scale = yscale; 00117 00118 // Z attributes 00119 z.title = ztitle; 00120 z.titleColor = ztitlecolor; 00121 z.min = zmin; 00122 z.max = zmax; 00123 z.autoLims = zlims; 00124 z.sciNotation= zSciNote; 00125 z.scaleType = zscaletype; 00126 z.scale = zscale; 00127 00128 // grid size and step size default to 1 00129 xGridSize = 1; 00130 yGridSize = 1; 00131 xMaxGridSize = 1; 00132 yMaxGridSize = 1; 00133 xGridStepSize = 1; 00134 yGridStepSize = 1; 00135 } 00136 00140 void print() { 00141 cout << "3d Plot Attributes" << endl 00142 << "X title: "<< x.title << endl 00143 << "Y title: "<< y.title << endl 00144 << "Z title: "<< z.title << endl 00145 << "X min: "<< x.min << endl 00146 << "X max: "<< x.max << endl 00147 << "Y min: "<< y.min << endl 00148 << "Y max: "<< y.max << endl 00149 << "Z min: "<< z.min << endl 00150 << "Z max: "<< z.max << endl 00151 << "X auto: "<< x.autoLims << endl 00152 << "Y auto: "<< y.autoLims << endl 00153 << "Z auto: "<< z.autoLims << endl 00154 << "X scale: "<< x.scale << endl 00155 << "Y scale: "<< y.scale << endl 00156 << "Z scale: "<< z.scale << endl 00157 << "X type: "<< x.scaleType << endl 00158 << "Y type: "<< y.scaleType << endl 00159 << "Z type: "<< z.scaleType << endl; 00160 } 00161 00165 virtual ~Txq3dPlotAttribs(){} 00166 00167 // 00168 // Public Class data members 00169 // 00170 00174 TxqAxisAttribs z; 00175 00179 int xGridSize; 00180 00184 int xMaxGridSize; 00185 00189 int yGridSize; 00190 00194 int yMaxGridSize; 00195 00199 int xGridStepSize; 00200 00204 int yGridStepSize; 00205 00206 }; 00207 #endif
Copyright Tech-X Corporation, all rights reserved.