The selection JavaScript global object. Retrieve information about the nodes or columns that are selected. More...
Public Slots | |
int | numberOfNodesSelected () |
Returns the number of nodes that are selected. More... | |
String | selectedNode (int i) |
Returns the path of the selected node. More... | |
String | selectedWaypoint (int i) |
Returns the path of the selected waypoint. More... | |
int | numberOfColumnsSelected () |
Returns a value for the number of columns selected in the xsheet. More... | |
String | selectedColumn (int i) |
Returns the ith column selected in the xsheet. More... | |
bool | clearSelection () |
Clears the selection. More... | |
bool | addNodeToSelection (String node) |
Adds a node to the selection. More... | |
void | addNodesToSelection (QScriptValue nodes) |
Adds an array of nodes to the selection. More... | |
bool | removeNodeFromSelection (String node) |
Removes a node from the selection. More... | |
bool | addBackdropToSelection (QScriptValue &backdrop) |
Adds a backdrop to the selection. More... | |
bool | removeBackdropFromSelection (QScriptValue &backdrop) |
Removes a backdrop to the selection. More... | |
bool | addBackdropToSelection (String &groupPath, uint idx) |
Adds a backdrop to the selection. More... | |
bool | removeBackdropFromSelection (String &groupPath, uint idx) |
Removes a backdrop to the selection. More... | |
bool | addWaypointToSelection (String waypoint) |
Add a waypoint to the selection. More... | |
bool | removeWaypointFromSelection (String waypoint) |
Remove a waypoint from the selection. More... | |
bool | addColumnToSelection (String column) |
Add a column to the selection. More... | |
bool | addDrawingColumnToSelection (String columnName) |
Adds the drawing column and it's associated read node to the selection. More... | |
bool | extendSelectionWithColumn (String columnName) |
Adds the column to the selection. If the column is a drawing column, also adds the associated read node to the selection. More... | |
void | setSelectionFrameRange (int start, int length) |
Sets the selection frame range. More... | |
bool | isSelectionRange () |
Returns true if the selection has a range. More... | |
int | startFrame () |
Returns the selected start frame. More... | |
int | numberOfFrames () |
Returns the number of selected frames. More... | |
void | selectAll () |
Selects all nodes and all columns in the scene. More... | |
QScriptValue | selectedNodes () |
Returns an Array of all selected nodes. More... | |
QScriptValue | selectedWaypoints () |
Returns an Array of all selected waypoints. More... | |
QScriptValue | selectedBackdrops () |
Returns an Array of all selected backdrops. More... | |
Sub selection | |
QScriptValue | subSelectionForNode (String &node) |
Obtains the IDs of the selectable sub objects of the given node. More... | |
bool | addSubSelectionForNode (String &node, QScriptValue &subSelection) |
Selects/deselects a set of IDs from the sub selection. More... | |
bool | clearSubSelectionForNode (String &node) |
Clears all the sub selection on the given node. More... | |
The selection JavaScript global object. Retrieve information about the nodes or columns that are selected.
|
slot |
Adds a backdrop to the selection.
If multiple backdrops of a given group share the same title, all of them will be added to the selection.
backdrop | : The backdrop object provided from Backdrop.backdrops( groupPath ) |
|
slot |
Adds a backdrop to the selection.
If multiple backdrops of a given group share the same title, all of them will be added to the selection.
group | : The group in which the backdrop is contained. |
idx | : The index of the backdrop in the group. |
|
slot |
Add a column to the selection.
returns whether columns was located and successfully added to the selection
column | name of column |
|
slot |
Adds the drawing column and it's associated read node to the selection.
columnName | : The displayed name of column. |
|
slot |
Adds an array of nodes to the selection.
nodes | : An array containing the qualified name of nodes to be selected. |
|
slot |
Adds a node to the selection.
node | : The name of node to add to the selection. |
|
slot |
Selects/deselects a set of IDs from the sub selection.
Select a set of sub objects. If the sub object is already selected, this method will deselect it.
node | : The path to the node (ex: "Top/MyNode"). |
subSelection | : An array of sub object IDs or the id (integer) of one sub object. |
|
slot |
Add a waypoint to the selection.
returns whether waypoint was located and successfully added to the selection
waypoint | qualified name of waypoint |
|
slot |
Clears the selection.
|
slot |
Clears all the sub selection on the given node.
node | : The path to the node (ex: "Top/MyNode"). |
|
slot |
Adds the column to the selection. If the column is a drawing column, also adds the associated read node to the selection.
columnName | : The displayed name of column. |
|
slot |
Returns true if the selection has a range.
|
slot |
Returns a value for the number of columns selected in the xsheet.
|
slot |
Returns the number of selected frames.
|
slot |
Returns the number of nodes that are selected.
|
slot |
Removes a backdrop to the selection.
If multiple backdrops of a given group share the same title, all of them will be removed from the selection.
backdrop | : The backdrop object provided from Backdrop.backdrops( groupPath ) |
|
slot |
Removes a backdrop to the selection.
If multiple backdrops of a given group share the same title, all of them will be removed from the selection.
group | : The group in which the backdrop is contained. |
idx | : The index of the backdrop in the group. |
|
slot |
Removes a node from the selection.
node | : The name of node to be removed from the selection. |
|
slot |
Remove a waypoint from the selection.
returns whether waypoint was located and successfully removed from the selection
waypoint | qualified name of waypoint |
|
slot |
Selects all nodes and all columns in the scene.
|
slot |
Returns an Array of all selected backdrops.
|
slot |
Returns the ith column selected in the xsheet.
i | : The index of the column. |
|
slot |
Returns the path of the selected node.
i | : The index of the node. |
|
slot |
Returns an Array of all selected nodes.
|
slot |
Returns the path of the selected waypoint.
i | : The index of the waypoint. |
|
slot |
Returns an Array of all selected waypoints.
|
slot |
Sets the selection frame range.
start | : The beginning frame. |
length | : The number of frames selected. |
|
slot |
Returns the selected start frame.
|
slot |
Obtains the IDs of the selectable sub objects of the given node.
node | : The path to the node (ex: "Top/MyNode"). |