~ubuntu-branches/ubuntu/saucy/pyqwt3d/saucy-proposed

« back to all changes in this revision

Viewing changes to qwtplot3d-0.2.7/src/qwt3d_gridmapping.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gudjon I. Gudjonsson
  • Date: 2009-11-07 12:54:42 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091107125442-92kgp0l7lessmiwo
Tags: 0.1.7~cvs20090625-2
* Change sip4 dependencies to >=4.9
* Add binary dependency on python-sip4 >=4.9
* Bump standards version to 3.8.3, no changes needed
* Add README.source file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "qwt3d_gridmapping.h"
2
 
#include "qwt3d_surfaceplot.h"
3
 
 
4
 
using namespace Qwt3D;
5
 
 
6
 
GridMapping::GridMapping()
7
 
{
8
 
  plotwidget_p = 0;
9
 
  setMesh(0,0);
10
 
  setDomain(0,0,0,0);
11
 
  restrictRange(ParallelEpiped(Triple(-DBL_MAX,-DBL_MAX,-DBL_MAX),Triple(DBL_MAX,DBL_MAX,DBL_MAX)));
12
 
}
13
 
 
14
 
void GridMapping::setMesh(unsigned int columns,unsigned int rows)
15
 
{
16
 
  umesh_p = columns;
17
 
  vmesh_p = rows;
18
 
}
19
 
 
20
 
void GridMapping::setDomain(double minu, double maxu, double minv, double maxv)
21
 
{
22
 
  minu_p = minu;
23
 
  maxu_p = maxu;
24
 
  minv_p = minv;
25
 
  maxv_p = maxv;
26
 
}
27
 
 
28
 
void GridMapping::restrictRange(Qwt3D::ParallelEpiped const& p)
29
 
{
30
 
  range_p = p;
31
 
}
32