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 GeoCardinal
clone()
Returns a copy of the current GeoCardinal object.GeoLine
convertToLine(int pointCountPerSegment)
Converts the GeoCardinal object to the GeoLine object.void
dispose()
Disposes the resources occupied by the object.Point2Ds
getControlPoints()
Returns the control point set.double
getLength()
Returns the length of the 2D GeoCardinal object.boolean
isEmpty()
Returns whether the 2D Cardinal spline is null.void
setControlPoints(Point2Ds point2Ds)
Sets the control point set.void
setEmpty()
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
Point2Ds
object.
-
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.
-
-