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

Header: #include <UnigineExport.h>

This is the export manager class. It is used to create and manage exporters.

You can manage the set of available exporters dynamically by adding them to or removing from the registry.

You can also get the list of all currently supported file extensions.

Export Class

Members


Export ( ) #

Constructor. Creates an exporter with default settings.

Export * get ( ) #

Returns a pointer to the Export manager.

Return value

Export manager instance.

void registerExporter ( const char * type_name, const Vector<String>& extensions ) #

Registers a new exporter with a given name for the specified list of file extensions.

Arguments

  • const char * type_name - Exporter type name.
  • const Vector<String>& extensions - List of file extensions for which the specified Exporter is to be used.

bool unregisterExporter ( const char* type_name ) #

Unregisters the specified exporter type.

Arguments

  • const char* type_name - Exporter type name.

Exporter * createExporter ( const char* type_name ) const#

Creates a new exporter of the specified type.
Notice
The exporter type name specified must be previously registered.

Arguments

  • const char* type_name - Exporter type name.

Return value

Pointer to a new created exporter of a given type, if it was created successfully; otherwise, nullptr.

Exporter * createExporterByFileName ( const char* file_name ) const#

Creates an exporter for the output file with a given name by its extension, if such an exporter was previously registered.

Arguments

  • const char* file_name - Name of the output file containing the data to be exported.

Return value

Pointer to the exporter, if it was successfully created for the file with a given name; otherwise, nullptr.

bool isSupportedExporterType ( const char* type_name ) const#

Returns a value indicating whether the specified exporter type is supported by the exporter.

Arguments

  • const char* type_name - Null-terminated string with the exporter type to be checked.

Return value

true if the specified exporter type is supported by the exporter; otherwise, false.

Vector<String> & getExporterTypes ( ) const#

Returns the list of all exporter types registered by the Export Manager.

Return value

List of all exporter types registered by the Export Manager as a vector of strings.

void getExporterTypes ( Vector<String> & types ) const#

Returns the list of all exporter types registered by the Export Manager and puts it to the given vector.

Arguments

  • Vector<String> & types - Vector to put the list of all registered exporter types to.

bool isSupportedExtension ( const char* extension ) const#

Returns a value indicating whether the specified file extension is supported by the exporter.

Arguments

  • const char* extension - Null-terminated string with file extension to be checked.

Return value

true if the specified file extension is supported by the exporter; otherwise, false.

Vector<String> & getSupportedExtensions ( ) const#

Returns the list of all supported file extensions as a vector of strings.

Return value

List of all supported extensions as a vector of strings.

void getSupportedExtensions ( Vector<String> & extensions ) const#

Returns the list of all supported file extensions and puts it to the given vector.

Arguments

  • Vector<String> & extensions - Vector to put the list of all supported extensions to.

Vector<String> & getSupportedExtensionsByType ( const char* type_name ) const#

Returns the list of all supported file extensions for the specified exporter type as a vector of strings.

Arguments

  • const char* type_name - Exporter type name.

Return value

List of all supported extensions as a vector of strings.

void getSupportedExtensionsByType ( const char* type_name, Vector<String> & extensions ) const#

Returns the list of all supported file extensions for the specified exporter type and puts it to the given vector.

Arguments

  • const char* type_name - Exporter type name.
  • Vector<String> & extensions - Vector to put the list of all supported extensions to.

String getExporterTypeByExtension ( const char* extension ) const#

Returns the type of exporter for the specified extension.

Arguments

  • const char* extension - Null-terminated string with file extension.

Return value

Type of exporter for the specified extension, if it exists, as a string; otherwise, null string.

bool doExport ( const NodePtr& root_node, const char* output_filepath ) const#

Creates an exporter and then exports the node to the specified output file.

Arguments

  • const NodePtr& root_node - Root node of the hierarchy to be exported.
  • const char* output_filepath - Output path to be used to store generated file(s) with exported data.

Return value

true if the file is exported successfully; otherwise, false.
Last update: 2024-12-13
Build: ()