org.opengis.geometry.coordinate
Class KnotType

Object
  extended by CodeList<KnotType>
      extended by KnotType
All Implemented Interfaces:
Serializable, Comparable<KnotType>

@UML(identifier="GM_KnotType",
     specification=ISO_19107)
public class KnotType
extends CodeList<KnotType>

The type of a B-spline. A B-spline is uniform if and only if all knots are of multiplicity 1 and they differ by a positive constant from the preceding knot. A B-spline is quasi-uniform if and only if the knots are of multiplicity (degree+1) at the ends, of multiplicity 1 elsewhere, and they differ by a positive constant from the preceding knot. This code list is used to describe the distribution of knots in the parameter space of various splines.

Since:
GeoAPI 2.0
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Field Summary
static KnotType PIECEWISE_BEZIER
          The form of knots is appropriate for a piecewise Bezier curve.
static KnotType QUASI_UNIFORM
          The form of knots is appropriate for a quasi-uniform B-spline.
static KnotType UNIFORM
          The form of knots is appropriate for a uniform B-spline.
 
Method Summary
 KnotType[] family()
          Returns the list of enumerations of the same kind than this enum.
static KnotType valueOf(String code)
          Returns the KnotType that matches the given string, or returns a new one if none match it.
static KnotType[] values()
          Returns the list of KnotTypes.
 
Methods inherited from class CodeList
compareTo, equals, identifier, matches, name, ordinal, readResolve, toString, valueOf
 
Methods inherited from class Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNIFORM

@UML(identifier="uniform",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType UNIFORM
The form of knots is appropriate for a uniform B-spline.


QUASI_UNIFORM

@UML(identifier="quasiUniform",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType QUASI_UNIFORM
The form of knots is appropriate for a quasi-uniform B-spline.


PIECEWISE_BEZIER

@UML(identifier="piecewiseBezier",
     obligation=CONDITIONAL,
     specification=ISO_19107)
public static final KnotType PIECEWISE_BEZIER
The form of knots is appropriate for a piecewise Bezier curve.

Method Detail

values

public static KnotType[] values()
Returns the list of KnotTypes.

Returns:
The list of codes declared in the current JVM.

family

public KnotType[] family()
Returns the list of enumerations of the same kind than this enum.

Specified by:
family in class CodeList<KnotType>
Returns:
The codes of the same kind than this code.

valueOf

public static KnotType valueOf(String code)
Returns the KnotType that matches the given string, or returns a new one if none match it.

Parameters:
code - The name of the code to fetch or to create.
Returns:
A code matching the given name.


Copyright © 1996-2014 Geotools. All Rights Reserved.