/* * $Id$ * * Copyright (C) 2015 Hamza JAFFALI. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * This program is free software; you can redistribute it and/or modify */ package org.arakhne.afc.math.geometry.d3.continuous; import java.util.Iterator; import org.arakhne.afc.math.geometry.PathWindingRule; import org.eclipse.xtext.xbase.lib.Pure; /** This interface describes an interator on path elements. * * @author $Author: hjaffali$ * @version $FullVersion$ * @mavengroupid $GroupId$ * @mavenartifactid $ArtifactId$ */ public interface PathIterator3d extends Iterator<AbstractPathElement3D> { /** Replies the winding rule for the path. * * @return the winding rule for the path. */ @Pure public PathWindingRule getWindingRule(); /** Replies the iterator may reply only elements of type * <code>MOVE_TO</code>, <code>LINE_TO</code>, or * <code>CLOSE</code> (no curve). * * @return <code>true</code> if the iterator does not * contain curve primitives, <code>false</code> * otherwise. */ public boolean isPolyline(); }