lightspeed.trex.components_pane.stagecraft.models
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- class lightspeed.trex.components_pane.stagecraft.models.AssetReplacementsItem(*args, **kwargs)
Bases:
omni.flux.tree_panel.widget.tree.model.Item
Item of the model
- can_item_have_children(item)
Define if the item can have children or not
- Parameters
item – the item itself
- Returns
If the item can has a children or not
- property component_type
The component type. Use this attribute to set a “type/category” of your item. This attribute is used in the delegate as a style for the branch icon like: f”TreeViewBranch{item.component_type}”
- on_mouse_pressed()
Called when the user click with the left mouse button
- property title
The title that will be showed on the tree
- class lightspeed.trex.components_pane.stagecraft.models.EnumItems(value)
Bases:
enum.Enum
An enumeration.
- ASSET_REPLACEMENTS = 'Asset Replacements'
- MOD_PACKAGING = 'Mod Packaging'
- MOD_SETUP = 'Captures / Setup'
- class lightspeed.trex.components_pane.stagecraft.models.ModPackagingItem(*args, **kwargs)
Bases:
omni.flux.tree_panel.widget.tree.model.Item
Item of the model
- can_item_have_children(item)
Define if the item can have children or not
- Parameters
item – the item itself
- Returns
If the item can has a children or not
- property component_type
The component type. Use this attribute to set a “type/category” of your item. This attribute is used in the delegate as a style for the branch icon like: f”TreeViewBranch{item.component_type}”
- on_mouse_pressed()
Called when the user click with the left mouse button
- property title
The title that will be showed on the tree
- class lightspeed.trex.components_pane.stagecraft.models.ModSetupItem(parent: Optional[omni.flux.tree_panel.widget.tree.model.Item] = None)
Bases:
omni.flux.tree_panel.widget.tree.model.Item
Item of the model
- can_item_have_children(item)
Define if the item can have children or not
- Parameters
item – the item itself
- Returns
If the item can has a children or not
- property component_type
The component type. Use this attribute to set a “type/category” of your item. This attribute is used in the delegate as a style for the branch icon like: f”TreeViewBranch{item.component_type}”
- on_mouse_pressed()
Called when the user click with the left mouse button
- property title
The title that will be showed on the tree
- lightspeed.trex.components_pane.stagecraft.models.create_all_items() List[omni.flux.tree_panel.widget.tree.model.Item]