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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method and Description GeoCurveclone()Returns a copy of the current GeoCurve object.GeoLineconvertToLine(int pointCountPerSegment)Converts the GeoCurve 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 GeoCurve object.booleanisEmpty()Returns whether the GeoCurve object is null.voidsetControlPoints(Point2Ds controlPoints)Sets the control point set.voidsetEmpty()Set the GeoCurve object as empty.
 
- 
- 
- 
Constructor Detail- 
GeoCurvepublic GeoCurve() Constructs a new GeoCurve object.
 - 
GeoCurvepublic GeoCurve(GeoCurve geoCurve) Initializes a new instance according to the specified GeoCurve object.- Parameters:
- geoCurve- the specified GeoCurve object.
 
 - 
GeoCurvepublic GeoCurve(Point2Ds controlPoints) Creates a new GeoCurve object according to the specified arguments.- Parameters:
- controlPoints- control Points
 
 
- 
 - 
Method Detail- 
getLengthpublic double getLength() Returns the length of the GeoCurve object.- Returns:
- the length of the GeoCurve object.
- Default:
- The default value is 0.
 
 - 
isEmptypublic boolean isEmpty() Returns whether the GeoCurve object is null.
 - 
setEmptypublic void setEmpty() Set the GeoCurve object as empty.
 - 
getControlPointspublic Point2Ds getControlPoints() Returns the control point set.- Returns:
- Control point collection.
- Default:
- The default value is an empty Point2Dsobject.
 
 - 
setControlPointspublic void setControlPoints(Point2Ds controlPoints) Sets the control point set.- Parameters:
- controlPoints- control Points
 
 - 
convertToLinepublic 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.
 
 - 
clonepublic GeoCurve clone() Returns a copy of the current GeoCurve object.
 
- 
 
-