/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, 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.v311; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; /** * A cylinder is a gridded surface given as a * family of circles whose positions vary along a set of parallel * lines, keeping the cross sectional horizontal curves of a * constant shape. * NOTE! Given the same working assumptions as in the previous * note, a Cylinder can be given by two circles, giving us the * control points of the form ((P1, P2, P3),(P4, P5, P6)). * * <p>Java class for CylinderType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CylinderType"> * <complexContent> * <extension base="{http://www.opengis.net/gml}AbstractGriddedSurfaceType"> * <attribute name="horizontalCurveType" type="{http://www.opengis.net/gml}CurveInterpolationType" fixed="circularArc3Points" /> * <attribute name="verticalCurveType" type="{http://www.opengis.net/gml}CurveInterpolationType" fixed="linear" /> * </extension> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CylinderType") public class CylinderType extends AbstractGriddedSurfaceType { @XmlAttribute protected CurveInterpolationType horizontalCurveType; @XmlAttribute protected 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(final 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(final CurveInterpolationType value) { this.verticalCurveType = value; } }