com.supermap.data
Class GeoBSpline
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoBSpline
-
public class GeoBSpline extends Geometry
The GeoBSpline class.This class is mainly used for CAD layer, it is the sub object of
Geometryobject.B-Spline Curves: it is a kind of curve, which consists of four or more than four control points, in which the direction and steepness of each section of the arc are controlled by the adjacent four control points.
-
-
Constructor Summary
Constructors Constructor and Description GeoBSpline()Create a new GeoBSpline object.GeoBSpline(GeoBSpline geoBSpline)Create a new GeoBSpline object that is the same with the given GeoBSpline object.GeoBSpline(Point2Ds controlPoints)Creates a new GeoBSpline object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoBSplineclone()Return a copy of the current GeoBSpline object.GeoLineconvertToLine(int pointCountPerSegment)Converts the GeoBSpline object to the GeoLine object.voiddispose()Release the resource occupy by this object.Point2DsgetControlPoints()Returns the control point set.doublegetLength()Returns the length of the GeoBSpline object.voidsetControlPoints(Point2Ds controlPoints)Sets the control point set.
-
-
-
Constructor Detail
-
GeoBSpline
public GeoBSpline()
Create a new GeoBSpline object.
-
GeoBSpline
public GeoBSpline(GeoBSpline geoBSpline)
Create a new GeoBSpline object that is the same with the given GeoBSpline object.- Parameters:
geoBSpline- The specified GeoBSpline object.
-
GeoBSpline
public GeoBSpline(Point2Ds controlPoints)
Creates a new GeoBSpline object according to the specified arguments.- Parameters:
controlPoints- control Points
-
-
Method Detail
-
getLength
public double getLength()
Returns the length of the GeoBSpline object.- Returns:
- the length of the GeoBSpline 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 null
Point2Ds.
-
setControlPoints
public void setControlPoints(Point2Ds controlPoints)
Sets the control point set.- Parameters:
controlPoints- control Points
-
convertToLine
public GeoLine convertToLine(int pointCountPerSegment)
Converts the GeoBSpline object to the GeoLine object.- Parameters:
pointCountPerSegment- The number of vertices between two neighbor control points.- Returns:
- The line collection object.
-
clone
public GeoBSpline clone()
Return a copy of the current GeoBSpline object.
-
-