Package com.luciad.shape.shape3D
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTLcdExtrudedShape(ILcdShape aShape) TLcdExtrudedShape(ILcdShape aShape, double aMinZ, double aMaxZ) -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.clone()Creates and returns a copy of this object.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.booleanReturns whether the given object has the same class and the same shape.Returns the shape that is used as a base for extrusion.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.getCachedObject(Object aKey) Looks up and returns the cached Object corresponding to the given key.Returns the focus point of thisILcdShape.doubleReturns the maximum Z value for extrusion.doubleReturns the minimum Z value for extrusion.inthashCode()voidinsertIntoCache(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.voidInvalidates all cached values of this object.removeCachedObject(Object aKey) Looks up and removes the cached Object corresponding to the given key.voidsetBaseShape(ILcdShape aBaseShape) Sets the base shape that is extruded.voidsetMaximumZ(double aMaximumZ) Sets the maximum Z value.voidsetMinimumZ(double aMinimumZ) Sets the minimum Z value.toString()
-
Field Details
-
fBaseShape
The base shape. Do not use this field directly, instead usesetBaseShape(com.luciad.shape.ILcdShape)andgetBaseShape().
-
-
Constructor Details
-
TLcdExtrudedShape
public TLcdExtrudedShape() -
TLcdExtrudedShape
-
TLcdExtrudedShape
-
-
Method Details
-
getMinimumZ
public double getMinimumZ()Description copied from interface:ILcdExtrudedShapeReturns the minimum Z value for extrusion.- Specified by:
getMinimumZin interfaceILcdExtrudedShape- Returns:
- the minimum Z value for extrusion.
-
setMinimumZ
public void setMinimumZ(double aMinimumZ) Description copied from interface:ILcdEditableExtrudedShapeSets the minimum Z value.- Specified by:
setMinimumZin interfaceILcdEditableExtrudedShape- Parameters:
aMinimumZ- the minimum Z value.
-
getMaximumZ
public double getMaximumZ()Description copied from interface:ILcdExtrudedShapeReturns the maximum Z value for extrusion.- Specified by:
getMaximumZin interfaceILcdExtrudedShape- Returns:
- the maximum Z value for extrusion.
-
setMaximumZ
public void setMaximumZ(double aMaximumZ) Description copied from interface:ILcdEditableExtrudedShapeSets the maximum Z value.- Specified by:
setMaximumZin interfaceILcdEditableExtrudedShape- Parameters:
aMaximumZ- the maximum Z value.
-
getBaseShape
Description copied from interface:ILcdExtrudedShapeReturns the shape that is used as a base for extrusion.- Specified by:
getBaseShapein interfaceILcdExtrudedShape- Returns:
- the shape that is used as a base for extrusion.
-
setBaseShape
Description copied from interface:ILcdEditableExtrudedShapeSets the base shape that is extruded.- Specified by:
setBaseShapein interfaceILcdEditableExtrudedShape- Parameters:
aBaseShape- the base shape that is extruded.
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto 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:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- 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
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
clone
Creates and returns a copy of this object. The contained editable shape is cloned.- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classObject- See Also:
-
equals
Returns whether the given object has the same class and the same shape. -
hashCode
public int hashCode() -
toString
-
insertIntoCache
Description copied from interface:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein interfaceILcdCache- 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
Description copied from interface:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin interfaceILcdCache- 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
Description copied from interface:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin interfaceILcdCache- 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:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-
invalidateObject
public void invalidateObject()Description copied from interface:ILcdInvalidateableInvalidates 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:
invalidateObjectin interfaceILcdInvalidateable
-