This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine::ImportNode Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Engineering / Sim SDK edition to use it.
Header: #include <UnigineImport.h>

This class represents a container of metadata for an imported node.

ImportNode Class

Members

void setData ( void * data ) #

Sets a new metadata of the imported node.

Arguments

  • void * data - The node metadata.

void * getData() const#

Returns the current metadata of the imported node.

Return value

Current node metadata.

void setFilepath ( const char * filepath ) #

Sets a new path to the output node file.

Arguments

  • const char * filepath - The output node file.

const char * getFilepath() const#

Returns the current path to the output node file.

Return value

Current output node file.

void setCamera ( Ptr<ImportCamera> camera ) #

Sets a new camera node attribute.

Arguments

  • Ptr<ImportCamera> camera - The Camera attribute: ImportCamera class instance if a camera attribute is assigned to the node; otherwise, nullptr.

Ptr<ImportCamera> getCamera() const#

Returns the current camera node attribute.

Return value

Current Camera attribute: ImportCamera class instance if a camera attribute is assigned to the node; otherwise, nullptr.

void setLight ( Ptr<ImportLight> light ) #

Sets a new light node attribute.

Arguments

  • Ptr<ImportLight> light - The light attribute: ImportLight class instance if a light attribute is assigned to the node; otherwise, nullptr.

Ptr<ImportLight> getLight() const#

Returns the current light node attribute.

Return value

Current light attribute: ImportLight class instance if a light attribute is assigned to the node; otherwise, nullptr.

void setMesh ( Ptr<ImportMesh> mesh ) #

Sets a new mesh node attribute.

Arguments

  • Ptr<ImportMesh> mesh - The mesh attribute: ImportMesh class instance if a mesh attribute is assigned to the node; otherwise, nullptr.

Ptr<ImportMesh> getMesh() const#

Returns the current mesh node attribute.

Return value

Current mesh attribute: ImportMesh class instance if a mesh attribute is assigned to the node; otherwise, nullptr.

void setName ( const char * name ) #

Sets a new name of the imported scene node.

Arguments

  • const char * name - The scene node name.

const char * getName() const#

Returns the current name of the imported scene node.

Return value

Current scene node name.

void setParent ( Ptr<ImportNode> parent ) #

Sets a new parent node of the imported scene node.

Arguments

  • Ptr<ImportNode> parent - The parent node of the imported scene node.

Ptr<ImportNode> getParent() const#

Returns the current parent node of the imported scene node.

Return value

Current parent node of the imported scene node.

void setTransform ( const const Math::dmat4 && transform ) #

Sets a new transformation matrix of the imported scene node.

Arguments

  • const const Math::dmat4 && transform - The Node's transformation matrix.

const Math::dmat4 & getTransform() const#

Returns the current transformation matrix of the imported scene node.

Return value

Current Node's transformation matrix.

ImportNode ( ) #

Constructor. Creates an empty ImportNode instance.

void addChild ( const Ptr<ImportNode> & node ) #

Adds the specified node as a child to the imported scene node.

Arguments

  • const Ptr<ImportNode> & node - Node to be added as a child to the imported node.

bool removeChild ( const Ptr<ImportNode> & node ) #

Removes the specified node from the list of children of the imported scene node.

Arguments

  • const Ptr<ImportNode> & node - Node to be removed from the list of children.

Ptr<ImportNode> getChild ( int index ) const#

Returns the child node of the imported node having the specifed index.

Arguments

Return value

Child node of the imported node with the specified index.

int getNumChildren ( ) const#

Returns the number of children of the imported node.

Return value

Number of node's children.
Last update: 28.11.2022
Build: ()