com.supermap.data
Class GeoCurve
- java.lang.Object
-
- com.supermap.data.Geometry
-
- com.supermap.data.GeoCurve
-
public class GeoCurve extends Geometry
The 2D GeoCurve class.This class is mainly used for CAD layer, it is the sub object of object
Geometry
.Curve is the object from DGN data, a curve consists of 6 points at least, and the first two points and the last two points are used to control the direction of the curve, the middle points are the points on the curve.
-
-
Constructor Summary
Constructors Constructor and Description GeoCurve()
Constructs a new GeoCurve object.GeoCurve(GeoCurve geoCurve)
Initializes a new instance according to the specified GeoCurve object.GeoCurve(Point2Ds controlPoints)
Creates a new GeoCurve object according to the specified arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoCurve
clone()
Returns a copy of the current GeoCurve object.GeoLine
convertToLine(int pointCountPerSegment)
Converts the GeoCurve 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 GeoCurve object.boolean
isEmpty()
Returns whether the GeoCurve object is null.void
setControlPoints(Point2Ds controlPoints)
Sets the control point set.void
setEmpty()
Set the GeoCurve object as empty.
-
-
-
Constructor Detail
-
GeoCurve
public GeoCurve()
Constructs a new GeoCurve object.
-
GeoCurve
public GeoCurve(GeoCurve geoCurve)
Initializes a new instance according to the specified GeoCurve object.- Parameters:
geoCurve
- the specified GeoCurve object.
-
GeoCurve
public GeoCurve(Point2Ds controlPoints)
Creates a new GeoCurve object according to the specified arguments.- Parameters:
controlPoints
- control Points
-
-
Method Detail
-
getLength
public double getLength()
Returns the length of the GeoCurve object.- Returns:
- the length of the GeoCurve object.
- Default:
- The default value is 0.
-
isEmpty
public boolean isEmpty()
Returns whether the GeoCurve object is null.
-
setEmpty
public void setEmpty()
Set the GeoCurve object as empty.
-
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 controlPoints)
Sets the control point set.- Parameters:
controlPoints
- control Points
-
convertToLine
public GeoLine convertToLine(int pointCountPerSegment)
Converts the GeoCurve object to the GeoLine object.- Parameters:
pointCountPerSegment
- The number of vertices between two neighbor control points.- Returns:
- The line collection object.
-
clone
public GeoCurve clone()
Returns a copy of the current GeoCurve object.
-
-