com.esri.arcgis.geometry
Interface ISphere

All Superinterfaces:
IGeometry, Serializable
All Known Implementing Classes:
Sphere

public interface ISphere
extends IGeometry, Serializable

Provides access to a sphere's properties and operations.

Remarks

Sphere Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 IPoint getCenter()
          The center of the sphere.
 double getRadius()
          The radius of the sphere.
 void queryCenter(IPoint centerPoint)
          Sets an existing point equal to the center of the sphere.
 void setCenter(IPoint centerPoint)
          The center of the sphere.
 void setRadius(double radiusLength)
          The radius of the sphere.
 
Methods inherited from interface com.esri.arcgis.geometry.IGeometry
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference
 

Method Detail

queryCenter

void queryCenter(IPoint centerPoint)
                 throws IOException,
                        AutomationException
Sets an existing point equal to the center of the sphere.

Description

Returns the Point corresponding to the Center of the Sphere.

Remarks

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

Sphere QueryCenter Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
centerPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCenter

IPoint getCenter()
                 throws IOException,
                        AutomationException
The center of the sphere.

Description

Returns or sets the Center Point of the Sphere. This Point MUST have X, Y, and Z values defined to be a valid Center.

Remarks

Sphere Center Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setCenter

void setCenter(IPoint centerPoint)
               throws IOException,
                      AutomationException
The center of the sphere.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
centerPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getRadius

double getRadius()
                 throws IOException,
                        AutomationException
The radius of the sphere.

Description

Returns or sets the Radius of the Sphere. The radius is the distance from the Center of the Sphere to all points on the surface of the Sphere.

Remarks

Sphere Radius Example

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Returns:
The radiusLength
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRadius

void setRadius(double radiusLength)
               throws IOException,
                      AutomationException
The radius of the sphere.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
radiusLength - The radiusLength (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.