Difference between revisions of "API System.ShowHandle"

From Flowcode Help
Jump to navigationJump to search
(XML import of updated API docs)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 +
|-
 +
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 +
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ShowHandle'''
 +
|-
 +
| colspan="2" | Given a handle to an object with viewable presence, shows that object on screen 
 +
|-
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
 +
| width="90%" | Handle
 +
|-
 +
| colspan="2" | The object to display on screen 
 +
|-
 +
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-bool-icon.png]] - BOOL
 +
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 +
|}
  
  
<sidebar>API contents</sidebar>
+
==Detailed description==
Given a handle to an object with viewable presence, shows that object on screen
+
This tells Flowcode to show whatever object is represented by ''Handle''.
 
 
<div style="width:25%; float:right" class="toc">
 
====Class hierarchy====
 
[[API System|System]]
 
:[[API System|ShowHandle]]
 
</div>
 
__TOC__
 
 
 
==Parameters==
 
[[Variable Types|HANDLE]] ''Handle''
 
:The object to display on screen
 
 
 
 
 
==Return value==
 
[[Variable Types|BOOL]]
 
 
 
Returns true if the operation is a success, else false
 
  
  
==Detailed description==
+
The types of object that are supported are:
''<span style="color:red;">No additional information</span>''
+
{| class="wikitable"
 +
|-
 +
!Handle type
 +
!Result of this call
 +
|-
 +
|Component
 +
|Moves the camera in its current viewing plane over the components position
 +
If the panel (system or dashboard) the component exists on is not shown, this will open that window
 +
|-
 +
|Position
 +
|Behaves as though a component, and moves the camera to look at that position
 +
|-
 +
|LinkBar
 +
|Behaves as though a component, and moves the camera to look at the center of the link
 +
|-
 +
|Point cloud
 +
|Behaves as though a component, and moves the camera to look at the center of the cloud
 +
|-
 +
|Console
 +
|Opens the console window and selects the appropriate console tab
 +
|-
 +
|Scope group/stream
 +
|Opens the data scope window to show the scope
 +
|}
  
  
Line 30: Line 52:
 
* Declare a variable 'result' of type BOOL
 
* Declare a variable 'result' of type BOOL
 
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::System.ShowHandle(handle)</pre>
 
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::System.ShowHandle(handle)</pre>
 
''<span style="color:red;">No additional examples</span>''
 

Latest revision as of 11:55, 16 January 2023

Fc9-comp-macro.png ShowHandle
Given a handle to an object with viewable presence, shows that object on screen 
Fc9-h32-icon.png - HANDLE Handle
The object to display on screen 
Fc9-bool-icon.png - BOOL Return


Detailed description

This tells Flowcode to show whatever object is represented by Handle.


The types of object that are supported are:

Handle type Result of this call
Component Moves the camera in its current viewing plane over the components position

If the panel (system or dashboard) the component exists on is not shown, this will open that window

Position Behaves as though a component, and moves the camera to look at that position
LinkBar Behaves as though a component, and moves the camera to look at the center of the link
Point cloud Behaves as though a component, and moves the camera to look at the center of the cloud
Console Opens the console window and selects the appropriate console tab
Scope group/stream Opens the data scope window to show the scope


Examples

Calling in a calculation

  • Declare a variable 'result' of type BOOL
  • Add to a calculation icon:
    result = ::System.ShowHandle(handle)