SetFeatureRange
|
|
[in] const char* feature
|
Name of the feature to assign the attributes to. Must be an existing feature of the integer or floating point type.
|
|
[in] float min
|
Value of the feature's minimum.
|
|
[in] float max
|
Value of the feature's maximum.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Feature does not exist
|
E_INVALIDARG
|
Wrong feature type or value out of range
|
|
|
static CGevCamera* m_pCamera;
|
m_pCamera = createCamera();
|
|
m_pCamera->CreateFeature(FEATURE_TYPE_FLOAT, "TestFeatureFloat", "Root", FEATURE_ACCESS_RW);
|
m_pCamera->SetFeatureRange("TestFeatureFloat", 0, 1000);
|
m_pCamera->SetFeatureFloatValue("TestFeatureFloat", 3.1415926);
|
|