001/* 002 * Subrange -- Interface all subrange type objects. 003 * 004 * Copyright (C) 2009-2015, Joseph A. Huwaldt 005 * All rights reserved. 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * You should have received a copy of the GNU Lesser General Public License 018 * along with this program; if not, write to the Free Software 019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 020 * Or visit: http://www.gnu.org/licenses/lgpl.html 021 */ 022package geomss.geom; 023 024/** 025 * Defines the interface for {@link GeomElement} objects that are subranges of other 026 * {@link ParametricGeometry} objects. 027 * 028 * <p> Modified by: Joseph A. Huwaldt </p> 029 * 030 * @author Joseph A. Huwaldt, Date: May 28, 2009 031 * @version September 3, 2015 032 * 033 * @param <T> The type of this subrange object. 034 */ 035public interface Subrange<T extends GeomElement> { 036 037 /** 038 * Returns the parametric position on the child object that this subrange refers to. 039 * 040 * @return The parametric position on the child object that this subrange refers to. 041 */ 042 public T getParPosition(); 043 044 /** 045 * Sets the parametric position on the child object that this subrange refers to. 046 * 047 * @param par The parametric position (between 0 and 1) along each parametric 048 * dimension where the subrange is located (may not be <code>null</code>). 049 */ 050 public void setParPosition(T par); 051 052 /** 053 * Returns the child object this subrange object is subranged onto. 054 * 055 * @return The child object this object is subranged onto. 056 */ 057 public ParametricGeometry getChild(); 058 059}