This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
应用程序接口
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
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::NodeExternBase Class

Header: #include <UnigineNodes.h>
Inherits: Base
Read More

NodeExternBase Class

Members


template <class Type>

static addClassID ( int class_id ) #

Registers the custom node class with a unique class ID.
Source code (C++)
// register the MyNode class
NodeExternBase::addClassID<MyNode>(1);

Arguments

  • int class_id - Unique class ID.

NodeExternBase * copy ( ) #

Copies the current custom node into the given one.

Return value

Pointer to the custom node.

BoundBox getBoundBox ( ) #

Returns the bounding box of the custom node.

Return value

The bounding box.

BoundSphere getBoundSphere ( ) #

Returns the bounding sphere of the custom node.

Return value

The bounding sphere.

int getClassID ( ) #

Returns a unique class ID.

Return value

Unique class ID.

Ptr<Node> getNode ( ) #

Returns the Node smart pointer.

Return value

Node smart pointer.

Ptr<NodeExtern> getNodeExtern ( ) #

Returns the NodeExtern instance that is created on loading the custom node.

Return value

NodeExtern smart pointer.

UNIGINE_BOUND_BOX getWorldBoundBox ( ) #

Returns the world bounding box of the custom node.

Return value

World bounding box.

UNIGINE_BOUND_SPHERE getWorldBoundSphere ( ) #

Returns the world bounding sphere of the custom node.

Return value

World bounding sphere.

int loadWorld ( const Ptr<Xml> & xml ) #

Loads a node state from the Xml.

Arguments

  • const Ptr<Xml> & xml - Xml smart pointer.

Return value

Returns 1 if the node state was successfully loaded; otherwise, 0 is returned.

void renderHandler ( ) #

Renders the handler for the custom user-defined node.

void renderVisualizer ( ) #

Renders the visualizer for the custom user-defined node.
Notice
You should enable the engine visualizer by the show_visualizer 1 console command.

int restoreState ( const Ptr<Stream> & stream ) #

Restores a node state from the stream.

Arguments

  • const Ptr<Stream> & stream - Stream smart pointer.

Return value

Returns 1 if the node state was successfully restored; otherwise, 0 is returned.

int saveState ( const Ptr<Stream> & stream ) #

Saves a node state into the stream.

Arguments

  • const Ptr<Stream> & stream - Stream smart pointer.

Return value

Returns 1 if the node state was successfully saved; otherwise, 0 is returned.

int saveWorld ( const Ptr<Xml> & xml ) #

Saves a node state into the Xml.

Arguments

  • const Ptr<Xml> & xml - Xml smart pointer.

Return value

Returns 1 if the node state was successfully saved; otherwise, 0 is returned.

void swap ( NodeExternBase * n ) #

Swaps two custom nodes.

Arguments

  • NodeExternBase * n - Pointer to the custom node to swap.

void updateEnabled ( ) #

Updates enabled.

void updatePosition ( ) #

Updates a position of the custom node.

void updateTransform ( ) #

Updates transformation matrix of the custom node.
Last update: 2020-07-31
Build: ()