001/*
002 *   Transformable  -- Interface in common to all geometry elements that can be transformed.
003 *
004 *   Copyright (C) 2010-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 in common to all transformable geometry elements.
026 * 
027 * <p> Modified by: Joseph A. Huwaldt </p>
028 * 
029 * @author Joseph A. Huwaldt, Date: March 31, 2010
030 * @version November 28, 2015
031 *
032 * @param <T> The sub-type of GeomElement represented by this Transformable object.
033 */
034public interface Transformable<T extends GeomElement> extends GeomElement<T> {
035
036    /**
037     * Returns transformed version of this element. The returned object implements
038     * {@link GeomTransform} and contains this element as a child.
039     *
040     * @param transform The transformation to apply to this geometry. May not be null.
041     * @return A new triangle that is identical to this one with the specified
042     *         transformation applied.
043     * @throws DimensionException if this point is not 3D.
044     */
045    public T getTransformed(GTransform transform);
046
047}