Class TLcdExtrudedShape

java.lang.Object
com.luciad.shape.shape3D.TLcdExtrudedShape
All Implemented Interfaces:
ILcdBounded, ILcdShape, ILcdEditableExtrudedShape, ILcdExtrudedShape, ILcdCache, ILcdCloneable, ILcdInvalidateable, Serializable, Cloneable

public class TLcdExtrudedShape extends Object implements ILcdEditableExtrudedShape, Cloneable, ILcdCache, ILcdInvalidateable
This class provides an implementation of ILcdEditableExtrudedShape.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

See Also:
  • Field Details

  • Constructor Details

    • TLcdExtrudedShape

      public TLcdExtrudedShape()
    • TLcdExtrudedShape

      public TLcdExtrudedShape(ILcdShape aShape)
    • TLcdExtrudedShape

      public TLcdExtrudedShape(ILcdShape aShape, double aMinZ, double aMaxZ)
  • Method Details

    • getMinimumZ

      public double getMinimumZ()
      Description copied from interface: ILcdExtrudedShape
      Returns the minimum Z value for extrusion.
      Specified by:
      getMinimumZ in interface ILcdExtrudedShape
      Returns:
      the minimum Z value for extrusion.
    • setMinimumZ

      public void setMinimumZ(double aMinimumZ)
      Description copied from interface: ILcdEditableExtrudedShape
      Sets the minimum Z value.
      Specified by:
      setMinimumZ in interface ILcdEditableExtrudedShape
      Parameters:
      aMinimumZ - the minimum Z value.
    • getMaximumZ

      public double getMaximumZ()
      Description copied from interface: ILcdExtrudedShape
      Returns the maximum Z value for extrusion.
      Specified by:
      getMaximumZ in interface ILcdExtrudedShape
      Returns:
      the maximum Z value for extrusion.
    • setMaximumZ

      public void setMaximumZ(double aMaximumZ)
      Description copied from interface: ILcdEditableExtrudedShape
      Sets the maximum Z value.
      Specified by:
      setMaximumZ in interface ILcdEditableExtrudedShape
      Parameters:
      aMaximumZ - the maximum Z value.
    • getBaseShape

      public ILcdShape getBaseShape()
      Description copied from interface: ILcdExtrudedShape
      Returns the shape that is used as a base for extrusion.
      Specified by:
      getBaseShape in interface ILcdExtrudedShape
      Returns:
      the shape that is used as a base for extrusion.
    • setBaseShape

      public void setBaseShape(ILcdShape aBaseShape)
      Description copied from interface: ILcdEditableExtrudedShape
      Sets the base shape that is extruded.
      Specified by:
      setBaseShape in interface ILcdEditableExtrudedShape
      Parameters:
      aBaseShape - the base shape that is extruded.
    • contains2D

      public boolean contains2D(double aX, double aY)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains2D

      public boolean contains2D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 2D space. Only the first two dimensions of the ILcdShape and the ILcdPoint are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • contains3D

      public boolean contains3D(double aX, double aY, double aZ)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains3D

      public boolean contains3D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • getFocusPoint

      public ILcdPoint getFocusPoint()
      Description copied from interface: ILcdShape
      Returns the focus point of this ILcdShape.
      Specified by:
      getFocusPoint in interface ILcdShape
      Returns:
      the focus point of this ILcdShape.
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • clone

      public Object clone()
      Creates and returns a copy of this object.

      The contained editable shape is cloned.

      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class Object
      See Also:
    • equals

      public boolean equals(Object aObject)
      Returns whether the given object has the same class and the same shape.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • insertIntoCache

      public void insertIntoCache(Object aKey, Object aObject)
      Description copied from interface: ILcdCache
      Inserts a cache Object corresponding to the given key Object.
      Specified by:
      insertIntoCache in interface ILcdCache
      Parameters:
      aKey - the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself: insertIntoCache(this, ...).
      aObject - the Object to be cached.
    • getCachedObject

      public Object getCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and returns the cached Object corresponding to the given key.
      Specified by:
      getCachedObject in interface ILcdCache
      Parameters:
      aKey - the key Object that was used for storing the cache Object.
      Returns:
      the cached Object, or null if there is no Object corresponding to the given key.
    • removeCachedObject

      public Object removeCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and removes the cached Object corresponding to the given key.
      Specified by:
      removeCachedObject in interface ILcdCache
      Parameters:
      aKey - the key Object that was used for storing the cache Object.
      Returns:
      the cached Object, or null if there was no Object corresponding to the given key.
    • clearCache

      public void clearCache()
      Description copied from interface: ILcdCache
      Clears the cache.
      Specified by:
      clearCache in interface ILcdCache
    • invalidateObject

      public void invalidateObject()
      Description copied from interface: ILcdInvalidateable
      Invalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.
      Specified by:
      invalidateObject in interface ILcdInvalidateable