Package com.esri.arcgisruntime.geometry
Class GeodesicSectorParameters
- java.lang.Object
 - 
- com.esri.arcgisruntime.geometry.GeodesicSectorParameters
 
 
- 
public final class GeodesicSectorParameters extends java.lang.ObjectDefines parameters used to create a geodesic sector.- Since:
 - 100.0.0
 - See Also:
 GeometryEngine.sectorGeodesic(GeodesicSectorParameters)
 
- 
- 
Constructor Summary
Constructors Constructor Description GeodesicSectorParameters()Creates an instance of GeodesicSectorParameters.GeodesicSectorParameters(double axisDirection, AngularUnit angularUnit, Point center, LinearUnit linearUnit, long maxPointCount, double maxSegmentLength, GeometryType geometryType, double sectorAngle, double semiAxis1Length, double semiAxis2Length, double startDirection)Creates an instance of GeodesicSectorParameters with provided values.GeodesicSectorParameters(Point center, double semiAxis1Length, double semiAxis2Length, double sectorAngle, double startDirection)Creates an instance of GeodesicSectorParameters with the given values. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AngularUnitgetAngularUnit()Gets the unit of measurement for AxisDirection, SectorAngle, and StartDirection.doublegetAxisDirection()Gets the direction of the major axis of the ellipse as an angle, in units ofgetAngularUnit().PointgetCenter()Gets the center of the ellipse.GeometryTypegetGeometryType()Gets the type of output geometry.LinearUnitgetLinearUnit()Gets the unit of measurement for linear values.longgetMaxPointCount()Gets the maximum number of vertices in the ellipse.doublegetMaxSegmentLength()Gets the maximum segment length of the result, in units ofgetLinearUnit().doublegetSectorAngle()Gets the sweep angle of the sector.doublegetSemiAxis1Length()Gets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().doublegetSemiAxis2Length()Gets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().doublegetStartDirection()Gets the direction of starting radius of the sector as an angle, in units ofgetAngularUnit()voidsetAngularUnit(AngularUnit angularUnit)Sets the unit of measurement for AxisDirection, SectorAngle, and StartDirection.voidsetAxisDirection(double direction)Sets the direction of the major axis of the sector as an angle, in units ofgetAngularUnit().voidsetCenter(Point center)Sets the center of the ellipse.voidsetGeometryType(GeometryType geometryType)Sets the type of output geometry.voidsetLinearUnit(LinearUnit linearUnit)Sets the unit of measurement for SemiAxis1Length, SemiAxis2Length, and MaxSegmentLength.voidsetMaxPointCount(int maxPointCount)Sets the maximum number of vertices in the ellipse.voidsetMaxSegmentLength(double maxSegmentLength)Sets the maximum segment length of the result, in units ofgetLinearUnit().voidsetSectorAngle(double sectorAngle)Sets the sweep angle of the sector in units ofgetAngularUnit().voidsetSemiAxis1Length(double length)Sets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().voidsetSemiAxis2Length(double length)Sets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().voidsetStartDirection(double direction)Sets the direction of starting radius of the sector as an angle, in units ofgetAngularUnit(). 
 - 
 
- 
- 
Constructor Detail
- 
GeodesicSectorParameters
public GeodesicSectorParameters()
Creates an instance of GeodesicSectorParameters.- Since:
 - 100.0.0
 
 
- 
GeodesicSectorParameters
public GeodesicSectorParameters(double axisDirection, AngularUnit angularUnit, Point center, LinearUnit linearUnit, long maxPointCount, double maxSegmentLength, GeometryType geometryType, double sectorAngle, double semiAxis1Length, double semiAxis2Length, double startDirection)Creates an instance of GeodesicSectorParameters with provided values.- Parameters:
 axisDirection- the direction of the major axis of the ellipse as an angle in units ofangularUnitangularUnit- unit foraxisDirection. If null, defaults to degrees.center- center of the ellipse. It must have a spatial reference.linearUnit- unit for the linear values. If null, defaults to meters.maxPointCount- maximum number of vertices in the ellipsemaxSegmentLength- maximum segment length of the result approximation, in units oflinearUnitgeometryType- type of output geometrysectorAngle- sweep angle of the the sector, in units ofangularUnit. The sector angle is measured clockwise from thestartDirection.semiAxis1Length- length of the semi-major or semi-minor axis of the ellipse, in units oflinearUnitsemiAxis2Length- length of the semi-major or semi-minor axis of the ellipse, in units oflinearUnitstartDirection- direction of starting radius of the sector as an angle in units ofangularUnit- Throws:
 java.lang.IllegalArgumentException- if center or geometryType is null- Since:
 - 100.0.0
 
 
- 
GeodesicSectorParameters
public GeodesicSectorParameters(Point center, double semiAxis1Length, double semiAxis2Length, double sectorAngle, double startDirection)
Creates an instance of GeodesicSectorParameters with the given values.The geodesic sector parameter set returned contains the following default values:
(where a is the semi major axis length)Property Value linearUnit meter angularUnit degree axisDirection 0 geometryType polygon maxSegmentLength 2 * pi * a / 360 maxPointCount 65536 - Parameters:
 center- center of the ellipsesemiAxis1Length- the length of the semi-major or semi-minor axis of the ellipse in meterssemiAxis2Length- the length of the semi-major or semi-minor axis of the ellipse in meterssectorAngle- the sweep angle of the sector in degreesstartDirection- the direction of starting radius of the sector as an angle in degrees- Throws:
 java.lang.IllegalArgumentException- if center is null- Since:
 - 100.3.0
 
 
 - 
 
- 
Method Detail
- 
getAxisDirection
public double getAxisDirection()
Gets the direction of the major axis of the ellipse as an angle, in units ofgetAngularUnit().- Returns:
 - the axis direction
 - Since:
 - 100.0.0
 
 
- 
getAngularUnit
public AngularUnit getAngularUnit()
Gets the unit of measurement for AxisDirection, SectorAngle, and StartDirection. Default is ofAngularUnitId.DEGREEStype.- Returns:
 - the unit for angular values
 - Since:
 - 100.0.0
 - See Also:
 getAxisDirection(),getSectorAngle(),getStartDirection()
 
- 
getCenter
public Point getCenter()
Gets the center of the ellipse.- Returns:
 - the center
 - Since:
 - 100.0.0
 
 
- 
getGeometryType
public GeometryType getGeometryType()
Gets the type of output geometry. Default isGeometryType.POLYGON.- Returns:
 - the type of output geometry
 - Since:
 - 100.0.0
 
 
- 
getMaxPointCount
public long getMaxPointCount()
Gets the maximum number of vertices in the ellipse.- Returns:
 - the maximum number of vertices in the ellipse
 - Since:
 - 100.0.0
 
 
- 
getMaxSegmentLength
public double getMaxSegmentLength()
Gets the maximum segment length of the result, in units ofgetLinearUnit().- Returns:
 - the maximum segment length of the result, in units of 
getLinearUnit() - Since:
 - 100.0.0
 
 
- 
getSemiAxis1Length
public double getSemiAxis1Length()
Gets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().- Returns:
 - the length of the semi-major or semi-minor axis of the ellipse, in units of 
getLinearUnit() - Since:
 - 100.0.0
 
 
- 
getSemiAxis2Length
public double getSemiAxis2Length()
Gets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().- Returns:
 - the length of the semi-major or semi-minor axis of the ellipse, in units of 
getLinearUnit() - Since:
 - 100.0.0
 
 
- 
getLinearUnit
public LinearUnit getLinearUnit()
Gets the unit of measurement for linear values. Default is ofLinearUnitId.METERStype.- Returns:
 - the unit of measurement for SemiAxis1length, SemiAxis2Length, and MaxSegmentLength
 - Since:
 - 100.0.0
 - See Also:
 getMaxSegmentLength(),getSemiAxis1Length(),getSemiAxis2Length()
 
- 
getSectorAngle
public double getSectorAngle()
Gets the sweep angle of the sector. It is measured clockwise from thegetStartDirection().- Returns:
 - sweep angle of the sector, in units of 
angularUnit - Since:
 - 100.0.0
 
 
- 
getStartDirection
public double getStartDirection()
Gets the direction of starting radius of the sector as an angle, in units ofgetAngularUnit()- Returns:
 - the direction of starting radius of the sector as an angle
 - Since:
 - 100.0.0
 
 
- 
setAxisDirection
public void setAxisDirection(double direction)
Sets the direction of the major axis of the sector as an angle, in units ofgetAngularUnit().- Parameters:
 direction- the direction of the major axis of the sector as an angle, in units ofgetAngularUnit()- Since:
 - 100.0.0
 
 
- 
setAngularUnit
public void setAngularUnit(AngularUnit angularUnit)
Sets the unit of measurement for AxisDirection, SectorAngle, and StartDirection.- Parameters:
 angularUnit- the unit of measurement for angular values- Throws:
 java.lang.IllegalArgumentException- if angularUnit is null- Since:
 - 100.0.0
 - See Also:
 setAxisDirection(double),setSectorAngle(double),setStartDirection(double)
 
- 
setCenter
public void setCenter(Point center)
Sets the center of the ellipse.- Parameters:
 center- center of the ellipse- Throws:
 java.lang.IllegalArgumentException- if center is null- Since:
 - 100.0.0
 
 
- 
setGeometryType
public void setGeometryType(GeometryType geometryType)
Sets the type of output geometry.- Parameters:
 geometryType- the type of output geometry- Throws:
 java.lang.IllegalArgumentException- if geometryType is null- Since:
 - 100.0.0
 
 
- 
setMaxPointCount
public void setMaxPointCount(int maxPointCount)
Sets the maximum number of vertices in the ellipse.- Parameters:
 maxPointCount- the maximum number of vertices in the ellipse- Since:
 - 100.0.0
 
 
- 
setMaxSegmentLength
public void setMaxSegmentLength(double maxSegmentLength)
Sets the maximum segment length of the result, in units ofgetLinearUnit().- Parameters:
 maxSegmentLength- the maximum segment length of the result, in units ofgetLinearUnit()- Since:
 - 100.0.0
 
 
- 
setSemiAxis1Length
public void setSemiAxis1Length(double length)
Sets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().- Parameters:
 length- the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit()- Since:
 - 100.0.0
 
 
- 
setSemiAxis2Length
public void setSemiAxis2Length(double length)
Sets the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit().- Parameters:
 length- the length of the semi-major or semi-minor axis of the ellipse, in units ofgetLinearUnit()- Since:
 - 100.0.0
 
 
- 
setLinearUnit
public void setLinearUnit(LinearUnit linearUnit)
Sets the unit of measurement for SemiAxis1Length, SemiAxis2Length, and MaxSegmentLength.- Parameters:
 linearUnit- the unit of measurement for linear values- Throws:
 java.lang.IllegalArgumentException- if linearUnit is null- Since:
 - 100.0.0
 - See Also:
 setMaxSegmentLength(double),setSemiAxis1Length(double),setSemiAxis2Length(double)
 
- 
setSectorAngle
public void setSectorAngle(double sectorAngle)
Sets the sweep angle of the sector in units ofgetAngularUnit(). The sector angle is measured clockwise from thestartDirection.- Parameters:
 sectorAngle- angle- Since:
 - 100.0.0
 
 
- 
setStartDirection
public void setStartDirection(double direction)
Sets the direction of starting radius of the sector as an angle, in units ofgetAngularUnit().- Parameters:
 direction- the direction of starting radius of the sector as an angle- Since:
 - 100.0.0
 
 
 - 
 
 -