Semantics and Hints

Functions for adding semantics and hints.

Functions


int VRAddGuiHintBool(HMeta metaNode,
const char * propertyName,
const char * hintName,
char value
)

Adds a bool gui hint to the metanode. Used to provide hints about how to display the property in a gui.

Parameters
metaNode

handle to the metanode to add the hint to

propertyName

name of the property to add the hint to

hintName

the name of the hint to add

value

the value


int VRAddGuiHintDouble(HMeta metaNode,
const char * propertyName,
const char * hintName,
double value
)

Adds a double gui hint to the metanode. Used to provide hints about how to display the property in a gui.

Parameters
metaNode

handle to the metanode to add the hint to

propertyName

name of the property to add the hint to

hintName

the name of the hint to add

value

the value


int VRAddGuiHintInt(HMeta metaNode,
const char * propertyName,
const char * hintName,
int value
)

Adds an int gui hint to the metanode. Used to provide hints about how to display the property in a gui.

Parameters
metaNode

handle to the metanode to add the hint to

propertyName

name of the property to add the hint to

hintName

the name of the hint to add

value

the value


int VRAddGuiHintString(HMeta metaNode,
const char * propertyName,
const char * hintName,
const char * value
)

Adds a string gui hint to the metanode. Used to provide hints about how to display the property in a gui.

Parameters
metaNode

handle to the metanode to add the hint to

propertyName

name of the property to add the hint to

hintName

the name of the hint to add

value

the value


int VRAddSymbol(HMeta metaNode,
const char * symName,
int symValue
)

Adds a symbol to the metanode. Used to provide string representations of enum values for use with scripts and VRSetPropertyEnum etc.

Parameters
metaNode

handle to the metanode to add the symbol to

symName

name of the symbol to add

symValue

value of the symbol

Returns

0 on success


int VRAddTrait(HMeta metaNode,
const char * traitName
)

Adds a trait to a metanode (a description of its purpose).

Parameters
metaNode

handle to the metanode to modify

traitName

name of the trait to add

Returns

0 if trait was added successfully


int VRAddTraitEx(HMeta metaNode,
const char * traitName,
int primaryIdx
)

Adds a trait to a metanode (a description of its purpose).

Parameters
metaNode

handle to the metanode to modify

traitName

name of the trait to add

primaryIdx

index of the primary property that can be associated with the trait

Returns

0 if trait was added successfully

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API