model
Enum ObjectType.ObjType

java.lang.Object
  extended by java.lang.Enum<ObjectType.ObjType>
      extended by model.ObjectType.ObjType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ObjectType.ObjType>
Enclosing class:
ObjectType

public static enum ObjectType.ObjType
extends java.lang.Enum<ObjectType.ObjType>

These are all the ObjectTypes supported by the program. To add a new ObjectType, add it to the list and then to the getStringOf(...) and getObjectOf(...) methods below.


Enum Constant Summary
Complex
           
Model
           
PrimitiveCone
           
PrimitiveCube
           
PrimitiveCylinder
           
PrimitiveHalfCube
           
PrimitiveHalfCylinderWall
           
PrimitivePyramid
           
PrimitiveRoof
           
PrimitiveSphere
           
PrimitiveThickHalfCylinderWall
           
Undefined
           
 
Method Summary
static ObjectType.ObjType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ObjectType.ObjType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Undefined

public static final ObjectType.ObjType Undefined

Model

public static final ObjectType.ObjType Model

PrimitiveCube

public static final ObjectType.ObjType PrimitiveCube

PrimitiveSphere

public static final ObjectType.ObjType PrimitiveSphere

PrimitiveCylinder

public static final ObjectType.ObjType PrimitiveCylinder

PrimitivePyramid

public static final ObjectType.ObjType PrimitivePyramid

PrimitiveCone

public static final ObjectType.ObjType PrimitiveCone

PrimitiveHalfCube

public static final ObjectType.ObjType PrimitiveHalfCube

PrimitiveRoof

public static final ObjectType.ObjType PrimitiveRoof

PrimitiveHalfCylinderWall

public static final ObjectType.ObjType PrimitiveHalfCylinderWall

PrimitiveThickHalfCylinderWall

public static final ObjectType.ObjType PrimitiveThickHalfCylinderWall

Complex

public static final ObjectType.ObjType Complex
Method Detail

values

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

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

valueOf

public static ObjectType.ObjType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name