Class GizmoHelper
Helper methods for ICamApiGizmo.
Inherited Members
Namespace: CAMAPI.DotnetHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class GizmoHelper
Methods
GetMatrix(ComWrapper<ICamApiGizmo>)
Gizmo placement.
Declaration
public static TST3DMatrix GetMatrix(this ComWrapper<ICamApiGizmo> com)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com |
Returns
| Type | Description |
|---|---|
| TST3DMatrix |
SetEnabledHandles(ComWrapper<ICamApiGizmo>, bool, bool, bool, bool, bool, bool)
Choose which handles are active in one call.
Declaration
public static void SetEnabledHandles(this ComWrapper<ICamApiGizmo> com, bool moveX, bool moveY, bool moveZ, bool rotateX, bool rotateY, bool rotateZ)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | moveX | |
| bool | moveY | |
| bool | moveZ | |
| bool | rotateX | |
| bool | rotateY | |
| bool | rotateZ |
SetHandler(ComWrapper<ICamApiGizmo>, ICamApiGizmoHandler)
Set the handler that receives transform-change events (null to detach).
Declaration
public static void SetHandler(this ComWrapper<ICamApiGizmo> com, ICamApiGizmoHandler handler)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| ICamApiGizmoHandler | handler |
SetMatrix(ComWrapper<ICamApiGizmo>, TST3DMatrix)
Gizmo placement.
Declaration
public static void SetMatrix(this ComWrapper<ICamApiGizmo> com, TST3DMatrix m)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| TST3DMatrix | m |
SetMoveX(ComWrapper<ICamApiGizmo>, bool)
Show/enable the translate-along-X handle.
Declaration
public static void SetMoveX(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetMoveY(ComWrapper<ICamApiGizmo>, bool)
Show/enable the translate-along-Y handle.
Declaration
public static void SetMoveY(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetMoveZ(ComWrapper<ICamApiGizmo>, bool)
Show/enable the translate-along-Z handle.
Declaration
public static void SetMoveZ(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetRotateX(ComWrapper<ICamApiGizmo>, bool)
Show/enable the rotate-about-X handle.
Declaration
public static void SetRotateX(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetRotateY(ComWrapper<ICamApiGizmo>, bool)
Show/enable the rotate-about-Y handle.
Declaration
public static void SetRotateY(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetRotateZ(ComWrapper<ICamApiGizmo>, bool)
Show/enable the rotate-about-Z handle.
Declaration
public static void SetRotateZ(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |
SetVisible(ComWrapper<ICamApiGizmo>, bool)
Gizmo visibility.
Declaration
public static void SetVisible(this ComWrapper<ICamApiGizmo> com, bool v)
Parameters
| Type | Name | Description |
|---|---|---|
| ComWrapper<ICamApiGizmo> | com | |
| bool | v |