Skip to main content

GetGizmo

GetGizmo [/N/Z] keyword [=value ]

The GetGizmo operation provides information about a Gizmo display window.

Flags

/G=groupSpecDirects the operation to provide information about a specific Gizmo group object. /G was added in Igor Pro 7.00.
For top level groups groupSpec is a simple name, for example:
GetGizmo /G=group0 displayNameList
Address lower level groups like this:
String groupSpecStr = "root:group0:group0A"
GetGizmo /G=$groupSpecStr displayNameList
/N=gizmoNameSpecifies the name of the targeted Gizmo window. If you omit /N then GetGizmo operates on the top Gizmo window.
/ZNo error reporting.

Keywords

attributeListStores the attribute list recreation commands in S_AttributeList and in the text wave TW_AttributeList. The wave is always created, even if there are no attributes in the attribute list. This is useful if you want to test the contents of the attribute list without creating a full recreation macro.
attributeItemExists=name
Determines if the named item exists in the attribute list.
Sets V_Flag to 1 if the named item exists in the attribute list or to 0 if it does not exist.
attributeNameListStores in the string S_AttributeNames a semicolon-separated list containing the names of all items in the attribute list.
To get the attribute name list of a group object you need to set the group object as the current group object using ModifyGizmo currentGroupObject.
axisCueStateDetermines if the axis cue is displayed.
Sets V_Flag to 1 if the Gizmo display shows the axis cue or to 0 if not.
This applies to the built-in axis cue, not to free axis cue objects.
constant = OpenGLconst
Prints to history area the decimal value of the OpenGL constant passed as a name. This is useful for conversion between OpenGL constant definitions as they appear in OpenGL documentation and numerical arguments used by Gizmo. For example:
GetGizmo constant=GL_FRONT
See Use of GL Constants in Gizmo Commands for details.
curGroupStores in the string S_GroupName the path to the current group. Unlike ModifyGizmo currentGroupObject, the returned group path does not start with the Gizmo window name.
If the targeted Gizmo window is named Gizmo0, and the current group was set using
ModifyGizmo currentGroupObject="Gizmo0:Group0:NestedGroup0"
then S_GroupName is "Group0:NestedGroup0".
curMatrixStores the current homogeneous rotation matrix in the 4x4 single precision wave M_RotationMatrix in the current data folder.
curQuaternionStores the components of the current quaternion in the variables GizmoQuat_x, GizmoQuat_y, GizmoQuat_z, GizmoQuat_w.
curRotationStores the current Euler angles in degrees in the global variables GizmoEulerA, GizmoEulerB, and GizmoEulerC.
dataLimitsCreates the variables GizmoXmin, GizmoXmax, GizmoYmin, GizmoYmax, GizmoZmin, GizmoZmax which are set to the corresponding global data limits of all data objects currently displayed in the Gizmo window. See also ModifyGizmo hookFunction for another method to access the same data.
displayItemExists=name
Determines if the named item is in the display list.
Sets V_Flag to 1 if the named item exists in the display list or to 0 if not. This is executed in the context of the current group.
displayListStores the display list recreation commands in S_DisplayList and in the text wave TW_DisplayList. This is useful if you want to test the contents of the display list without creating a full recreation macro.
displayNameListStores in the string S_DisplayNames a semicolon-separated list containing the names of all items in the display list.
To get the display name list of a group object you need to set the group object as the current group object using ModifyGizmo currentGroupObject.
gizmoNameReturns the name of the top Gizmo window in S_GizmoName. This is equivalent to: WinName(0,65536).
gizmoNameListStores in the string S_GizmoNames a semicolon-separated list containing the names of all Gizmo windows. This is equivalent to:
WinList("*", ";", "WIN:65536")
objectListStores the object list recreation commands in S_gizmoObjectList and in the text wave TW_gizmoObjectList. This is useful if you want to test the contents of the object list without creating a full recreation macro.
objectAttributeList=name
Stores the string S_objectAttributeList and in the text wave TW_objectAttributeList a list of all embedded attributes of the object specified by name .
objectItemExists=name
Determines if the named item is in the object list.
Sets V_Flag to 1 if the named item exists in the object list or to 0 if not. This is executed in the context of the current group.
objectNameListStores in the string S_ObjectNames a semicolon-separated list containing the names of all items in the object list.
To get the object name list of a group object you need to set the group object as the current group object using ModifyGizmo currentGroupObject.
mouseLockStateDetermines if rotation of the Gizmo display with the mouse is locked.
Sets V_Flag to 1 if mouse rotation is locked or to 0 if not.
userBoxLimitsReturns the six parameter box limits as specified by the user - see ModifyGizmo setOuterBox. The parameters are stored in the variables GizmoBoxXmin, GizmoBoxXmax, GizmoBoxYmin, GizmoBoxYmax, GizmoBoxZmin, GizmoBoxZmax.
userString=nameSets the string S_GizmoUserString to the user string saved under the specified name. If there is no user string of the specified name, GetGizmo sets S_GizmoUserString to "". See ModifyGizmo userString.
viewportReturns the width and height of the actual drawing region, in pixels, in the variables V_width and V_Height. This excludes the internal tool palette.
winPixelsStores the global pixel coordinates of the window in the variables V_left, V_top, V_right, V_bottom.

See Also

3D Graphics

NewGizmo, ModifyGizmo, AppendToGizmo, ExportGizmo, GizmoInfo, RemoveFromGizmo