|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Provides access to members that control properties of circular arcs.
A CircularArc is an object that describes any portion of a circle. The size of the CircularArc is determined by the length of the Radius and the Central Angle. CircularArcs can be constructed by numerous different methods given a wide variety of input parameters. A CircularArc differs from an EllipticArc in that every point along the CircularArc must be a fixed distance (the Radius) from the CenterPoint.

IPoint,
IGeometry,
ISegment| Method Summary | |
void |
complement()
Changes this arc into its complement; 'from' and 'to' points are unchanged. |
IPoint |
getCenterPoint()
The center point. |
double |
getCentralAngle()
The included (or central) angle. |
double |
getChordHeight()
The chord height (assigning preserves endpoints, and orientation unless chord height is < 0). |
double |
getFromAngle()
The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc starts. |
double |
getRadius()
The radius. |
double |
getToAngle()
The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc ends. |
boolean |
isCounterClockwise()
Indicates if this circular is oriented counter-clockwise from its 'from' point to its 'to' point. |
boolean |
isLine()
Indicates if the arc has degenerated to a line (radius is infinite). |
boolean |
isMinor()
Indicates whether this circular arc is a minor arc or a major arc. |
boolean |
isPoint()
Indicates if the arc has degenerated to a point (radius is 0). |
void |
putCoords(IPoint center,
IPoint from,
IPoint to,
int arcOrientation)
Defines this arc by a center point, 'from' and 'to' points, and orientation. |
void |
putCoordsByAngle(IPoint cp,
double fromAngle,
double centralAngle,
double arcRadius)
Defines this circular arc by a center point, 'from' angle, signed central angle, and radius. |
void |
putRadiusByPoint(IPoint radialPoint)
Defines the radius of this circular arc to be the distance from the arc's center point to the input point; other properties remain unchanged. |
void |
queryCenterPoint(IPoint center)
Copies the center point of this circular arc to the input point. |
void |
queryCoords(IPoint center,
IPoint from,
IPoint to,
boolean[] isCCW,
boolean[] isMinor)
Copies the center, 'from' and 'to' points, orientation and major/minor property into the input parameters. |
void |
queryCoordsByAngle(IPoint center,
double[] fromAngle,
double[] centerAngle,
double[] arcRadius)
Returns the center point, 'from' angle, signed central angle, and radius. |
void |
setCentralAngle(double outCentalAngle)
The included (or central) angle. |
void |
setChordHeight(double chordHeight)
The chord height (assigning preserves endpoints, and orientation unless chord height is < 0). |
void |
setFromAngle(double outFromAngle)
The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc starts. |
void |
setIsCounterClockwise(boolean isCCW)
Indicates if this circular is oriented counter-clockwise from its 'from' point to its 'to' point. |
void |
setIsMinor(boolean isMinor)
Indicates whether this circular arc is a minor arc or a major arc. |
void |
setRadius(double outRadius)
The radius. |
void |
setToAngle(double outToAngle)
The angle, measured from a horizontal line through this circular arc's center point, that defines where this arc ends. |
| Methods inherited from interface com.esri.arcgis.geometry.ICurve |
getFromPoint, getLength, getSubcurve, getToPoint, isClosed, queryFromPoint, queryNormal, queryPoint, queryPointAndDistance, queryTangent, queryToPoint, reverseOrientation, setFromPoint, setToPoint |
| Methods inherited from interface com.esri.arcgis.geometry.IGeometry |
geoNormalize, geoNormalizeFromLongitude, getDimension, getEnvelope, getGeometryType, getSpatialReference, isEmpty, project, queryEnvelope, setEmpty, setSpatialReferenceByRef, snapToSpatialReference |
| Method Detail |
public void queryCoords(IPoint center,
IPoint from,
IPoint to,
boolean[] isCCW,
boolean[] isMinor)
throws java.io.IOException,
AutomationException
QueryCoords returns the Center Point, the From Point, the To Point, the value of IsCounterClockwise, and the value of IsMinor for the Circular Arc.
These are the necessary inputs for PutCoords, except in special cases (half circle, full circle, and Central Angle = 0) where the ArcOrientation must know which of these cases exists to ensure that the desired Circular Arc is unambiguous.
-isCCW stands for "is counter clockwise"

center - A reference to a com.esri.arcgis.geometry.IPoint (in)from - A reference to a com.esri.arcgis.geometry.IPoint (in)to - A reference to a com.esri.arcgis.geometry.IPoint (in)isCCW - The isCCW (in/out: use single element array)isMinor - The isMinor (in/out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void putCoords(IPoint center,
IPoint from,
IPoint to,
int arcOrientation)
throws java.io.IOException,
AutomationException
Use to create a Circular Arc by specifying the Center Point, From Point, To Point, and ArcOrientation. Care must be taken to ensure that the ArcOrientation is not ambiguous (For half-circles, ArcOrientation must be either Clockwise or CounterClockwise, and when the From Point and To Point are the same, ArcOrientation must be either Minor or Major.).
If the FromPoint, ToPoint and CenterPoint specified do not create a circle, the created arc will have its CenterPoint adjusted until the FromPoint and ToPoint can be accomodated on the same circle. Therefore the resultant arcs CenterPoint may not be exactly the same as the input CenterPoint.

center - A reference to a com.esri.arcgis.geometry.IPoint (in)from - A reference to a com.esri.arcgis.geometry.IPoint (in)to - A reference to a com.esri.arcgis.geometry.IPoint (in)arcOrientation - A com.esri.arcgis.geometry.esriArcOrientation constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryCoordsByAngle(IPoint center,
double[] fromAngle,
double[] centerAngle,
double[] arcRadius)
throws java.io.IOException,
AutomationException
Returns the Center Point, From Angle, Central Angle, and Radius for the Circular Arc. These are the same parameters used by PutCoordsByAngle to create the Circular Arc.

center - A reference to a com.esri.arcgis.geometry.IPoint (in)fromAngle - The fromAngle (in/out: use single element array)centerAngle - The centerAngle (in/out: use single element array)arcRadius - The arcRadius (in/out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void putCoordsByAngle(IPoint cp,
double fromAngle,
double centralAngle,
double arcRadius)
throws java.io.IOException,
AutomationException
PutCoordsByAngle creates a Circular Arc given the Center Point, the From Angle, the Central Angle, and the Radius.
PutCoordsByAngle is one of the easiest ways to create a desired Circular Arc. However, due to numeric accuracy limitations of computers and trigonometric functions, the From and To Points may be very slightly offset from the expected coordinates. This is important to keep in mind when attempting to connect the endpoints to other segments.

cp - A reference to a com.esri.arcgis.geometry.IPoint (in)fromAngle - The fromAngle (in)centralAngle - The centralAngle (in)arcRadius - The arcRadius (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void putRadiusByPoint(IPoint radialPoint)
throws java.io.IOException,
AutomationException
PutRadiusByPoint sets the Radius of the Circular Arc to be the distance between the Center Point and the input Point. This has the same effect as setting the Radius using the Radius property of the Circular Arc.

radialPoint - 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 getCenterPoint()
throws java.io.IOException,
AutomationException
Returns the Center Point of the CircularArc. The Center Point is the Point equidistant from all other points on the CircularArc, and it is the point from which the Radius is measured.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void queryCenterPoint(IPoint center)
throws java.io.IOException,
AutomationException
Returns the Center Point of the CircularArc. The Center Point is the Point equidistant from all other points on the CircularArc, and it is the point from which the Radius is measured.
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.

center - 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 double getRadius()
throws java.io.IOException,
AutomationException
The radius is the distance from the Center of the circle to the arc. This property can be used to query the current radius of the circular arc or assign a new radius which changes the location of the From and To Points of the Circular Arc, but maintains the From Angle, Central Angle, and Orientation.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRadius(double outRadius)
throws java.io.IOException,
AutomationException
The radius is the distance from the Center of the circle to the arc. This property can be used to query the current radius of the circular arc or assign a new radius which changes the location of the From and To Points of the Circular Arc, but maintains the From Angle, Central Angle, and Orientation.
outRadius - The outRadius (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getFromAngle()
throws java.io.IOException,
AutomationException
The FromAngle is the angle from which the CircularArc starts. The FromAngle is measured in radians (there are 2*pi radians in a full circle. 0 Radians is the horizontal line parallel to the unrotated X-Axis extending to the right of the CenterPoint.). The FromAngle is the angle of the line drawn between the CenterPoint and the FromPoint.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setFromAngle(double outFromAngle)
throws java.io.IOException,
AutomationException
The FromAngle is the angle from which the CircularArc starts. The FromAngle is measured in radians (there are 2*pi radians in a full circle. 0 Radians is the horizontal line parallel to the unrotated X-Axis extending to the right of the CenterPoint.). The FromAngle is the angle of the line drawn between the CenterPoint and the FromPoint.
outFromAngle - The outFromAngle (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getToAngle()
throws java.io.IOException,
AutomationException
The ToAngle is the angle at which the CircularArc ends. The ToAngle is measured in radians (there are 2*pi radians in a full circle. 0 Radians is the horizontal line parallel to the unrotated X-Axis extending to the right of the CenterPoint.). The ToAngle is the angle of the line drawn between the CenterPoint and the ToPoint.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setToAngle(double outToAngle)
throws java.io.IOException,
AutomationException
The ToAngle is the angle at which the CircularArc ends. The ToAngle is measured in radians (there are 2*pi radians in a full circle. 0 Radians is the horizontal line parallel to the unrotated X-Axis extending to the right of the CenterPoint.). The ToAngle is the angle of the line drawn between the CenterPoint and the ToPoint.
outToAngle - The outToAngle (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getCentralAngle()
throws java.io.IOException,
AutomationException
The CentralAngle describes the span of the CircularArc. The CentralAngle is the angular measure between the FromAngle and the ToAngle. The CentralAngle is measured in Radians and is always between -2*Pi and 2*Pi. If the Central Angle > 0, then the Circular Arc is oriented CounterClockwise. If the Central Angle < 0, then the Circular Arc is oriented Clockwise.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCentralAngle(double outCentalAngle)
throws java.io.IOException,
AutomationException
The CentralAngle describes the span of the CircularArc. The CentralAngle is the angular measure between the FromAngle and the ToAngle. The CentralAngle is measured in Radians and is always between -2*Pi and 2*Pi. If the Central Angle > 0, then the Circular Arc is oriented CounterClockwise. If the Central Angle < 0, then the Circular Arc is oriented Clockwise.
outCentalAngle - The outCentalAngle (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getChordHeight()
throws java.io.IOException,
AutomationException
The Chord Height is the positive perpendicular distance measured from the center of the chord to Circular Arc. The chord is the Line defined by the From and To Points of the Circular Arc. Setting the Chord Height redefines the Circular Arc, but maintains the existing From and To Points.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setChordHeight(double chordHeight)
throws java.io.IOException,
AutomationException
The Chord Height is the positive perpendicular distance measured from the center of the chord to Circular Arc. The chord is the Line defined by the From and To Points of the Circular Arc. Setting the Chord Height redefines the Circular Arc, but maintains the existing From and To Points.
chordHeight - The chordHeight (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isLine()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isPoint()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCounterClockwise()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIsCounterClockwise(boolean isCCW)
throws java.io.IOException,
AutomationException
IsCounterClockwise returns TRUE if the CentralAngle is greater than 0. If the IsCounterClockwise values differ, setting IsCounterClockwise changes the CircularArc to its Complement.
isCCW - The isCCW (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isMinor()
throws java.io.IOException,
AutomationException
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setIsMinor(boolean isMinor)
throws java.io.IOException,
AutomationException
IsMinor is TRUE when the CentralAngle < Pi (180 degrees). If the IsMinor values differ, setting IsMinor changes the CircularArc to its Complement.
isMinor - The isMinor (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void complement()
throws java.io.IOException,
AutomationException
The Complement of a CircularArc is the CircularArc between the ToPoint and the FromPoint of the original CircularArc that creates a full circle when combined with the original CircularArc. The Complement maintains the same FromPoint and ToPoint as the original CircularArc, but has the different IsMinor and IsCounterClockwise values.

java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||