com.esri.arcgis.datasourcesfile
Interface ICadTransformations

All Superinterfaces:
Serializable
All Known Implementing Classes:
CadAnnotationLayer, CadFeatureLayer, CadLayer

public interface ICadTransformations
extends Serializable

Provides access to members that control Cad Transformations.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void getFromToTransform(_WKSPoint[] fromPoint1, _WKSPoint[] fromPoint2, _WKSPoint[] toPoint1, _WKSPoint[] toPoint2)
          Returns the points of a two point transformation.
 void getTransformation(_WKSPoint[] from, _WKSPoint[] to, double[] angle, double[] scale)
          Returns the rotation, scale, and translation of a transformation.
 int getTransformMode()
          The transformation type.
 String getWorldFileName()
          The pathname of the world file.
 boolean isEnableTransformations()
          Indicates if global transformations are enabled.
 void setEnableTransformations(boolean enabled)
          Indicates if global transformations are enabled.
 void setFromToTransform(_WKSPoint fromPoint1, _WKSPoint fromPoint2, _WKSPoint toPoint1, _WKSPoint toPoint2)
          Sets the points of a two point transformation.
 void setTransformation(_WKSPoint from, _WKSPoint to, double angle, double scale)
          Sets the rotation, scale, and translation of a transformation.
 void setTransformMode(int mode)
          The transformation type.
 void setWorldFileName(String filePath)
          The pathname of the world file.
 

Method Detail

isEnableTransformations

boolean isEnableTransformations()
                                throws IOException,
                                       AutomationException
Indicates if global transformations are enabled.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setEnableTransformations

void setEnableTransformations(boolean enabled)
                              throws IOException,
                                     AutomationException
Indicates if global transformations are enabled.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getWorldFileName

String getWorldFileName()
                        throws IOException,
                               AutomationException
The pathname of the world file.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

setWorldFileName

void setWorldFileName(String filePath)
                      throws IOException,
                             AutomationException
The pathname of the world file.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

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

getTransformMode

int getTransformMode()
                     throws IOException,
                            AutomationException
The transformation type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Returns:
A com.esri.arcgis.datasourcesfile.esriCadTransform constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTransformMode

void setTransformMode(int mode)
                      throws IOException,
                             AutomationException
The transformation type.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
mode - A com.esri.arcgis.datasourcesfile.esriCadTransform constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFromToTransform

void getFromToTransform(_WKSPoint[] fromPoint1,
                        _WKSPoint[] fromPoint2,
                        _WKSPoint[] toPoint1,
                        _WKSPoint[] toPoint2)
                        throws IOException,
                               AutomationException
Returns the points of a two point transformation.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
fromPoint1 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
fromPoint2 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
toPoint1 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
toPoint2 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFromToTransform

void setFromToTransform(_WKSPoint fromPoint1,
                        _WKSPoint fromPoint2,
                        _WKSPoint toPoint1,
                        _WKSPoint toPoint2)
                        throws IOException,
                               AutomationException
Sets the points of a two point transformation.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
fromPoint1 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
fromPoint2 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
toPoint1 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
toPoint2 - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTransformation

void getTransformation(_WKSPoint[] from,
                       _WKSPoint[] to,
                       double[] angle,
                       double[] scale)
                       throws IOException,
                              AutomationException
Returns the rotation, scale, and translation of a transformation.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (out: use single element array)
angle - The angle (out: use single element array)
scale - The scale (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTransformation

void setTransformation(_WKSPoint from,
                       _WKSPoint to,
                       double angle,
                       double scale)
                       throws IOException,
                              AutomationException
Sets the rotation, scale, and translation of a transformation.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
from - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
to - A Structure: com.esri.arcgis.system._WKSPoint (A com.esri.arcgis.system._WKSPoint COM typedef) (in)
angle - The angle (in)
scale - The scale (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.