public class TLcdExtrudeShape extends ALcd3DEditableShape implements ILcd3DEditableShape, ILcdExtrudedShape
ILcd2DEditableShape
.
Only its first two dimensions are considered. In the third dimension,
the shape is delimited by a maximum and a minimum value.
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.
Constructor and Description |
---|
TLcdExtrudeShape()
Deprecated.
|
TLcdExtrudeShape(ILcd2DEditableShape a2DEditableShape,
double aMinZ,
double aMaxZ)
Deprecated.
Constructs a new
TLcdExtrudeShape with the given parameters. |
TLcdExtrudeShape(TLcdExtrudeShape aTLcdExtrudeShape)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Creates and returns a copy of this object.
|
boolean |
contains2D(double aX,
double aY)
Deprecated.
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Deprecated.
Checks whether this
ALcdShape contains the given point in the
2D cartesian plane. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Deprecated.
Provides an approximate default implementation of the 3D containment test
based on the 2D containment test.
|
boolean |
equals(Object aObject)
Deprecated.
Returns whether the given object has the same class and the same shape.
|
ILcd2DEditableShape |
get2DEditableShape()
Deprecated.
|
ILcdShape |
getBaseShape()
Deprecated.
Returns the shape that is used as a base for extrusion.
|
ILcdBounds |
getBounds()
Deprecated.
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getFocusPoint()
Deprecated.
The focus point is composed as the first two coordinates of the focus point
of the 2D shape, and the minimum value of the third dimension.
|
double |
getMaximumZ()
Deprecated.
Returns the maximum Z value for extrusion.
|
double |
getMaxZ()
Deprecated.
|
double |
getMinimumZ()
Deprecated.
Returns the minimum Z value for extrusion.
|
double |
getMinZ()
Deprecated.
|
int |
hashCode()
Deprecated.
The hash code of this shape is the hash code of its class, in order to
be consistent with the
ALcdShape.equals(Object) method. |
void |
move2D(double aX,
double aY)
Deprecated.
Translates this shape so that its focus point ends up at the specified
position.
|
void |
move3D(double aX,
double aY,
double aZ)
Deprecated.
Moves this
ILcd3DEditableShape to the given point in the 3D space. |
void |
set2DEditableShape(ILcd2DEditableShape a2DEditableShape)
Deprecated.
|
void |
setMaxZ(double newMaxZ)
Deprecated.
|
void |
setMinZ(double newMinZ)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
translate2D(double aDeltaX,
double aDeltaY)
Deprecated.
Translates this
ILcd2DEditableShape from its current position over the given translation
vector in the 2D space. |
void |
translate3D(double aDeltaX,
double aDeltaY,
double aDeltaZ)
Deprecated.
Translates this
ILcd3DEditableShape from its current position over the given translation
vector in the 3D space. |
move3D
move2D
contains3D, fromDomainObject
finalize, getClass, notify, notifyAll, wait, wait, wait
move3D
move2D
contains3D
public TLcdExtrudeShape()
public TLcdExtrudeShape(ILcd2DEditableShape a2DEditableShape, double aMinZ, double aMaxZ)
TLcdExtrudeShape
with the given parameters.a2DEditableShape
- the 2D shape on which the extruded shape is based.aMinZ
- the minimum value along the third dimension.aMaxZ
- the maximum value along the third dimension.public TLcdExtrudeShape(TLcdExtrudeShape aTLcdExtrudeShape)
public ILcdShape getBaseShape()
ILcdExtrudedShape
getBaseShape
in interface ILcdExtrudedShape
public double getMinimumZ()
ILcdExtrudedShape
getMinimumZ
in interface ILcdExtrudedShape
public double getMaximumZ()
ILcdExtrudedShape
getMaximumZ
in interface ILcdExtrudedShape
public void set2DEditableShape(ILcd2DEditableShape a2DEditableShape)
public final ILcd2DEditableShape get2DEditableShape()
public final double getMinZ()
public void setMinZ(double newMinZ)
public void setMaxZ(double newMaxZ)
public final double getMaxZ()
public ILcdPoint getFocusPoint()
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 void move2D(double aX, double aY)
ALcd2DEditableShape
move2D
in interface ILcd2DEditableShape
move2D
in class ALcd2DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public void translate2D(double aDeltaX, double aDeltaY)
ILcd2DEditableShape
ILcd2DEditableShape
from its current position over the given translation
vector in the 2D space. Only the first two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.translate2D
in interface ILcd2DEditableShape
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.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)
ALcdShape
ALcdShape
contains the given point in the
2D cartesian plane.contains2D
in interface ILcdShape
contains2D
in class ALcdShape
aPoint
- the point to test.ILcdShape.contains2D(double, double)
public boolean contains3D(double aX, double aY, double aZ)
ALcd2DEditableShape
contains3D
in interface ILcdShape
contains3D
in class ALcd2DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.true
if the bounds of this shape contain the point in the 3D space
and the shape itself contains the point in the 2D space, false
otherwise.public void move3D(double aX, double aY, double aZ)
ILcd3DEditableShape
ILcd3DEditableShape
to the given point in the 3D space. The focus point
is used as the handle by which the shape is moved.move3D
in interface ILcd3DEditableShape
move3D
in class ALcd3DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
ILcd3DEditableShape
ILcd3DEditableShape
from its current position over the given translation
vector in the 3D space.translate3D
in interface ILcd3DEditableShape
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.aDeltaZ
- the z coordinate of the translation vector.public Object clone()
clone
in interface ILcdCloneable
clone
in class ALcdShape
Object.clone()
public boolean equals(Object aObject)
public int hashCode()
ALcdShape
ALcdShape.equals(Object)
method.
Extensions should refine this implementation, based on their properties.