Interface IAffineTransformation2D3GEN

Namespace
ESRI.ArcGIS.Geometry
Assembly
ESRI.Server.Geometry.dll

Provides access to members that define and manipulate affine transformations. IAffineTransformation2D3GEN is generic version of IAffineTransformation2D3

[Guid("20F586DE-9B4B-47A2-A9A7-ABC70FFD6E56")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IAffineTransformation2D3GEN

Properties

IsReflective

Indicates if the transformation contains a reflection (determinant is negative).

bool IsReflective { get; }

Property Value

bool

MoveOrigin

The origin of accumulated transformations used when projecting an affine transformation to a different spatial reference system.

IPoint MoveOrigin { get; set; }

Property Value

IPoint

Rotation

The rotation angle. Will not be able if different x/y scale factors have been incorporated into the transformation.

double Rotation { get; }

Property Value

double

SpatialReference

The spatial reference in which this transformation is meaningful.

ISpatialReference SpatialReference { get; set; }

Property Value

ISpatialReference

XScale

The scale along the X axis.

double XScale { get; }

Property Value

double

XTranslation

The translation along the X axis.

double XTranslation { get; }

Property Value

double

YScale

The scale along the Y axis.

double YScale { get; }

Property Value

double

YTranslation

The translation along the Y axis.

double YTranslation { get; }

Property Value

double

Methods

DefineConformalFromControlPoints(ref IPoint[], ref IPoint[])

Defines the best conformal affine transformation between two sets of points. Can be used to register paper maps on a digitizer.

void DefineConformalFromControlPoints(ref IPoint[] fromPoints, ref IPoint[] toPoints)

Parameters

fromPoints IPoint[]
toPoints IPoint[]

DefineFromControlPoints(ref IPoint[], ref IPoint[])

Defines the best affine transformation between two sets of points. Can be used to register paper maps on a digitizer.

void DefineFromControlPoints(ref IPoint[] fromPoints, ref IPoint[] toPoints)

Parameters

fromPoints IPoint[]
toPoints IPoint[]

DefineFromEnvelopes(IEnvelope, IEnvelope)

Defines a transformation that maps a point relative to one envelope to a similar position relative to another envelope.

void DefineFromEnvelopes(IEnvelope from, IEnvelope to)

Parameters

from IEnvelope
to IEnvelope

DefineFromEnvelopesEx(IEnvelope, IEnvelope, IEnvelope, bool, bool, bool)

Defines a transformation that maps a point relative to one envelope to a similar position relative to another envelope.

void DefineFromEnvelopesEx(IEnvelope from, IEnvelope to, IEnvelope outFrom, bool assumeFalseOrigin, bool keepAspect, bool flipIt)

Parameters

from IEnvelope
to IEnvelope
outFrom IEnvelope
assumeFalseOrigin bool
keepAspect bool
flipIt bool

DefineReflection(ILine)

Defines a transformation that can perform a reflection about the line l.

void DefineReflection(ILine l)

Parameters

l ILine

GetControlPointError(int, ref double, ref double)

Returns the errors involved in moving control point i from the 'from' to 'to' system. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

void GetControlPointError(int i, ref double fromError, ref double toError)

Parameters

i int
fromError double
toError double

GetRMSError(ref double, ref double)

RMS (Root Mean Square) error expressed relative to the 'from' and 'to' points defining the transformation. These error terms are valid after using DefineFromControlPoints/Ex to define the transformation.

void GetRMSError(ref double fromError, ref double toError)

Parameters

fromError double
toError double

Move(double, double)

Incorporates a translation factor into the transformation.

void Move(double dx, double dy)

Parameters

dx double
dy double

MoveVector(ILine)

Performs an X and Y translation defined by a 2D vector.

void MoveVector(ILine movementVector)

Parameters

movementVector ILine

PostMultiply(IAffineTransformation2D3GEN)

Post-multiplies the transformation by another transformation.

void PostMultiply(IAffineTransformation2D3GEN postTransform)

Parameters

postTransform IAffineTransformation2D3GEN

PreMultiply(IAffineTransformation2D3GEN)

Pre-multiplies the transformation by another transformation.

void PreMultiply(IAffineTransformation2D3GEN preTransform)

Parameters

preTransform IAffineTransformation2D3GEN

Project(ISpatialReference)

Moves this transformation into another spatial reference. If the transformations contains only translations, then use the MoveOrigin property to define an equivalent translation in the new spatial reference.

void Project(ISpatialReference newSpatialReference)

Parameters

newSpatialReference ISpatialReference

QueryLinearCoefficients(esriTransformDirection, ref double[])

Returns the linear coefficients which define the two dimensional affine transformation. The array size of the incoming parameters needs to be 6.

void QueryLinearCoefficients(esriTransformDirection Direction, ref double[] @params)

Parameters

Direction esriTransformDirection
params double[]

Reset()

Resets the tranformation.

void Reset()

Rotate(double)

Incorporates a rotation (in radians) into the transformation.

void Rotate(double da)

Parameters

da double

Scale(double, double)

Incorporates scale factors into the transformation.

void Scale(double dx, double dy)

Parameters

dx double
dy double

SetLinearCoefficients(esriTransformDirection, ref double[])

Sets the linear coefficients which define the two dimensional affine transformation. The array size of the incoming parameters needs to be 6.

void SetLinearCoefficients(esriTransformDirection Direction, ref double[] @params)

Parameters

Direction esriTransformDirection
params double[]

TransformMeasuresFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point measures to floating point measures (or do the inverse).

void TransformMeasuresFF(esriTransformDirection Direction, ref double[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures double[]

TransformMeasuresFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point measures to integer measures (or do the inverse).

void TransformMeasuresFI(esriTransformDirection Direction, ref double[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures double[]
outMeasures int[]

TransformMeasuresIF(esriTransformDirection, ref int[], ref double[])

Transforms integer measures to floating point measures (or do the inverse).

void TransformMeasuresIF(esriTransformDirection Direction, ref int[] inMeasures, ref double[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures double[]

TransformMeasuresII(esriTransformDirection, ref int[], ref int[])

Transforms integer measures to integer measures (or do the inverse).

void TransformMeasuresII(esriTransformDirection Direction, ref int[] inMeasures, ref int[] outMeasures)

Parameters

Direction esriTransformDirection
inMeasures int[]
outMeasures int[]

TransformPointsFF(esriTransformDirection, ref double[], ref double[])

Transforms floating point points to floating point points (or do the inverse).

void TransformPointsFF(esriTransformDirection Direction, ref double[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints double[]

TransformPointsFI(esriTransformDirection, ref double[], ref int[])

Transforms floating point points to integer points (or do the inverse).

void TransformPointsFI(esriTransformDirection Direction, ref double[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints double[]
outPoints int[]

TransformPointsIF(esriTransformDirection, ref int[], ref double[])

Transforms integer points to floating point points (or do the inverse).

void TransformPointsIF(esriTransformDirection Direction, ref int[] inPoints, ref double[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints double[]

TransformPointsII(esriTransformDirection, ref int[], ref int[])

Transforms integer points to integer points (or do the inverse).

void TransformPointsII(esriTransformDirection Direction, ref int[] inPoints, ref int[] outPoints)

Parameters

Direction esriTransformDirection
inPoints int[]
outPoints int[]