lightspeed.trex.components_pane.ingestcraft.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

  • https://www.apache.org/licenses/LICENSE-2.0

  • 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.ingestcraft.models.EnumItems(value)

Bases: enum.Enum

An enumeration.

MATERIAL_INGESTION = 'Material Ingestion'
MODEL_INGESTION = 'Model Ingestion'
class lightspeed.trex.components_pane.ingestcraft.models.ModelIngestionItem(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

class lightspeed.trex.components_pane.ingestcraft.models.TextureIngestionItem(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.ingestcraft.models.create_all_items() List[omni.flux.tree_panel.widget.tree.model.Item]