Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Runtime Update Types

Functions

DLLEXPORT UpdateType addUpdateType (QString _name, bool _resetNeeded=true)
 Adds a updateType and returns the id for the new type. More...
 
DLLEXPORT UpdateType updateType (QString _name)
 Given an UpdateType Identifier string this function will return the id of the UpdateType. More...
 
DLLEXPORT QString updateTypeName (UpdateType _id)
 Get the name of a type with given id. More...
 
DLLEXPORT size_t updateTypeCount ()
 Get the number of registered types. More...
 

Detailed Description

Use these functions to add custom update types at runtime.

Function Documentation

DLLEXPORT UpdateType addUpdateType ( QString  _name,
bool  _resetNeeded = true 
)

Adds a updateType and returns the id for the new type.

Adds a UpdateType and returns the id for the new type

Parameters
_nameInternal name for the new UpdateType
_resetNeededIf a sceneGraph reset is needed for this update

Definition at line 236 of file UpdateType.cc.

DLLEXPORT UpdateType updateType ( QString  _name)

Given an UpdateType Identifier string this function will return the id of the UpdateType.

Given an UpdateType Identifier string this function will return the id of the UpdateType.

Definition at line 259 of file UpdateType.cc.

DLLEXPORT size_t updateTypeCount ( )

Get the number of registered types.

This function will return the number of types registered to the core. You can use it to iterate over all types.

Get the number of registered types.

Definition at line 289 of file UpdateType.cc.

DLLEXPORT QString updateTypeName ( UpdateType  _id)

Get the name of a type with given id.

The ids are organized in a bit field. So use either the macro for getting the type id or use the id directly (they have to be power of 2! ... Bit field)

Definition at line 274 of file UpdateType.cc.