~ubuntu-branches/ubuntu/precise/epix1/precise

« back to all changes in this revision

Viewing changes to path_data.cc

  • Committer: Bazaar Package Importer
  • Author(s): Julian Gilbey
  • Date: 2009-10-26 18:02:06 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091026180206-gwyuymyzl4fl4gpc
Tags: 1.2.6-1
* New upstream release
* Fix (Build-)Depends lines to depend on ghostscript rather than gs
  (Closes: #539653)
* Fix regex in epix1.el elisp start file to match \.xp$ rather than \.xp
  etc. (Closes: #513744)
* Upgrade standards-version
* Regenerate all autoconf and automake files during the build

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * This file is part of ePiX, a C++ library for creating high-quality 
5
5
 * figures in LaTeX 
6
6
 *
7
 
 * Version 1.1.21
8
 
 * Last Change: September 22, 2007
 
7
 * Version 1.2.5
 
8
 * Last Change: May 04, 2008
9
9
 */
10
10
 
11
11
/* 
12
 
 * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
12
 * Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13
13
 * Andrew D. Hwang <rot 13 nujnat at zngupf dot ubylpebff dot rqh>
14
14
 * Department of Mathematics and Computer Science
15
15
 * College of the Holy Cross
267
267
      }
268
268
  }
269
269
 
 
270
  std::vector<P> path_data::data() const
 
271
  {
 
272
    std::list<P> tmp;
 
273
    std::list<edge3d>::const_iterator ep(m_data.begin());
 
274
 
 
275
    // first point is duplicated by constructor
 
276
    while (ep != m_data.end())
 
277
      {
 
278
        tmp.push_back((*ep).head());
 
279
        ++ep;
 
280
      }
 
281
 
 
282
    std::vector<P> value;
 
283
    value.assign(tmp.begin(), tmp.end());
 
284
 
 
285
    return value;
 
286
  }
 
287
 
270
288
  void path_data::draw() const
271
289
  {
272
290
    photo(*active_screen(), cam(), the_paint_style().fill_color(),