com.supermap.data
Class GeoCardinal
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoCardinal
-
-
Constructor Summary
Constructors Constructor and Description GeoCardinal()Create a new GeoCardinal object.GeoCardinal(GeoCardinal geoCardinal)Create a new GeoCardinal object that is the same with the given GeoCardinal object.GeoCardinal(Point2Ds controlPoints)Create a new GeoCardinal object with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoCardinalclone()Returns a copy of the current GeoCardinal object.GeoLineconvertToLine(int pointCountPerSegment)Converts the GeoCardinal object to the GeoLine object.voiddispose()Disposes the resources occupied by the object.Point2DsgetControlPoints()Returns the control point set.doublegetLength()Returns the length of the 2D GeoCardinal object.booleanisEmpty()Returns whether the 2D Cardinal spline is null.voidsetControlPoints(Point2Ds point2Ds)Sets the control point set.voidsetEmpty()Clear 2D Cardinal spline.
-
-
-
Constructor Detail
-
GeoCardinal
public GeoCardinal()
Create a new GeoCardinal object.
-
GeoCardinal
public GeoCardinal(GeoCardinal geoCardinal)
Create a new GeoCardinal object that is the same with the given GeoCardinal object.- Parameters:
geoCardinal- the specified GeoCardinal object.
-
GeoCardinal
public GeoCardinal(Point2Ds controlPoints)
Create a new GeoCardinal object with the given parameters.- Parameters:
controlPoints- control Points
-
-
Method Detail
-
getLength
public double getLength()
Returns the length of the 2D GeoCardinal object.- Returns:
- the length of the 2D GeoCardinal object.
- Default:
- The default value is 0.
-
getControlPoints
public Point2Ds getControlPoints()
Returns the control point set.- Returns:
- Control point collection.
- Default:
- The default value is an empty
Point2Dsobject.
-
setControlPoints
public void setControlPoints(Point2Ds point2Ds)
Sets the control point set.- Parameters:
point2Ds- The control point set.
-
convertToLine
public GeoLine convertToLine(int pointCountPerSegment)
Converts the GeoCardinal object to the GeoLine object.- Parameters:
pointCountPerSegment- the number of vertices between two neighbor control points.- Returns:
- The line geometrical object.
-
isEmpty
public boolean isEmpty()
Returns whether the 2D Cardinal spline is null.
-
dispose
public void dispose()
Disposes the resources occupied by the object. After calling this method, this object will not be usable.
-
clone
public GeoCardinal clone()
Returns a copy of the current GeoCardinal object.
-
-