Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Parameters
- childSpaceName
- Type: System String
A valid nonqualified or fully-qualified space name that indicates the coordinate space to modify.
- newParentFromChild
- Type: Cognex.VisionPro ICogTransform2D
An ICogTransform2D that maps points from the space you are changing to its parent user space.
- copyTransform
- Type: System Boolean
If True, ChangeTransform(String, ICogTransform2D, Boolean) saves a copy of the supplied transform. Otherwise, the transform is added by-reference.
| Exception | Condition |
|---|---|
| ArgumentException | newParentFromChild is NULL. |
| ArgumentException | childSpaceName is the root space. |
| CogSpaceTreeInvalidNameSyntaxException | childSpaceName value is not a legal space name. |
| CogSpaceTreeNotUniqueException | childSpaceName is a nonqualified space name and more than one instance of it exists in this tree. |
Changes the transform that maps points from the given child space name into its parent space.
By default, ChangeTransform(String, ICogTransform2D, Boolean) saves a copy of the supplied transform. You can also add the transform by-reference. Although this is more efficient, it may result in errors for users who unknowingly continue to modify the original transform object.