Skip to content

Commit a6ee153

Browse files
committed
MSVC related fix
1 parent 829d91e commit a6ee153

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

examples/dynamicplot/dynamicplot.cpp

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Plot::Plot()
1616
{
1717
//setTitle("Dynamic Plotter Demonstration");
1818

19-
setRenderThreadsCount(2);
19+
setRenderThreadsCount(1);
2020
enableFastNormals(true);
2121

2222
// fill initial data
@@ -31,20 +31,12 @@ Plot::Plot()
3131
data[i][j] = xval;
3232

3333
xval += rand() % 3 - 1;
34-
35-
if (rand() % 5 == 1)
36-
data[i][j] = std::numeric_limits<double>::quiet_NaN();
3734
}
3835
}
3936

4037
setRotation(50, 0, -15);
4138
setZoom(1);
42-
4339
setPlotStyle(Qwt3D::FILLED);
44-
//setPlotStyle(Qwt3D::FILLEDMESH);
45-
//setPlotStyle(Qwt3D::WIREFRAME);
46-
//setPlotStyle(Qwt3D::HIDDENLINE);
47-
4840

4941
for (unsigned i=0; i!=coordinates()->axes.size(); ++i)
5042
{
@@ -56,6 +48,7 @@ Plot::Plot()
5648
coordinates()->axes[Y1].setLabelString("y-axis");
5749
//coordinates()->axes[Z1].setLabelString(QChar(0x38f)); // Omega - see http://www.unicode.org/charts/
5850

51+
5952
setCoordinateStyle(BOX);
6053

6154
connect(&timer, SIGNAL(timeout()), this, SLOT(UpdateData()));
@@ -92,11 +85,12 @@ void Plot::UpdateData()
9285
// update dataset
9386
createDataset(data, Width1, Width2, 0, Width1, 0, Width2);
9487

95-
updateGL();
96-
9788
qint64 rate = tim.elapsed();
9889

9990
setTitle(QString("Dynamic Plotter Demonstration - Frame Time %1 ms").arg(rate));
91+
92+
//updateData();
93+
updateGL();
10094
}
10195

10296
int main(int argc, char **argv)

0 commit comments

Comments
 (0)