/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2012, Geomatys * * 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 2.1 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. */ package org.geotoolkit.gml.xml.v321; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ConeType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ConeType"> * <complexContent> * <extension base="{http://www.opengis.net/gml/3.2}AbstractGriddedSurfaceType"> * <attribute name="horizontalCurveType" type="{http://www.opengis.net/gml/3.2}CurveInterpolationType" fixed="circularArc3Points" /> * <attribute name="verticalCurveType" type="{http://www.opengis.net/gml/3.2}CurveInterpolationType" fixed="linear" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ConeType") public class ConeType extends AbstractGriddedSurfaceType { @XmlAttribute private CurveInterpolationType horizontalCurveType; @XmlAttribute private CurveInterpolationType verticalCurveType; /** * Gets the value of the horizontalCurveType property. * * @return * possible object is * {@link CurveInterpolationType } * */ public CurveInterpolationType getHorizontalCurveType() { if (horizontalCurveType == null) { return CurveInterpolationType.CIRCULAR_ARC_3_POINTS; } else { return horizontalCurveType; } } /** * Sets the value of the horizontalCurveType property. * * @param value * allowed object is * {@link CurveInterpolationType } * */ public void setHorizontalCurveType(CurveInterpolationType value) { this.horizontalCurveType = value; } /** * Gets the value of the verticalCurveType property. * * @return * possible object is * {@link CurveInterpolationType } * */ public CurveInterpolationType getVerticalCurveType() { if (verticalCurveType == null) { return CurveInterpolationType.LINEAR; } else { return verticalCurveType; } } /** * Sets the value of the verticalCurveType property. * * @param value * allowed object is * {@link CurveInterpolationType } * */ public void setVerticalCurveType(CurveInterpolationType value) { this.verticalCurveType = value; } }