Interface ICamApiGizmo
Interactive transform manipulator (move/rotate gizmo) rendered by the kernel - the same widget used to set the work coordinate system. Created via ICamApiVisualisationFactory.CreateGizmo, which returns this interface directly; the same object also exposes ICamApiVisualObject (its scene node) via QueryInterface. Position it via Matrix, choose which handles are active via the Move*/Rotate* flags, and react to drags through a handler.
Namespace: CAMAPI.ViewPort
Assembly: CAMAPI.ViewPort.dll
Syntax
[Guid("9F1B4C27-6D3E-4A85-B2F7-8C0E1D549A3B")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamApiGizmo
Properties
Matrix
Gizmo placement. Setting it moves the manipulator; reading it returns the current (possibly dragged) transform.
Declaration
TST3DMatrix Matrix { get; set; }
Property Value
| Type | Description |
|---|---|
| TST3DMatrix |
MoveX
Show and enable the translate-along-X handle.
Declaration
bool MoveX { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MoveY
Show and enable the translate-along-Y handle.
Declaration
bool MoveY { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MoveZ
Show and enable the translate-along-Z handle.
Declaration
bool MoveZ { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RotateX
Show and enable the rotate-about-X handle.
Declaration
bool RotateX { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RotateY
Show and enable the rotate-about-Y handle.
Declaration
bool RotateY { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RotateZ
Show and enable the rotate-about-Z handle.
Declaration
bool RotateZ { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Visible
Gizmo visibility.
Declaration
bool Visible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
SetHandler(ICamApiGizmoHandler)
Set the handler that receives transform-change events (nil to detach).
Declaration
void SetHandler(ICamApiGizmoHandler Handler)
Parameters
| Type | Name | Description |
|---|---|---|
| ICamApiGizmoHandler | Handler |