This page has been translated automatically.
Programming
Fundamentials
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
Bounds-Related Classes
Containers
Controls-Related Classes
Core Library
Engine-Related Classes
GUI-Related Classes
Node-Related Classes
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
Utility Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

NodeExternBase Class

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

NodeExternBase Class

Members


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.

Node getNode ()

Returns the Node smart pointer.

Return value

Node smart pointer.

void renderVisualizer ()

Renders the visualizer.
Notice
You should enable the engine visualizer by the show_visualizer 1 console command.

void updatePosition ()

Updates a position of the external node.

void renderHandler ()

Renders the handler for the external node.

int saveWorld (Xml xml)

Saves a node state into the Xml.

Arguments

  • Xml xml - Xml smart pointer.

Return value

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

int restoreState (Stream stream)

Restores a node state from the stream.

Arguments

  • Stream stream - Stream smart pointer.

Return value

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

int saveState (Stream stream)

Saves a node state into the stream.

Arguments

  • Stream stream - Stream smart pointer.

Return value

Returns 1 if the node state was successfully saved; 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.

int getClassID ()

Returns a unique class ID.

Return value

Unique class ID.

void updateEnabled ()

Updates enabled.

NodeExtern getNodeExtern ()

Returns the NodeExtern smart pointer.

Return value

NodeExtern smart pointer.

int loadWorld (Xml xml)

Loads a node state from the Xml.

Arguments

  • Xml xml - Xml smart pointer.

Return value

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

void updateTransform ()

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