summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/src/qwt3d_gridmapping.cpp
blob: 4de521b58e5b5ee00919fcd9a8a1836ef8a3ee54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
}