com.hedgehog.geo.twod
Class IndexObject2D

java.lang.Object
  extended by com.hedgehog.HObject
      extended by com.hedgehog.geo.GeometricObject
          extended by com.hedgehog.geo.twod.IndexObject2D
All Implemented Interfaces:
ModelObject, java.lang.Comparable, java.util.Comparator
Direct Known Subclasses:
IndexPointObject2D

public abstract class IndexObject2D
extends GeometricObject

Title: IndexObject2D - abstract base class of 2D index objects.

Description: Abstract base class of 2D index objects.

Copyright: Copyright (c) Hedgehog Software 2007-2009.

Company: Hedgehog Software.

Since:
1.0
Version:
1.1

Field Summary
 
Fields inherited from class com.hedgehog.HObject
mID, mName
 
Constructor Summary
IndexObject2D()
          Default constructor.
IndexObject2D(ID id)
          Constructor.
IndexObject2D(IndexObject2D object)
          Copy constructor.
IndexObject2D(java.lang.String name)
          Constructor.
IndexObject2D(java.lang.String name, ID id)
          Constructor.
 
Method Summary
 boolean is2D()
          Tests whether or not this object is a 2D object; ie true.
 boolean is3D()
          Tests whether or not this object is a 3D object; ie false.
 
Methods inherited from class com.hedgehog.geo.GeometricObject
isCurve, isGrid, isMesh, isPoint, isPointSet, isShape, isSurface, objectDimension
 
Methods inherited from class com.hedgehog.HObject
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hedgehog.model.ModelObject
childModelObjects, databaseInsertStatement, databaseUpdateStatement, fromDatabase, fromXMLNode, toX3DNode, toXMLNode
 

Constructor Detail

IndexObject2D

public IndexObject2D()
Default constructor.


IndexObject2D

public IndexObject2D(java.lang.String name)
Constructor. Creates an empty but non-null vector of points.

Parameters:
name - Point set name.

IndexObject2D

public IndexObject2D(ID id)
Constructor. Creates an empty but non-null vector of points.

Parameters:
id - Point set ID.

IndexObject2D

public IndexObject2D(java.lang.String name,
                     ID id)
Constructor. Creates an empty but non-null vector of points.

Parameters:
name - Point set name.
id - Point set ID.

IndexObject2D

public IndexObject2D(IndexObject2D object)
Copy constructor.

Parameters:
object - Object to copy.
Method Detail

is2D

public boolean is2D()
Tests whether or not this object is a 2D object; ie true. @return Logical-true.

Specified by:
is2D in class GeometricObject
Returns:
Logical-true if this object is a 2D object.

is3D

public boolean is3D()
Tests whether or not this object is a 3D object; ie false. @return Logical-false.

Specified by:
is3D in class GeometricObject
Returns:
Logical-true if this object is a 3D object.