Package com.luciad.format.s57
Class TLcdS57Node
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdPoint
com.luciad.shape.shape2D.ALcd2DEditablePoint
com.luciad.shape.shape3D.ALcd3DEditablePoint
com.luciad.format.s57.TLcdS57Node
- All Implemented Interfaces:
ILcdBounded,ILcdBounds,ILcdPoint,ILcdPointList,ILcdPolypoint,ILcdShape,ILcd2DEditablePoint,ILcd2DEditableShape,ILcd3DEditablePoint,ILcd3DEditableShape,ILcdCloneable,Serializable,Cloneable
Represents a node in the S-57 domain model.
An S-57 node is a simple point geometry, and can be part of a Point, Line or Area Feature.
- Since:
- 11.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTLcdS57Node(int aId, double aX, double aY) Constructs an S-57 node with the given ID and coordinates. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds.Returns a copy of thisILcdPointthat is also anILcd2DEditablePoint.Returns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds.Returns a copy of thisILcdPointthat is also anILcd3DEditablePoint.booleanReturns whether the given object has the same class and the same coordinates.intgetId()Returns the ID of this node, unique among all nodes within the model.doublegetX()Returns the x coordinate of thisILcdPoint.doublegetY()Returns the y coordinate of thisILcdPoint.doublegetZ()Returns the z coordinate of thisILcdPoint.inthashCode()The hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)method.booleaninteracts2D(double aLon, double aLat, double aWidth, double aHeight) Checks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space.voidmove3D(double aX, double aY, double aZ) Moves thisILcd3DEditableShapeto the given point in the 3D space.Methods inherited from class com.luciad.shape.shape3D.ALcd3DEditablePoint
move2D, move3D, toString, translate3DMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePoint
move2D, translate2DMethods inherited from class com.luciad.shape.ALcdPoint
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, getBounds, getCosX, getCosY, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getSinX, getSinY, getTanX, getTanY, getWidth, interacts2D, interacts3D, interacts3D, isDefinedMethods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, translate2DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.shape.ILcdBounds
getCenterMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdPoint
getCosX, getCosY, getSinX, getSinY, getTanX, getTanYMethods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdS57Node
public TLcdS57Node(int aId, double aX, double aY) Constructs an S-57 node with the given ID and coordinates.- Parameters:
aId- an ID for this edge, unique within the model.aX- the X coordinate of this node.aY- the Y coordinate of this node.
-
-
Method Details
-
getId
public int getId()Returns the ID of this node, unique among all nodes within the model.- Returns:
- the ID of this node, unique among all nodes within the model.
-
move3D
public void move3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableShapeMoves thisILcd3DEditableShapeto the given point in the 3D space. The focus point is used as the handle by which the shape is moved.- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
getX
public double getX()Description copied from interface:ILcdPointReturns the x coordinate of thisILcdPoint.- Returns:
- the x coordinate of this
ILcdPoint.
-
getY
public double getY()Description copied from interface:ILcdPointReturns the y coordinate of thisILcdPoint.- Returns:
- the y coordinate of this
ILcdPoint.
-
getZ
public double getZ()Description copied from interface:ILcdPointReturns the z coordinate of thisILcdPoint.- Specified by:
getZin interfaceILcdPoint- Overrides:
getZin classALcd2DEditablePoint- Returns:
- 0.
-
cloneAs2DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable,- Returns:
- a copy of this
ILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
cloneAs3DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable,- Returns:
- a copy of this
ILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
interacts2D
public boolean interacts2D(double aLon, double aLat, double aWidth, double aHeight) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Overrides:
interacts2Din classALcdPoint- Parameters:
aLon- the x coordinate of the rectangle.aLat- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given rectangle,falseotherwise.
-
equals
Description copied from class:ALcdPointReturns whether the given object has the same class and the same coordinates.- Specified by:
equalsin interfaceILcdPoint- Overrides:
equalsin classALcdPoint- Parameters:
aObject- theObjectto compare to.- Returns:
- false if aObject is an ILcdPoint object with different 3D coordinates or the object is not an ILcdPoint. If the objects do have the same 3D coordinates, the return value is defined by the specific implementations of ILcdPoint and may still be false.
-
hashCode
public int hashCode()Description copied from class:ALcdShapeThe hash code of this shape is the hash code of its class, in order to be consistent with theALcdShape.equals(Object)method. Extensions should refine this implementation, based on their properties.
-