This page has been translated automatically.
Programming
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::NodeExternBase Class

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

The base class, from which the custom user-defined nodes are inherited.

NodeExternBase Class

Members


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 smart pointer.

Return value

NodeExtern smart pointer.

int isOwner()

Returns the owner flag of the pointer. If the pointer is owner, on its deletion the object also will be deleted.

Return value

The owner flag.

void grab()

Sets the owner flag to 1 for the node pointer. The node should not be handled by the class after this function is called.

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 release()

Sets the owner flag to 0 for the node pointer. The node should be handled by the class after this function is called.

void renderHandler()

Renders the handler for the external node.

void renderVisualizer()

Renders the visualizer.
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 updateEnabled()

Updates enabled.

void updatePosition()

Updates a position of the external node.

void updateTransform()

Updates transformation matrix of the external node.
Last update: 2017-07-03
Build: ()