GetFeatureFloatValue
Top  Previous  Next

Description

Returns the value of the specified floating point feature.

[C++]
int
 GetFeatureIntValue(const char* feature, double* pValue);


Parameters
[C/C++]

[in] const char* feature  
Name of the feature. Must be an existing feature of the floating point type.  
 
[out] double* pValue  
Pointer to a variable that receives the value of the feature.  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
E_NOINTERFACE  
Feature does not exist  
E_INVALIDARG  
Wrong feature type  
 

Example


This fragment of an MFC code uses a feature-write callback to request and display the name and value of a feature after it has just been modified by a client application:

bool CGigemuDlg::onFeatureRead(const char* feature)  
{  
   CString str; double fVal;  
   m_pCamera->GetFeatureFloatValue(feature, &fVal);  
   str.Format(_T("FeatureRead: %S - %7.2f"), feature, fVal);  
   SetDlgItemText(IDC_FEATURE_STATIC, str);  
   return false;  
}  
 

Remarks

This method is typically used as part of a feature-read callback in order to obtain the new value of a feature after it has been modified by an external client application. See SetWriteCallback for more details.