com.esri.arcgis.geometry
Interface IBezierCurve

All Superinterfaces:
ICurve, IGeometry, java.io.Serializable
All Known Implementing Classes:
BezierCurve, IBezierCurveProxy

Deprecated. This interface uses C style arrays which are not supported in the ArcGIS API for Java. It is replaced by IBezierCurveGEN. You can use the GEN interface proxy's Object-constructor to cast an instance of this interface to its GEN equivalent. Any ArcGIS class that implements this interface also implements the GEN interface.

public interface IBezierCurve
extends ICurve, java.io.Serializable

Provides access to members that identify third degree bezier curve segments and defines their properties.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Description

A Bezier Curve is a non-linear Segment defined by four control points.  The bezier curve starts at control point 0 and ends at control point 3.  Control points 0 and 1 define the tangent at the from point and control points 2 and 3 define the tangent at the to point.  The length of these tangent lines and position of the control points determines the shape of the created bezier curve.

When To Use

The IBezierCurve interface is used to define the properties/behavior of a Bezier Curve. For example, use the methods in this interface to put control points to define a Bezier Curve object or query an existing Bezier Curve object to get its four control points.


Remarks

 

IBezierCurve Example

See Also:
IPoint, IGeometry, ISegment

Method Summary
 int getDegree()
          Deprecated. The degree of the Bezier curve.
 void putCoord(int index, IPoint controlPoint)
          Deprecated. Sets the specified (0 <= index < 4) control point of this Bezier curve.
 void putCoords(int numPoints, IPoint controlPoints)
          Deprecated. Sets this Bezier curve's control points from an array of between 1 to 4 input points.
 void queryChordLengthTangentAtFrom(IPoint tangent, boolean[] setByUser)
          Deprecated. Returns tangent vector at 'from' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.
 void queryChordLengthTangentAtTo(IPoint tangent, boolean[] setByUser)
          Deprecated. Returns tangent vector at 'to' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.
 void queryCoord(int index, IPoint controlPoint)
          Deprecated. Copies the specified control point of this Bezier curve into the input point.
 void queryCoords(IPoint controlPoints)
          Deprecated. Copies this Bezier curve's control points into the array of 4 existing points.
 void queryInflectionPoint(IPoint inflectionPoint)
          Deprecated. Finds inflection point; sets it empty if none exists.
 void setChordLengthTangentAtFrom(IPoint tangent, boolean setByUser)
          Deprecated. Establishes tangent vector at 'from' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.
 void setChordLengthTangentAtTo(IPoint tangent, boolean setByUser)
          Deprecated. Establishes tangent vector at 'to' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.
 
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

queryCoords

public void queryCoords(IPoint controlPoints)
                 throws java.io.IOException,
                        AutomationException
Deprecated. 
Copies this Bezier curve's control points into the array of 4 existing points.

Supported Platforms

Windows, Solaris, Linux

Description

QueryCoords returns all four of the BezierCurve control points into an array of 4 Points.

Remarks

Use QueryCoord to get a specific control point.

 

BezierCurve QueryCoords Example

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

putCoords

public void putCoords(int numPoints,
                      IPoint controlPoints)
               throws java.io.IOException,
                      AutomationException
Deprecated. 
Sets this Bezier curve's control points from an array of between 1 to 4 input points.

Supported Platforms

Windows, Solaris, Linux

Description

It is recommended that the IBezierCurveGEN::PutCoords OLE Automation compliant version of this method be used instead of this version.

Remarks

Use PutCoord to set a single control point.

 

BezierCurve PutCoords Example

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

queryCoord

public void queryCoord(int index,
                       IPoint controlPoint)
                throws java.io.IOException,
                       AutomationException
Deprecated. 
Copies the specified control point of this Bezier curve into the input point.

Supported Platforms

Windows, Solaris, Linux

Description

Use QueryCoord to obtain a specific bezier control Point.  Any of the four bezier control points (0 to 3) can be queried.

Remarks

Use QueryCoords to get all of the control points.

 

BezierCurve QueryCoord Example

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

putCoord

public void putCoord(int index,
                     IPoint controlPoint)
              throws java.io.IOException,
                     AutomationException
Deprecated. 
Sets the specified (0 <= index < 4) control point of this Bezier curve.

Supported Platforms

Windows, Solaris, Linux

Description

Places a specific control Point into a bezier curve.  Control point 0 is the FromPoint of the Bezier curve (also the From tangent's FromPoint), control point 1 is the From tangent's ToPoint, control point 2 is the To tangent's FromPoint, and control point 3 is the ToPoint of the Bezier curve (also the To tangent's ToPoint).

Remarks

Use PutCoords to set all control points simultaneously. PutCoord should not be use to create a new BezierCurve, use PutCoords instead. PutCoord should only be use to modify an existing and well define BezierCurve.

 

BezierCurve PutCoord Example

Parameters:
index - The index (in)
controlPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
See Also:
IPoint

getDegree

public int getDegree()
              throws java.io.IOException,
                     AutomationException
Deprecated. 
The degree of the Bezier curve. For third degree Beziers, this is always 3.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the degree of the Bezier Curve.  Currently, all Bezier Curves have a degree of 3 by definition.

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

queryChordLengthTangentAtFrom

public void queryChordLengthTangentAtFrom(IPoint tangent,
                                          boolean[] setByUser)
                                   throws java.io.IOException,
                                          AutomationException
Deprecated. 
Returns tangent vector at 'from' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the ChordLength Tangent at the From Point of the BezierCurve along with a flag indicating whether this ChordLength Tangent was set by the user or defined from Control Points.  The ChordLength Tangent is not the same as the internal Control Points or the Tangent at the From Point although both lie on the same line. The coordinates of the returned point are in reality a Dx and Dy which can be added to the From point in order to get the tangent.

Parameters:
tangent - A reference to a com.esri.arcgis.geometry.IPoint (in)
setByUser - The setByUser (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryChordLengthTangentAtTo

public void queryChordLengthTangentAtTo(IPoint tangent,
                                        boolean[] setByUser)
                                 throws java.io.IOException,
                                        AutomationException
Deprecated. 
Returns tangent vector at 'to' point, based on chord length parametrization; and whether it has been set by user or by smoothing process.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the ChordLength Tangent at the To Point of the BezierCurve along with a flag indicating whether this ChordLength Tangent was set by the user or defined from Control Points.  The ChordLength Tangent is not the same as the internal Control Points or the Tangent at the To Point although both lie on the same line. The coordinates of the returned point are in reality a Dx and Dy which can be added to the To point in order to get the tangent.

Parameters:
tangent - A reference to a com.esri.arcgis.geometry.IPoint (in)
setByUser - The setByUser (in/out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setChordLengthTangentAtFrom

public void setChordLengthTangentAtFrom(IPoint tangent,
                                        boolean setByUser)
                                 throws java.io.IOException,
                                        AutomationException
Deprecated. 
Establishes tangent vector at 'from' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.

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

setChordLengthTangentAtTo

public void setChordLengthTangentAtTo(IPoint tangent,
                                      boolean setByUser)
                               throws java.io.IOException,
                                      AutomationException
Deprecated. 
Establishes tangent vector at 'to' point, based on chord length parametrization; and sets flag whether it has been set by user or by smoothing process.

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

queryInflectionPoint

public void queryInflectionPoint(IPoint inflectionPoint)
                          throws java.io.IOException,
                                 AutomationException
Deprecated. 
Finds inflection point; sets it empty if none exists.

Supported Platforms

Windows, Solaris, Linux

Description

Returns the first Inflection Point of the Bezier Curve, or returns an Empty Point if no Inflection Point Exists.  An Inflection Point occurs where the sign of the Curvature changes.

Remarks

Most Bezier Curves have 0 or 1 Inflection Points, but a few constructions result in Bezier Curves with 2 Inflection Points.  For these Bezier Curve, the only way to find both Inflection Points is to Reverse the Orientation of the Bezier Curve and call QueryInflectionPoint a second time.  If the Inflection Points are not equal, the Bezier Curve has two Inflection Points, otherwise, it only has a single Inflection Point.

BezierCurve QueryInflectionPoint Example

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