29 #ifndef PLOT3DDIALOG_H
30 #define PLOT3DDIALOG_H
48 using namespace Qwt3D;
63 QColor pickFromColor();
65 QColor pickMeshColor();
66 QColor pickAxesColor();
67 QColor pickTitleColor();
68 QColor pickNumberColor();
70 QColor pickLabelColor();
71 QColor pickGridColor();
73 void setColors(
const QColor& title,
const QColor& mesh,
const QColor& axes,
const QColor& num,
74 const QColor& label,
const QColor& bg,
const QColor& grid);
75 void setDataColors(
const QColor& minColor,
const QColor& maxColor);
76 void setTransparency(
double t);
78 void setTitle(
const QString& title);
79 void setTitleFont(
const QFont& font);
81 void setResolution(
int r);
82 void showLegend(
bool show);
85 void setAxesLabels(
const QStringList& list);
86 void viewAxisOptions(
int axis);
88 void setAxesFonts(
const QFont& xf,
const QFont& yf,
const QFont& zf);
89 QFont axisFont(
int axis);
90 void pickAxisLabelFont();
92 void pickNumbersFont();
95 QStringList scaleOptions(
int axis,
double start,
double end,
96 const QString& majors,
const QString& minors);
97 void setScales(
const QStringList& list);
98 void viewScaleLimits(
int axis);
100 void setAxesTickLengths(
const QStringList& list);
101 void setMeshLineWidth(
double lw);
102 void setLabelsDistance(
int dist);
104 void disableAxesOptions();
105 void disableMeshOptions();
106 void disableLegend();
107 void disableGridOptions();
108 void showBarsTab(
double rad);
109 void showPointsTab(
double rad,
bool smooth);
110 void showConesTab(
double rad,
int quality);
111 void showCrossHairTab(
double rad,
double linewidth,
bool smooth,
bool boxed);
113 void customWorksheetBtn(
const QString& text);
115 void setZoom(
double zoom);
116 void setScaling(
double xVal,
double yVal,
double zVal);
120 void initPointsOptionsStack();
121 void changeZoom(
double);
122 void changeTransparency(
int val);
124 void showLowerGreek();
125 void showUpperGreek();
126 void addSymbol(
const QString& letter);
127 void showGeneralTab();
129 void pickDataColorMap();
133 void showWorksheet();
134 void updatePoints(
double,
bool);
135 void updateBars(
double);
136 void updateTransparency(
double);
137 void updateDataColors(
const QColor&,
const QColor&);
138 void updateColors(
const QColor&,
const QColor&,
const QColor&,
const QColor&,
const QColor&,
const QColor&);
139 void updateTitle(
const QString&,
const QColor&,
const QFont&);
140 void updateResolution(
int);
141 void showColorLegend(
bool);
143 void updateLabel(
int,
const QString&,
const QFont&);
144 void updateScale(
int,
const QStringList&);
145 void updateTickLength(
int,
double,
double);
146 void adjustLabels (
int);
147 void setNumbersFont(
const QFont&);
148 void updateMeshLineWidth(
int);
149 void updateZoom(
double);
150 void updateScaling(
double,
double,
double);
151 void updateCones(
double,
int);
152 void updateCross(
double,
double,
bool,
bool);
153 void setDataColorMap(
const QString&);
156 void initScalesPage();
158 void initTitlePage();
159 void initColorsPage();
160 void initGeneralPage();
163 QFont titleFont, xAxisFont,yAxisFont,
zAxisFont, numbersFont;
165 QColor
titleColor,meshColor,bgColor, axesColor, numColor,labelColor, gridColor;
173 QPushButton *btnBackground, *btnMesh, *btnAxes, *
btnTitle, *btnLabels, *btnNumbers;
174 QPushButton *btnNumbersFont, *btnFromColor, *
btnToColor, *btnTable, *btnColorMap;
177 QWidget *scale, *colors, *general, *axes, *
title, *bars, *points;
178 QLineEdit *boxTitle, *boxFrom, *
boxTo, *boxLabel;
182 QCheckBox *boxLegend, *
boxSmooth, *boxBoxed, *boxCrossSmooth, *boxOrthogonal;
186 QDoubleSpinBox *boxZoom, *boxXScale, *boxYScale, *
boxZScale;
188 QLineEdit *
boxSize, *boxBarsRad, *boxCrossRad, *boxCrossLinewidth;