This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
VR Development
双精度坐标
应用程序接口
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
Tutorials

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: 2023-12-19
Build: ()