path.cpp revision d6ba53823278a7e5534addd34e8a32192cca6474
/*
* Path - Series of continuous curves
*
* Authors:
* MenTaLguY <mental@rydia.net>
* Marco Cecchetti <mrcekets at gmail.com>
*
* Copyright 2007-2008 authors
*
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under the terms of the Mozilla
* Public License Version 1.1 (the "MPL"). If you do not alter this
* notice, a recipient may use your version of this file under either
* the MPL or the LGPL.
*
* You should have received a copy of the LGPL along with this library
* in the file COPYING-LGPL-2.1; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* You should have received a copy of the MPL along with this library
* in the file COPYING-MPL-1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
* the specific language governing rights and limitations.
*/
#include "path.h"
namespace Geom
{
}
}
return bounds;
}
}
}
return bounds;
}
template<typename iter>
for(unsigned i = 0; i < n; i++)
ret++;
return ret;
}
{
{
THROW_RANGEERROR("[from,to] interval out of bounds");
}
{
--si;
st = 1;
}
{
--ei;
et = 1;
}
{
for ( unsigned int i = 0; i < all_nearest.size(); ++i )
{
}
return all_nearest;
}
double dsq;
double mindistsq
{
{
}
{
}
}
{
{
{
}
return all_t;
}
{
}
}
{
{
}
}
return all_nearest;
}
{
{
THROW_RANGEERROR("[from,to] interval out of bounds");
}
{
--si;
st = 1;
}
{
--ei;
et = 1;
}
{
double nearest =
}
double t;
double dsq;
{
{
nearest = t;
ni = i;
}
}
{
{
nearest = t;
}
}
}
//This assumes that you can't be perfect in your t-vals, and as such, tweaks the start
delete v;
return;
}
if(ff != 1.) {
//fromv->setInitial(ret.finalPoint());
delete fromv;
}
} else {
}
delete tov;
}
const double eps = .1;
}
}
for ( int i = 0 ; i < 2 ; ++i ) {
}
}
}
}
{
// Check that path stays continuous:
}
}
{
// note: modifies the contents of [first,last)
} else {
// this approach depends on std::vector's behavior WRT iterator stability
}
}
}
}
}
delete *iter;
}
}
{
}
}
}
}
} else if ( first_replaced != last_replaced && first_replaced != curves_.begin() && last_replaced != curves_.end()-1) {
}
}
}
} // end namespace Geom
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :