org.deegree.geometry.primitive.segments
Enum KnotType

java.lang.Object
  extended by java.lang.Enum<KnotType>
      extended by org.deegree.geometry.primitive.segments.KnotType
All Implemented Interfaces:
Serializable, Comparable<KnotType>

public enum KnotType
extends Enum<KnotType>

Defines allowed values for the knots' type. Uniform knots implies that all knots are of multiplicity 1 and they differ by a positive constant from the preceding knot. Knots are quasi-uniform iff they are of multiplicity (degree + 1) at the ends, of multiplicity 1 elsewhere, and they differ by a positive constant from the preceding knot.

Version:
$Revision: 31641 $, $Date: 2011-08-24 21:24:55 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Enum Constant Summary
BEZIER
          ???
QUASI_UNIFORM
          Multiplicity of the knots is (degree + 1) at the ends, 1 elsewhere, and knots differ by a positive constant from the preceding knot.
UNIFORM
          All knots are of multiplicity 1 and they differ by a positive constant from the preceding knot.
UNSPECIFIED
           
 
Method Summary
static KnotType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KnotType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNSPECIFIED

public static final KnotType UNSPECIFIED

UNIFORM

public static final KnotType UNIFORM
All knots are of multiplicity 1 and they differ by a positive constant from the preceding knot.


QUASI_UNIFORM

public static final KnotType QUASI_UNIFORM
Multiplicity of the knots is (degree + 1) at the ends, 1 elsewhere, and knots differ by a positive constant from the preceding knot.


BEZIER

public static final KnotType BEZIER
???

Method Detail

values

public static KnotType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (KnotType c : KnotType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KnotType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.