Package com.luciad.format.database.shape
Class TLcdXYZMPolygon
- All Implemented Interfaces:
ILcdBounded,ILcdCurve,ILcdPointList,ILcdPointList2,ILcdPolygon,ILcdPolypoint,ILcdRing,ILcdShape,ILcd2DEditablePointList,ILcd2DEditablePolygon,ILcd2DEditablePolypoint,ILcd2DEditableShape,ILcd3DEditablePointList,ILcd3DEditablePolygon,ILcd3DEditablePolypoint,ILcd3DEditableShape,ILcdCache,ILcdCloneable,Serializable,Cloneable
This class represents a
TLcdXYZPolygon with measure values.- Since:
- 2022.1
- See Also:
-
Field Summary
Fields inherited from interface com.luciad.shape.ILcdCurve
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMBFields inherited from interface com.luciad.shape.ILcdPolygon
CLOCKWISE, COUNTERCLOCKWISE, INVALID_ORIENTATION -
Constructor Summary
ConstructorsConstructorDescriptionTLcdXYZMPolygon(ILcd3DEditablePointList a3DEditablePointList, double[] aMeasureArray) Constructs and initializes from the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetM(int aIndex) Returns the M (measure) coordinate ataIndex.voidinsert2DPoint(int aIndex, double aX, double aY) Inserts a point at the given index into thisILcd2DEditablePointList.voidinsert3DPoint(int aIndex, double aX, double aY, double aZ) Inserts a point at the given index into thisILcd3DEditablePointList.voidremovePointAt(int aIndex) Removes the point at the given index from thisILcd2DEditablePointList.protected voidset3DEditablePointList(ILcd3DEditablePointList a3DEditablePointList) protected voidset3DEditablePointList(ILcd3DEditablePointList a3DEditablePointList, boolean aDeepCopy) Methods inherited from class com.luciad.shape.shape3D.TLcdXYZPolygon
calculateBounds, clone, computePointSFCT, contains2D, contains2D, contains3D, contains3D, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getOrientation, getStartPoint, getStartTangent2D, getTangent2D, setOrientationMethods inherited from class com.luciad.shape.shape3D.TLcdXYZPolypoint
calculateFocusPointMethods inherited from class com.luciad.shape.shape3D.ALcd3DEditablePolypoint
clearCache, equals, get3DEditablePointList, getBounds, getCachedObject, getFocusPoint, getPoint, getPointCount, getPointSFCT, getX, getY, getZ, hashCode, insertIntoCache, invalidateBounds, move2D, move2DPoint, move3DPoint, removeCachedObject, setFocusPoint, toString, translate2D, translate2DPoint, translate3D, translate3DPointMethods inherited from class com.luciad.shape.shape3D.ALcd3DEditableShape
move3D, move3DMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditableShape
move2DMethods inherited from class com.luciad.shape.ALcdShape
fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, move2DPoint, translate2D, translate2DPointMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditablePointList
move3DPoint, translate3D, translate3DPointMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, move3D, translate3DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCache
clearCache, getCachedObject, insertIntoCache, removeCachedObjectMethods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
getFocusPoint
-
Constructor Details
-
TLcdXYZMPolygon
Constructs and initializes from the specified parameters.- Parameters:
a3DEditablePointList- the points to consider.aMeasureArray- the array of m (measure) coordinates.
-
-
Method Details
-
getM
Returns the M (measure) coordinate ataIndex.- Parameters:
aIndex- the index for which to return the M coordinate.- Returns:
- the M coordinate of the point at
aIndex. - Throws:
IndexOutOfBoundsException- ifaIndex < 0 || aIndex >= getPointCount()
-
insert3DPoint
public void insert3DPoint(int aIndex, double aX, double aY, double aZ) Description copied from interface:ILcd3DEditablePointListInserts a point at the given index into thisILcd3DEditablePointList.- Specified by:
insert3DPointin interfaceILcd3DEditablePointList- Overrides:
insert3DPointin classALcd3DEditablePolypoint- Parameters:
aIndex- a valid new index in the list of points.aX- the x coordinate of the new point.aY- the y coordinate of the new point.aZ- the z coordinate of the new point.
-
set3DEditablePointList
- Overrides:
set3DEditablePointListin classALcd3DEditablePolypoint
-
set3DEditablePointList
protected void set3DEditablePointList(ILcd3DEditablePointList a3DEditablePointList, boolean aDeepCopy) - Overrides:
set3DEditablePointListin classALcd3DEditablePolypoint
-
insert2DPoint
public void insert2DPoint(int aIndex, double aX, double aY) Description copied from interface:ILcd2DEditablePointListInserts a point at the given index into thisILcd2DEditablePointList.- Specified by:
insert2DPointin interfaceILcd2DEditablePointList- Overrides:
insert2DPointin classALcd3DEditablePolypoint- Parameters:
aIndex- a valid new index in the list of points.aX- the x coordinate of the new point.aY- the y coordinate of the new point.
-
removePointAt
public void removePointAt(int aIndex) Description copied from interface:ILcd2DEditablePointListRemoves the point at the given index from thisILcd2DEditablePointList.- Specified by:
removePointAtin interfaceILcd2DEditablePointList- Specified by:
removePointAtin interfaceILcd3DEditablePointList- Overrides:
removePointAtin classALcd3DEditablePolypoint- Parameters:
aIndex- a valid index in the list ofILcdPointobjects.
-