com.esri.arcgis.datasourcesraster
Class DistanceMeasurement

java.lang.Object
  extended by com.esri.arcgis.datasourcesraster.DistanceMeasurement
All Implemented Interfaces:
IDistanceMeasurement, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class DistanceMeasurement
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDistanceMeasurement

Implements interface IDistanceMeasurement (distance measurement and the associated uncertainty information).

Product Availability

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

See Also:
Serialized Form

Constructor Summary
DistanceMeasurement()
          Constructs a DistanceMeasurement using ArcGIS Engine.
DistanceMeasurement(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DistanceMeasurement theDistanceMeasurement = (DistanceMeasurement) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 String getAngularUnit()
          The angular unit of the distance measurment.
 double getAzimuthAngle()
          The azimuth angle of the distance measurement.
 double getAzimuthAngleUncertainty()
          The uncertainty of the azimuth angle measurement.
static String getClsid()
          getClsid.
 double getDistanceMeasurement()
          The distance measurement.
 double getDistanceUncertainty()
          The uncertainty of the diatance measurement.
 double getElevationAngle()
          The elevation angle of the distance measurement.
 double getElevationAngleUncertainty()
          The uncertainty of the elevation angle measurement.
 double getHeightAtPoint1()
          The height measurement at the first point.
 double getHeightAtPoint2()
          The height measurement at the second point.
 double getHorizontalDistanceMeasurement()
          The horizontal distance measurement.
 double getHorizontalDistanceUncertainty()
          The horizontal distance measurement uncertainty.
 String getLinearUnit()
          The linear unit of this distance measurment.
 double getVerticalDistanceMeasurement()
          The vertical distance measurement.
 double getVerticalDistanceUncertainty()
          The vertical distance measurement uncertainty.
 int hashCode()
          the hashcode for this object
 void reset()
          Resets all the properties of this IAngularMeasurement to their default values.
 void setAngularUnit(String pAngularUnit)
          The angular unit of the distance measurment.
 void setAzimuthAngle(double pAzimuthAngle)
          The azimuth angle of the distance measurement.
 void setAzimuthAngleUncertainty(double pAzAngleUncertainty)
          The uncertainty of the azimuth angle measurement.
 void setDistanceMeasurement(double pDistMeasurement)
          The distance measurement.
 void setDistanceUncertainty(double pDistUncertainty)
          The uncertainty of the diatance measurement.
 void setElevationAngle(double pElevationAngle)
          The elevation angle of the distance measurement.
 void setElevationAngleUncertainty(double pElevAngleUncertainty)
          The uncertainty of the elevation angle measurement.
 void setHeightAtPoint1(double pHeightAtPoint1)
          The height measurement at the first point.
 void setHeightAtPoint2(double pHeightAtPoint2)
          The height measurement at the second point.
 void setHorizontalDistanceMeasurement(double pHorizDistMeasurement)
          The horizontal distance measurement.
 void setHorizontalDistanceUncertainty(double pHorizDistUncertainty)
          The horizontal distance measurement uncertainty.
 void setLinearUnit(String pLinearUnit)
          The linear unit of this distance measurment.
 void setVerticalDistanceMeasurement(double pVertDistMeasurement)
          The vertical distance measurement.
 void setVerticalDistanceUncertainty(double pVertDistUncertainty)
          The vertical distance measurement uncertainty.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

DistanceMeasurement

public DistanceMeasurement()
                    throws IOException,
                           UnknownHostException
Constructs a DistanceMeasurement using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

DistanceMeasurement

public DistanceMeasurement(Object obj)
                    throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
DistanceMeasurement theDistanceMeasurement = (DistanceMeasurement) obj;

Construct a DistanceMeasurement using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to DistanceMeasurement.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getAngularUnit

public String getAngularUnit()
                      throws IOException,
                             AutomationException
The angular unit of the distance measurment.

Product Availability

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

Specified by:
getAngularUnit in interface IDistanceMeasurement
Returns:
The pAngularUnit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAngularUnit

public void setAngularUnit(String pAngularUnit)
                    throws IOException,
                           AutomationException
The angular unit of the distance measurment.

Product Availability

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

Specified by:
setAngularUnit in interface IDistanceMeasurement
Parameters:
pAngularUnit - The pAngularUnit (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAzimuthAngle

public double getAzimuthAngle()
                       throws IOException,
                              AutomationException
The azimuth angle of the distance measurement.

Product Availability

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

Specified by:
getAzimuthAngle in interface IDistanceMeasurement
Returns:
The pAzimuthAngle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAzimuthAngle

public void setAzimuthAngle(double pAzimuthAngle)
                     throws IOException,
                            AutomationException
The azimuth angle of the distance measurement.

Product Availability

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

Specified by:
setAzimuthAngle in interface IDistanceMeasurement
Parameters:
pAzimuthAngle - The pAzimuthAngle (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getAzimuthAngleUncertainty

public double getAzimuthAngleUncertainty()
                                  throws IOException,
                                         AutomationException
The uncertainty of the azimuth angle measurement.

Product Availability

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

Specified by:
getAzimuthAngleUncertainty in interface IDistanceMeasurement
Returns:
The pAzAngleUncertainty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setAzimuthAngleUncertainty

public void setAzimuthAngleUncertainty(double pAzAngleUncertainty)
                                throws IOException,
                                       AutomationException
The uncertainty of the azimuth angle measurement.

Product Availability

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

Specified by:
setAzimuthAngleUncertainty in interface IDistanceMeasurement
Parameters:
pAzAngleUncertainty - The pAzAngleUncertainty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDistanceMeasurement

public double getDistanceMeasurement()
                              throws IOException,
                                     AutomationException
The distance measurement.

Product Availability

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

Specified by:
getDistanceMeasurement in interface IDistanceMeasurement
Returns:
The pDistMeasurement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDistanceMeasurement

public void setDistanceMeasurement(double pDistMeasurement)
                            throws IOException,
                                   AutomationException
The distance measurement.

Product Availability

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

Specified by:
setDistanceMeasurement in interface IDistanceMeasurement
Parameters:
pDistMeasurement - The pDistMeasurement (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDistanceUncertainty

public double getDistanceUncertainty()
                              throws IOException,
                                     AutomationException
The uncertainty of the diatance measurement.

Product Availability

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

Specified by:
getDistanceUncertainty in interface IDistanceMeasurement
Returns:
The pDistUncertainty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDistanceUncertainty

public void setDistanceUncertainty(double pDistUncertainty)
                            throws IOException,
                                   AutomationException
The uncertainty of the diatance measurement.

Product Availability

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

Specified by:
setDistanceUncertainty in interface IDistanceMeasurement
Parameters:
pDistUncertainty - The pDistUncertainty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElevationAngle

public double getElevationAngle()
                         throws IOException,
                                AutomationException
The elevation angle of the distance measurement.

Product Availability

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

Specified by:
getElevationAngle in interface IDistanceMeasurement
Returns:
The pElevationAngle
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElevationAngle

public void setElevationAngle(double pElevationAngle)
                       throws IOException,
                              AutomationException
The elevation angle of the distance measurement.

Product Availability

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

Specified by:
setElevationAngle in interface IDistanceMeasurement
Parameters:
pElevationAngle - The pElevationAngle (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getElevationAngleUncertainty

public double getElevationAngleUncertainty()
                                    throws IOException,
                                           AutomationException
The uncertainty of the elevation angle measurement.

Product Availability

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

Specified by:
getElevationAngleUncertainty in interface IDistanceMeasurement
Returns:
The pElevAngleUncertainty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setElevationAngleUncertainty

public void setElevationAngleUncertainty(double pElevAngleUncertainty)
                                  throws IOException,
                                         AutomationException
The uncertainty of the elevation angle measurement.

Product Availability

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

Specified by:
setElevationAngleUncertainty in interface IDistanceMeasurement
Parameters:
pElevAngleUncertainty - The pElevAngleUncertainty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHeightAtPoint1

public double getHeightAtPoint1()
                         throws IOException,
                                AutomationException
The height measurement at the first point.

Product Availability

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

Specified by:
getHeightAtPoint1 in interface IDistanceMeasurement
Returns:
The pHeightAtPoint1
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHeightAtPoint1

public void setHeightAtPoint1(double pHeightAtPoint1)
                       throws IOException,
                              AutomationException
The height measurement at the first point.

Product Availability

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

Specified by:
setHeightAtPoint1 in interface IDistanceMeasurement
Parameters:
pHeightAtPoint1 - The pHeightAtPoint1 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHeightAtPoint2

public double getHeightAtPoint2()
                         throws IOException,
                                AutomationException
The height measurement at the second point.

Product Availability

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

Specified by:
getHeightAtPoint2 in interface IDistanceMeasurement
Returns:
The pHeightAtPoint2
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHeightAtPoint2

public void setHeightAtPoint2(double pHeightAtPoint2)
                       throws IOException,
                              AutomationException
The height measurement at the second point.

Product Availability

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

Specified by:
setHeightAtPoint2 in interface IDistanceMeasurement
Parameters:
pHeightAtPoint2 - The pHeightAtPoint2 (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHorizontalDistanceMeasurement

public double getHorizontalDistanceMeasurement()
                                        throws IOException,
                                               AutomationException
The horizontal distance measurement.

Product Availability

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

Specified by:
getHorizontalDistanceMeasurement in interface IDistanceMeasurement
Returns:
The pHorizDistMeasurement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHorizontalDistanceMeasurement

public void setHorizontalDistanceMeasurement(double pHorizDistMeasurement)
                                      throws IOException,
                                             AutomationException
The horizontal distance measurement.

Product Availability

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

Specified by:
setHorizontalDistanceMeasurement in interface IDistanceMeasurement
Parameters:
pHorizDistMeasurement - The pHorizDistMeasurement (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHorizontalDistanceUncertainty

public double getHorizontalDistanceUncertainty()
                                        throws IOException,
                                               AutomationException
The horizontal distance measurement uncertainty.

Product Availability

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

Specified by:
getHorizontalDistanceUncertainty in interface IDistanceMeasurement
Returns:
The pHorizDistUncertainty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setHorizontalDistanceUncertainty

public void setHorizontalDistanceUncertainty(double pHorizDistUncertainty)
                                      throws IOException,
                                             AutomationException
The horizontal distance measurement uncertainty.

Product Availability

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

Specified by:
setHorizontalDistanceUncertainty in interface IDistanceMeasurement
Parameters:
pHorizDistUncertainty - The pHorizDistUncertainty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLinearUnit

public String getLinearUnit()
                     throws IOException,
                            AutomationException
The linear unit of this distance measurment.

Product Availability

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

Specified by:
getLinearUnit in interface IDistanceMeasurement
Returns:
The pLinearUnit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLinearUnit

public void setLinearUnit(String pLinearUnit)
                   throws IOException,
                          AutomationException
The linear unit of this distance measurment.

Product Availability

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

Specified by:
setLinearUnit in interface IDistanceMeasurement
Parameters:
pLinearUnit - The pLinearUnit (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset()
           throws IOException,
                  AutomationException
Resets all the properties of this IAngularMeasurement to their default values.

Product Availability

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

Specified by:
reset in interface IDistanceMeasurement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVerticalDistanceMeasurement

public double getVerticalDistanceMeasurement()
                                      throws IOException,
                                             AutomationException
The vertical distance measurement.

Product Availability

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

Specified by:
getVerticalDistanceMeasurement in interface IDistanceMeasurement
Returns:
The pVertDistMeasurement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVerticalDistanceMeasurement

public void setVerticalDistanceMeasurement(double pVertDistMeasurement)
                                    throws IOException,
                                           AutomationException
The vertical distance measurement.

Product Availability

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

Specified by:
setVerticalDistanceMeasurement in interface IDistanceMeasurement
Parameters:
pVertDistMeasurement - The pVertDistMeasurement (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getVerticalDistanceUncertainty

public double getVerticalDistanceUncertainty()
                                      throws IOException,
                                             AutomationException
The vertical distance measurement uncertainty.

Product Availability

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

Specified by:
getVerticalDistanceUncertainty in interface IDistanceMeasurement
Returns:
The pVertDistUncertainty
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setVerticalDistanceUncertainty

public void setVerticalDistanceUncertainty(double pVertDistUncertainty)
                                    throws IOException,
                                           AutomationException
The vertical distance measurement uncertainty.

Product Availability

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

Specified by:
setVerticalDistanceUncertainty in interface IDistanceMeasurement
Parameters:
pVertDistUncertainty - The pVertDistUncertainty (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.