public class Ray extends java.lang.Object implements com.esri.arcgis.interop.RemoteObjRef, IRay, IRay2, IGeometry, IClone, ISupportErrorInfo
Description 'A 3D ray that begins at a point and extends infinitely along a line in one direction only.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
IID, IID0c968eea_5de9_45db_b885_531a04738122, xxDummy
IID0cd38cba_1c89_11d4_9f5c_00c04f6bdf0d
IID1b07790d_38c5_11d0_92d2_00805f7c28b0
IID, IID9bff8aeb_e415_11d0_943c_080009eebecb, xxDummy
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy
Constructor and Description |
---|
Ray()
Constructs a Ray using ArcGIS Engine.
|
Ray(java.lang.Object obj)
Deprecated.
As of ArcGIS 9.2, replaced by normal Java casts.
Ray theRay = (Ray) obj; |
Modifier and Type | Method and Description |
---|---|
void |
assign(IClone src)
Assigns the properties of src to the receiver.
|
boolean |
equals(java.lang.Object o)
Compare this object with another
|
IClone |
esri_clone()
Clones the receiver and assigns the result to *clone.
|
void |
geoNormalize()
Shifts longitudes, if need be, into a continuous range of 360 degrees.
|
void |
geoNormalizeFromLongitude(double longitude)
Normalizes longitudes into a continuous range containing the longitude.
|
static java.lang.String |
getClsid()
getClsid.
|
int |
getDimension()
The topological dimension of this geometry.
|
IEnumIntersection |
getEnumIntersect(IGeometry targetGeometry)
Not implemented at this release.
|
IEnvelope |
getEnvelope()
Creates a copy of this geometry's envelope and returns it.
|
int |
getGeometryType()
The type of this geometry.
|
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Gets a reference to a com.esri.arcgis.interop.Dispatch which can be used to access the COM object that support for this
interface indicates the implementing class references.
|
IPoint |
getOrigin()
The origin point of the ray.
|
IPoint |
getPointAtDistance(double distance)
Constructs a point at a distance along the ray.
|
ISpatialReference |
getSpatialReference()
The spatial reference associated with this geometry.
|
IVector3D |
getVector()
The direction vector of the ray.
|
int |
hashCode()
the hashcode for this object
|
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo
|
void |
intersect(IGeometry targetGeometry,
IPointCollection intersectionPoints)
Returns a point collection containing all points of intersection, in order along the ray.
|
boolean |
intersects(IGeometry targetGeometry)
Indicates if the ray intersects the target geometry.
|
boolean |
isEmpty()
Indicates whether this geometry contains any points.
|
boolean |
isEqual(IClone other)
Indicates if the receiver and other have the same properties.
|
boolean |
isIdentical(IClone other)
Indicates if the receiver and other are the same object.
|
void |
project(ISpatialReference newReferenceSystem)
Projects this geometry into a new spatial reference.
|
void |
queryEnvelope(IEnvelope outEnvelope)
Copies this geometry's envelope properties into the specified envelope.
|
void |
queryFirstIntersection(IGeometry targetGeometry,
IPoint intersectionPoint)
Returns the first point of intersection between the ray and the target geometry.
|
void |
queryOrigin(IPoint vectorOrigin)
Sets a point equal to the ray's origin.
|
void |
queryPlaneIntersection(_WKSPointZ pPlaneNormal,
double d,
IPoint pPoint)
Returns the point of intersection between the ray and the target plane.
|
void |
queryPointAtDistance(double distance,
IPoint point)
Queries a point at a distance along the ray.
|
void |
queryVector(IVector3D directionVector)
Sets a vector equal to a unit vector with the same direction as the ray.
|
void |
release()
Release this COM object reference
|
void |
setEmpty()
Removes all points from this geometry.
|
void |
setOrigin(IPoint vectorOrigin)
The origin point of the ray.
|
void |
setSpatialReferenceByRef(ISpatialReference spatialRef)
The spatial reference associated with this geometry.
|
void |
setVector(IVector3D directionVector)
The direction vector of the ray.
|
void |
snapToSpatialReference()
Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system.
|
public Ray() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problemsjava.net.UnknownHostException
- if there are interop problemspublic Ray(java.lang.Object obj) throws java.io.IOException
Ray theRay = (Ray) obj;
obj
to Ray
.obj
- an object returned from ArcGIS Engine or Serverjava.io.IOException
- if there are interop problemspublic static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void queryOrigin(IPoint vectorOrigin) throws java.io.IOException, AutomationException
queryOrigin
in interface IRay
vectorOrigin
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IPoint getOrigin() throws java.io.IOException, AutomationException
getOrigin
in interface IRay
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setOrigin(IPoint vectorOrigin) throws java.io.IOException, AutomationException
setOrigin
in interface IRay
vectorOrigin
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryVector(IVector3D directionVector) throws java.io.IOException, AutomationException
queryVector
in interface IRay
directionVector
- A reference to a com.esri.arcgis.geometry.IVector3D (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IVector3D getVector() throws java.io.IOException, AutomationException
getVector
in interface IRay
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setVector(IVector3D directionVector) throws java.io.IOException, AutomationException
setVector
in interface IRay
directionVector
- A reference to a com.esri.arcgis.geometry.IVector3D (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryPointAtDistance(double distance, IPoint point) throws java.io.IOException, AutomationException
queryPointAtDistance
in interface IRay
distance
- The distance (in)point
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IPoint getPointAtDistance(double distance) throws java.io.IOException, AutomationException
getPointAtDistance
in interface IRay
distance
- The distance (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean intersects(IGeometry targetGeometry) throws java.io.IOException, AutomationException
intersects
in interface IRay
targetGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryFirstIntersection(IGeometry targetGeometry, IPoint intersectionPoint) throws java.io.IOException, AutomationException
queryFirstIntersection
in interface IRay
targetGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)intersectionPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void intersect(IGeometry targetGeometry, IPointCollection intersectionPoints) throws java.io.IOException, AutomationException
intersect
in interface IRay
targetGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)intersectionPoints
- A reference to a com.esri.arcgis.geometry.IPointCollection (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IEnumIntersection getEnumIntersect(IGeometry targetGeometry) throws java.io.IOException, AutomationException
getEnumIntersect
in interface IRay
targetGeometry
- A reference to a com.esri.arcgis.geometry.IGeometry (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getGeometryType() throws java.io.IOException, AutomationException
getGeometryType
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public int getDimension() throws java.io.IOException, AutomationException
getDimension
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public ISpatialReference getSpatialReference() throws java.io.IOException, AutomationException
getSpatialReference
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setSpatialReferenceByRef(ISpatialReference spatialRef) throws java.io.IOException, AutomationException
setSpatialReferenceByRef
in interface IGeometry
spatialRef
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isEmpty() throws java.io.IOException, AutomationException
isEmpty
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void setEmpty() throws java.io.IOException, AutomationException
setEmpty
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryEnvelope(IEnvelope outEnvelope) throws java.io.IOException, AutomationException
queryEnvelope
in interface IGeometry
outEnvelope
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IEnvelope getEnvelope() throws java.io.IOException, AutomationException
getEnvelope
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void project(ISpatialReference newReferenceSystem) throws java.io.IOException, AutomationException
project
in interface IGeometry
newReferenceSystem
- A reference to a com.esri.arcgis.geometry.ISpatialReference (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void snapToSpatialReference() throws java.io.IOException, AutomationException
snapToSpatialReference
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void geoNormalize() throws java.io.IOException, AutomationException
geoNormalize
in interface IGeometry
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void geoNormalizeFromLongitude(double longitude) throws java.io.IOException, AutomationException
geoNormalizeFromLongitude
in interface IGeometry
longitude
- The longitude (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void queryPlaneIntersection(_WKSPointZ pPlaneNormal, double d, IPoint pPoint) throws java.io.IOException, AutomationException
queryPlaneIntersection
in interface IRay2
pPlaneNormal
- A Structure: com.esri.arcgis.system._WKSPointZ (A com.esri.arcgis.system._WKSPointZ COM typedef) (in)d
- The d (in)pPoint
- A reference to a com.esri.arcgis.geometry.IPoint (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public IClone esri_clone() throws java.io.IOException, AutomationException
esri_clone
in interface IClone
java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void assign(IClone src) throws java.io.IOException, AutomationException
assign
in interface IClone
src
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isEqual(IClone other) throws java.io.IOException, AutomationException
isEqual
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public boolean isIdentical(IClone other) throws java.io.IOException, AutomationException
isIdentical
in interface IClone
other
- A reference to a com.esri.arcgis.system.IClone (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)java.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.