Package nl.b3p.csw.jaxb.gml
Class CubicSplineType
- java.lang.Object
-
- nl.b3p.csw.jaxb.gml.AbstractCurveSegmentType
-
- nl.b3p.csw.jaxb.gml.CubicSplineType
-
public class CubicSplineType extends AbstractCurveSegmentType
Cubic splines are similar to line strings in that they are a sequence of segments each with its own defining function. A cubic spline uses the control points and a set of derivative parameters to define a piecewise 3rd degree polynomial interpolation. Unlike line-strings, the parameterization by arc length is not necessarily still a polynomial. The function describing the curve must be C2, that is, have a continuous 1st and 2nd derivative at all points, and pass through the controlPoints in the order given. Between the control points, the curve segment is defined by a cubic polynomial. At each control point, the polynomial changes in such a manner that the 1st and 2nd derivative vectors are the same from either side. The control parameters record must contain vectorAtStart, and vectorAtEnd which are the unit tangent vectors at controlPoint[1] and controlPoint[n] where n = controlPoint.count. Note: only the direction of the vectors is relevant, not their length.Java class for CubicSplineType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CubicSplineType"> <complexContent> <extension base="{http://www.opengis.net/gml}AbstractCurveSegmentType"> <sequence> <choice> <choice maxOccurs="unbounded" minOccurs="2"> <element ref="{http://www.opengis.net/gml}pos"/> <element ref="{http://www.opengis.net/gml}pointProperty"/> <element ref="{http://www.opengis.net/gml}pointRep"/> </choice> <element ref="{http://www.opengis.net/gml}posList"/> <element ref="{http://www.opengis.net/gml}coordinates"/> </choice> <element name="vectorAtStart" type="{http://www.opengis.net/gml}VectorType"/> <element name="vectorAtEnd" type="{http://www.opengis.net/gml}VectorType"/> </sequence> <attribute name="interpolation" type="{http://www.opengis.net/gml}CurveInterpolationType" fixed="cubicSpline" /> <attribute name="degree" type="{http://www.w3.org/2001/XMLSchema}integer" fixed="3" /> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected Coordinatescoordinatesprotected BigIntegerdegreeprotected CurveInterpolationTypeinterpolationprotected PosListposListprotected List<javax.xml.bind.JAXBElement<?>>posOrPointPropertyOrPointRepprotected VectorTypevectorAtEndprotected VectorTypevectorAtStart-
Fields inherited from class nl.b3p.csw.jaxb.gml.AbstractCurveSegmentType
numDerivativeInterior, numDerivativesAtEnd, numDerivativesAtStart
-
-
Constructor Summary
Constructors Constructor Description CubicSplineType()Default no-arg constructorCubicSplineType(BigInteger numDerivativesAtStart, BigInteger numDerivativesAtEnd, BigInteger numDerivativeInterior, List<javax.xml.bind.JAXBElement<?>> posOrPointPropertyOrPointRep, PosList posList, Coordinates coordinates, VectorType vectorAtStart, VectorType vectorAtEnd, CurveInterpolationType interpolation, BigInteger degree)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinatesgetCoordinates()Deprecated with GML version 3.1.0.BigIntegergetDegree()Gets the value of the degree property.CurveInterpolationTypegetInterpolation()Gets the value of the interpolation property.PosListgetPosList()Gets the value of the posList property.List<javax.xml.bind.JAXBElement<?>>getPosOrPointPropertyOrPointRep()Gets the value of the posOrPointPropertyOrPointRep property.VectorTypegetVectorAtEnd()Gets the value of the vectorAtEnd property.VectorTypegetVectorAtStart()Gets the value of the vectorAtStart property.voidsetCoordinates(Coordinates value)Sets the value of the coordinates property.voidsetDegree(BigInteger value)Sets the value of the degree property.voidsetInterpolation(CurveInterpolationType value)Sets the value of the interpolation property.voidsetPosList(PosList value)Sets the value of the posList property.voidsetVectorAtEnd(VectorType value)Sets the value of the vectorAtEnd property.voidsetVectorAtStart(VectorType value)Sets the value of the vectorAtStart property.-
Methods inherited from class nl.b3p.csw.jaxb.gml.AbstractCurveSegmentType
getNumDerivativeInterior, getNumDerivativesAtEnd, getNumDerivativesAtStart, setNumDerivativeInterior, setNumDerivativesAtEnd, setNumDerivativesAtStart
-
-
-
-
Field Detail
-
posOrPointPropertyOrPointRep
protected List<javax.xml.bind.JAXBElement<?>> posOrPointPropertyOrPointRep
-
posList
protected PosList posList
-
coordinates
protected Coordinates coordinates
-
vectorAtStart
protected VectorType vectorAtStart
-
vectorAtEnd
protected VectorType vectorAtEnd
-
interpolation
protected CurveInterpolationType interpolation
-
degree
protected BigInteger degree
-
-
Constructor Detail
-
CubicSplineType
public CubicSplineType()
Default no-arg constructor
-
CubicSplineType
public CubicSplineType(BigInteger numDerivativesAtStart, BigInteger numDerivativesAtEnd, BigInteger numDerivativeInterior, List<javax.xml.bind.JAXBElement<?>> posOrPointPropertyOrPointRep, PosList posList, Coordinates coordinates, VectorType vectorAtStart, VectorType vectorAtEnd, CurveInterpolationType interpolation, BigInteger degree)
Fully-initialising value constructor
-
-
Method Detail
-
getPosOrPointPropertyOrPointRep
public List<javax.xml.bind.JAXBElement<?>> getPosOrPointPropertyOrPointRep()
Gets the value of the posOrPointPropertyOrPointRep property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the posOrPointPropertyOrPointRep property.For example, to add a new item, do as follows:
getPosOrPointPropertyOrPointRep().add(newItem);Objects of the following type(s) are allowed in the list
PosPointRepPointProperty
-
getPosList
public PosList getPosList()
Gets the value of the posList property.- Returns:
- possible object is
PosList
-
setPosList
public void setPosList(PosList value)
Sets the value of the posList property.- Parameters:
value- allowed object isPosList
-
getCoordinates
public Coordinates getCoordinates()
Deprecated with GML version 3.1.0. Use "posList" instead.- Returns:
- possible object is
Coordinates
-
setCoordinates
public void setCoordinates(Coordinates value)
Sets the value of the coordinates property.- Parameters:
value- allowed object isCoordinates
-
getVectorAtStart
public VectorType getVectorAtStart()
Gets the value of the vectorAtStart property.- Returns:
- possible object is
VectorType
-
setVectorAtStart
public void setVectorAtStart(VectorType value)
Sets the value of the vectorAtStart property.- Parameters:
value- allowed object isVectorType
-
getVectorAtEnd
public VectorType getVectorAtEnd()
Gets the value of the vectorAtEnd property.- Returns:
- possible object is
VectorType
-
setVectorAtEnd
public void setVectorAtEnd(VectorType value)
Sets the value of the vectorAtEnd property.- Parameters:
value- allowed object isVectorType
-
getInterpolation
public CurveInterpolationType getInterpolation()
Gets the value of the interpolation property.- Returns:
- possible object is
CurveInterpolationType
-
setInterpolation
public void setInterpolation(CurveInterpolationType value)
Sets the value of the interpolation property.- Parameters:
value- allowed object isCurveInterpolationType
-
getDegree
public BigInteger getDegree()
Gets the value of the degree property.- Returns:
- possible object is
BigInteger
-
setDegree
public void setDegree(BigInteger value)
Sets the value of the degree property.- Parameters:
value- allowed object isBigInteger
-
-