~ubuntu-branches/ubuntu/vivid/meshlab/vivid

« back to all changes in this revision

Viewing changes to meshlab/src/meshlabplugins/filter_texture/rect_packer.h

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2011-03-28 17:54:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110328175411-ntj9e50d1yl0luzb
Tags: 1.3.0a+dfsg1-1
* New upstream version (closes: #618522)
* Repackage the upstream sources to get rid of some files with questionable
  licensing information and useless libraries, see the copyright file for
  details.
* Builds with GCC-4.5 (closes: #565034)
* Fix watch-file to work with new upstream names and dfsg source
  (closes: #582477)
* Require debhelper version 8 or above.
* control:
  - Update standards-version to 3.9.1, cleanup.
  - Remove build-dep to libgl-dev to fix a lintian warning about a
    build-dep to a virtual package.
  - Remove build-dep to asciidoc, add build-dep to libeigen2-dev.
* rules:
  - Remove manpage-related code.
  - Build the necessary code from meshlab/src/external. Also clean it.
  - Override dh_shlibdeps to include /usr/lib/meshlab in search path.
  - Don't install shader licenses.
* install: Install binaries from meshlab/src/distrib.
* copyright: Update to the latest DEP5 format, document changes due to
  source repackaging and add the copyright info for the files added in
  this upstream release.
* Hardcode shadersDir and pluginDir in upstream source to locations
  in the Debian binary package.
* Use source format '3.0 (quilt)'.
* Split changes affecting upstream code to branches in the git repository
  at git.d.o. Add DEP3 patch metadata headers to debian/metapatches and
  generate patches from git branches with gdp (http://gitorious.org/gdp).
  Current patches:
  - 01_muparser: Use Debian muparser.
  - 02_qhull: Use Debian qhull.
  - 03_lib3ds: Use Debian lib3ds.
  - 04_libbz2: Use Debian libbz2.
  - 05_glew: Use Debian GLEW.
  - 06_eigen: Use Debian Eigen.
  - 07_disable-updates: Disable checking for updates on startup.
  - 08_externals: Only build necessary external sources.
  - 09_rpath: Use /usr/lib/meshlab as RPATH in binaries.
  - 10_shadersdir: Hardcode shadersDir to the correct path in Debian
  - 11_pluginsdir: Hardcode pluginsDir to the correct path in Debian
* Add a README.source file documenting the patch generation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
* MeshLab                                                           o o     *
3
 
* An extendible mesh processor                                    o     o   *
4
 
*                                                                _   O  _   *
5
 
* Copyright(C) 2005, 2009                                          \/)\/    *
6
 
* Visual Computing Lab                                            /\/|      *
7
 
* ISTI - Italian National Research Council                           |      *
8
 
*                                                                    \      *
9
 
* All rights reserved.                                                      *
10
 
*                                                                           *
11
 
* This program is free software; you can redistribute it and/or modify      *
12
 
* it under the terms of the GNU General Public License as published by      *
13
 
* the Free Software Foundation; either version 2 of the License, or         *
14
 
* (at your option) any later version.                                       *
15
 
*                                                                           *
16
 
* This program is distributed in the hope that it will be useful,           *
17
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of            *
18
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
19
 
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)          *
20
 
* for more details.                                                         *
21
 
*                                                                           *
22
 
****************************************************************************/
23
 
 
24
 
#ifndef RECT_PACKER_H
25
 
#define RECT_PACKER_H
26
 
 
27
 
#include <vector>
28
 
 
29
 
#include <vcg/space/point2.h>
30
 
 
31
 
using namespace vcg;
32
 
 
33
 
class rect_packer
34
 
{
35
 
        public:
36
 
 
37
 
                typedef rect_packer this_type;
38
 
 
39
 
                static bool pack(const std::vector<Point2i> & sizes, const Point2i & max_size, std::vector<Point2i> & posiz, Point2i & global_size);
40
 
};
41
 
 
42
 
#endif // RECT_PACKER_H