Interface IAffineTransformation2D3GEN
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
MoveOrigin
The origin of accumulated transformations used when projecting an affine transformation to a different spatial reference system.
IPoint MoveOrigin { get; set; }
Property Value
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
SpatialReference
The spatial reference in which this transformation is meaningful.
ISpatialReference SpatialReference { get; set; }
Property Value
XScale
The scale along the X axis.
double XScale { get; }
Property Value
XTranslation
The translation along the X axis.
double XTranslation { get; }
Property Value
YScale
The scale along the Y axis.
double YScale { get; }
Property Value
YTranslation
The translation along the Y axis.
double YTranslation { get; }
Property Value
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
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
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
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
DefineReflection(ILine)
Defines a transformation that can perform a reflection about the line l.
void DefineReflection(ILine l)
Parameters
lILine
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
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
Move(double, double)
Incorporates a translation factor into the transformation.
void Move(double dx, double dy)
Parameters
MoveVector(ILine)
Performs an X and Y translation defined by a 2D vector.
void MoveVector(ILine movementVector)
Parameters
movementVectorILine
PostMultiply(IAffineTransformation2D3GEN)
Post-multiplies the transformation by another transformation.
void PostMultiply(IAffineTransformation2D3GEN postTransform)
Parameters
postTransformIAffineTransformation2D3GEN
PreMultiply(IAffineTransformation2D3GEN)
Pre-multiplies the transformation by another transformation.
void PreMultiply(IAffineTransformation2D3GEN preTransform)
Parameters
preTransformIAffineTransformation2D3GEN
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
newSpatialReferenceISpatialReference
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
DirectionesriTransformDirectionparamsdouble[]
Reset()
Resets the tranformation.
void Reset()
Rotate(double)
Incorporates a rotation (in radians) into the transformation.
void Rotate(double da)
Parameters
dadouble
Scale(double, double)
Incorporates scale factors into the transformation.
void Scale(double dx, double dy)
Parameters
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
DirectionesriTransformDirectionparamsdouble[]
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
DirectionesriTransformDirectioninMeasuresdouble[]outMeasuresdouble[]
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
DirectionesriTransformDirectioninMeasuresdouble[]outMeasuresint[]
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
DirectionesriTransformDirectioninMeasuresint[]outMeasuresdouble[]
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
DirectionesriTransformDirectioninMeasuresint[]outMeasuresint[]
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
DirectionesriTransformDirectioninPointsdouble[]outPointsdouble[]
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
DirectionesriTransformDirectioninPointsdouble[]outPointsint[]
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
DirectionesriTransformDirectioninPointsint[]outPointsdouble[]
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
DirectionesriTransformDirectioninPointsint[]outPointsint[]