public class TLcdExtrudedShape extends Object implements ILcdEditableExtrudedShape, Cloneable, ILcdCache, ILcdInvalidateable
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.
Modifier and Type | Field and Description |
---|---|
protected ILcdShape |
fBaseShape
The base shape.
|
Constructor and Description |
---|
TLcdExtrudedShape() |
TLcdExtrudedShape(ILcdShape aShape) |
TLcdExtrudedShape(ILcdShape aShape,
double aMinZ,
double aMaxZ) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
Object |
clone()
Creates and returns a copy of this object.
|
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
boolean |
equals(Object aObject)
Returns whether the given object has the same class and the same shape.
|
ILcdShape |
getBaseShape()
Returns the shape that is used as a base for extrusion.
|
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
double |
getMaximumZ()
Returns the maximum Z value for extrusion.
|
double |
getMinimumZ()
Returns the minimum Z value for extrusion.
|
int |
hashCode() |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
void |
invalidateObject()
Invalidates all cached values of this object.
|
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void |
setBaseShape(ILcdShape aBaseShape)
Sets the base shape that is extruded.
|
void |
setMaximumZ(double aMaximumZ)
Sets the maximum Z value.
|
void |
setMinimumZ(double aMinimumZ)
Sets the minimum Z value.
|
String |
toString() |
protected ILcdShape fBaseShape
setBaseShape(com.luciad.shape.ILcdShape)
and getBaseShape()
.public TLcdExtrudedShape()
public TLcdExtrudedShape(ILcdShape aShape)
public TLcdExtrudedShape(ILcdShape aShape, double aMinZ, double aMaxZ)
public double getMinimumZ()
ILcdExtrudedShape
getMinimumZ
in interface ILcdExtrudedShape
public void setMinimumZ(double aMinimumZ)
ILcdEditableExtrudedShape
setMinimumZ
in interface ILcdEditableExtrudedShape
aMinimumZ
- the minimum Z value.public double getMaximumZ()
ILcdExtrudedShape
getMaximumZ
in interface ILcdExtrudedShape
public void setMaximumZ(double aMaximumZ)
ILcdEditableExtrudedShape
setMaximumZ
in interface ILcdEditableExtrudedShape
aMaximumZ
- the maximum Z value.public ILcdShape getBaseShape()
ILcdExtrudedShape
getBaseShape
in interface ILcdExtrudedShape
public void setBaseShape(ILcdShape aBaseShape)
ILcdEditableExtrudedShape
setBaseShape
in interface ILcdEditableExtrudedShape
aBaseShape
- the base shape that is extruded.public boolean contains2D(double aX, double aY)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public ILcdBounds getBounds()
ILcdBounded
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
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public Object clone()
clone
in interface ILcdCloneable
clone
in class Object
Object.clone()
public boolean equals(Object aObject)
public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
insertIntoCache
in interface ILcdCache
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.public Object getCachedObject(Object aKey)
ILcdCache
getCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
ILcdCache
removeCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
ILcdCache
clearCache
in interface ILcdCache
public void invalidateObject()
ILcdInvalidateable
invalidateObject
in interface ILcdInvalidateable