From b85a292ce06475d560bfa1195b63a8bfe211f22d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 11 Jul 2012 14:15:27 -0500 Subject: Add 0.2.7 release of qwtplot3d for future TQt3 conversion and use --- lib/tqwtplot3d/src/qwt3d_gridmapping.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/tqwtplot3d/src/qwt3d_gridmapping.cpp (limited to 'lib/tqwtplot3d/src/qwt3d_gridmapping.cpp') diff --git a/lib/tqwtplot3d/src/qwt3d_gridmapping.cpp b/lib/tqwtplot3d/src/qwt3d_gridmapping.cpp new file mode 100644 index 0000000..4de521b --- /dev/null +++ b/lib/tqwtplot3d/src/qwt3d_gridmapping.cpp @@ -0,0 +1,32 @@ +#include "qwt3d_gridmapping.h" +#include "qwt3d_surfaceplot.h" + +using namespace Qwt3D; + +GridMapping::GridMapping() +{ + plotwidget_p = 0; + setMesh(0,0); + setDomain(0,0,0,0); + restrictRange(ParallelEpiped(Triple(-DBL_MAX,-DBL_MAX,-DBL_MAX),Triple(DBL_MAX,DBL_MAX,DBL_MAX))); +} + +void GridMapping::setMesh(unsigned int columns,unsigned int rows) +{ + umesh_p = columns; + vmesh_p = rows; +} + +void GridMapping::setDomain(double minu, double maxu, double minv, double maxv) +{ + minu_p = minu; + maxu_p = maxu; + minv_p = minv; + maxv_p = maxv; +} + +void GridMapping::restrictRange(Qwt3D::ParallelEpiped const& p) +{ + range_p = p; +} + -- cgit v1.2.1