Package com.luciad.shape.shape3D
Class TLcdXYZFloatPoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdPoint
com.luciad.shape.shape2D.ALcd2DEditablePoint
com.luciad.shape.shape3D.ALcd3DEditablePoint
com.luciad.shape.shape3D.TLcdXYZFloatPoint
- All Implemented Interfaces:
ILcdBounded
,ILcdBounds
,ILcdPoint
,ILcdPointList
,ILcdPolypoint
,ILcdShape
,ILcd2DEditablePoint
,ILcd2DEditableShape
,ILcd3DEditablePoint
,ILcd3DEditableShape
,ILcdCloneable
,Serializable
,Cloneable
This class provides an implementation of
ILcd3DEditablePoint
in
the cartesian space, but internally using floats instead of doubles.
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:
-
Constructor Summary
ConstructorDescriptionConstructs and initializes a newTLcdXYFloatPoint
initialized with (0, 0).TLcdXYZFloatPoint
(double aX, double aY, double aZ) Constructs and initializes a newTLcdXYFloatPoint
with the specified x and y coordinates.TLcdXYZFloatPoint
(ILcdPoint aPoint) Constructs and initializes a newTLcdXYFloatPoint
with the same location as the specifiedILcdPoint
. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object, by delegating toObject.clone()
.Returns a copy of thisILcdBounds
object that is also anILcd2DEditableBounds
.Returns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
.Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
.Returns a copy of thisILcdPoint
that is also anILcd3DEditablePoint
.final double
getX()
Returns the x coordinate of thisILcdPoint
.final double
getY()
Returns the y coordinate of thisILcdPoint
.final double
getZ()
Returns the z coordinate of thisILcdPoint
.void
move2D
(double aX, double aY) Changes the point to have the specified location.void
move3D
(double aX, double aY, double aZ) Moves thisILcd3DEditableShape
to the given point in the 3D space.toString()
Methods inherited from class com.luciad.shape.shape3D.ALcd3DEditablePoint
move3D, translate3D
Methods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePoint
move2D, translate2D
Methods inherited from class com.luciad.shape.ALcdPoint
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, equals, getBounds, getCosX, getCosY, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getSinX, getSinY, getTanX, getTanY, getWidth, hashCode, interacts2D, interacts2D, interacts3D, interacts3D, isDefined
Methods inherited from class com.luciad.shape.ALcdShape
contains2D, contains3D, fromDomainObject
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, translate2D
Methods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, translate3D
Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.shape.ILcdBounds
getCenter
Methods inherited from interface com.luciad.shape.ILcdPoint
equals, getCosX, getCosY, getSinX, getSinY, getTanX, getTanY
Methods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdXYZFloatPoint
public TLcdXYZFloatPoint()Constructs and initializes a newTLcdXYFloatPoint
initialized with (0, 0). -
TLcdXYZFloatPoint
Constructs and initializes a newTLcdXYFloatPoint
with the same location as the specifiedILcdPoint
.- Parameters:
aPoint
- the point.
-
TLcdXYZFloatPoint
public TLcdXYZFloatPoint(double aX, double aY, double aZ) Constructs and initializes a newTLcdXYFloatPoint
with the specified x and y coordinates.- Parameters:
aX
- the x coordinate.aY
- the y coordinate.
-
-
Method Details
-
move2D
public void move2D(double aX, double aY) Changes the point to have the specified location.- Specified by:
move2D
in interfaceILcd2DEditableShape
- Overrides:
move2D
in classALcd3DEditablePoint
- Parameters:
aX
- the x coordinate of the new location.aY
- the y coordinate of the new location.
-
move3D
public void move3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableShape
Moves thisILcd3DEditableShape
to the given point in the 3D space. The focus point is used as the handle by which the shape is moved.- Specified by:
move3D
in interfaceILcd3DEditableShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.
-
getX
public final double getX()Description copied from interface:ILcdPoint
Returns the x coordinate of thisILcdPoint
. -
getY
public final double getY()Description copied from interface:ILcdPoint
Returns the y coordinate of thisILcdPoint
. -
getZ
public final double getZ()Description copied from interface:ILcdPoint
Returns the z coordinate of thisILcdPoint
.- Specified by:
getZ
in interfaceILcdPoint
- Overrides:
getZ
in classALcd2DEditablePoint
- Returns:
- 0.
-
toString
- Overrides:
toString
in classALcd3DEditablePoint
-
clone
Description copied from class:ALcdShape
Creates and returns a copy of this object, by delegating toObject.clone()
. Extensions should delegate to this implementation withsuper.clone()
, in order to create an object instance of the right type, with all fields copied. They then should explicitly clone any non-primitive fields for which a deeper clone is required.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classALcdShape
- See Also:
-
cloneAs2DEditablePoint
Description copied from interface:ILcdPoint
Returns a copy of thisILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable,- Specified by:
cloneAs2DEditablePoint
in interfaceILcdPoint
- Returns:
- a copy of this
ILcdPoint
that is also anILcd2DEditablePoint
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPoint
object may be read-only. - See Also:
-
cloneAs3DEditablePoint
Description copied from interface:ILcdPoint
Returns a copy of thisILcdPoint
that is also anILcd3DEditablePoint
. This makes sure that all three dimensions of the copy are writable,- Specified by:
cloneAs3DEditablePoint
in interfaceILcdPoint
- Returns:
- a copy of this
ILcdPoint
that is also anILcd3DEditablePoint
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdPoint
object may be read-only. - See Also:
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs2DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs3DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-