CreateChunkFeature
|
![]() ![]() ![]() |
[in] unsigned int chunkID
|
Integer value specifying the numerical ID of the chunk.
|
|
[in] const char* name
|
Name of the data field in the chunk. Must not be NULL or empty.
|
|
[in] const char* category
|
Parent chunk category under which the chunk feature will be created. The category must be created by a prior call to CreateChunkCategory.
|
|
[in] unsigned short type
|
Type of the feature to be created. Can be one of the following values:
|
FEATURE_TYPE_UINTEGER - unsigned 32-bit integer feature, maps to a slider with value, minimum, maximum and increment
|
FEATURE_TYPE_INTEGER - signed 32-bit integer feature, maps to a slider with value, min, maximum, increment and physical unit
|
FEATURE_TYPE_INTEGER64 - signed 62-bit integer feature, maps to a slider with value, min, maximum, increment and physical unit
|
FEATURE_TYPE_FLOAT - floating point 32-bit feature, maps to a slider with value, minimum, maximum and physical unit
|
FEATURE_TYPE_STRING - string feature, maps to an edit box showing a string of text
|
FEATURE_TYPE_BOOLEAN - boolean feature, maps to a check box
|
FEATURE_TYPE_ENUMERATION - enumeration feature, maps to dropdown box with a list of selectable items
|
|
unsigned int length
|
[in] Integer value specifying the length (in bytes) of the data field associated with the chunk feature.
|
|
const char* description
|
[in] String containing the description of the feature.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Category does not exist
|
E_INVALIDARG
|
Wrong feature type
|
|
|
m_pCamera->CreateChunkFeature (0xa8dc50e0, "ChunkOffsetY", "ChunkDataControl", FEATURE_TYPE_INTEGER, 4, "Vertical offset");
|
|