Functions and classes for controlling the camera. More...
Functions | |
bool | ConfigureCameraStreams (CameraPtr pCam, StreamTransmitFlags &streamTransmitFlags) |
Configures the camera streams. | |
bool | GetFloatValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, float &nodeVal) |
Gets a float value from a specified node. | |
bool | GetMaxFloatValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, float &nodeVal) |
Gets the max float value for a specified node. | |
bool | EnableAutoExposure (CameraPtr pCam) |
Enables automatic exposure. | |
bool | GetExposureTime (CameraPtr pCam, double &exposureTime) |
Retrieves the current exposure time. | |
bool | GetBooleanValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, bool &nodeVal) |
Gets a boolean value from a specified node. | |
bool | GetIntValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, int64_t &nodeVal) |
Gets an integer value from a specified node. | |
bool | GetMaxIntValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, int64_t &nodeVal) |
Gets the max integer value for a specified node. | |
bool | GetEnumValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, int64_t &enumVal) |
Gets an enumerated (int) value from a specified node. | |
bool | GetEnumAsStringValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, int64_t &nodeValAsInt, gcstring &nodeValAsStr) |
Gets an enumerated string value from a specified node. | |
bool | GetStringValueFromNode (INodeMap &nodeMap, const gcstring &nodeName, string &nodeVal) |
Gets a string value from a specified node. | |
bool | SetBooleanValueToNode (INodeMap &nodeMap, const gcstring &nodeName, bool isChecked) |
Sets a boolean value to a specified node. | |
bool | SetIntValueToNode (INodeMap &nodeMap, const gcstring &nodeName, int64_t nodeVal) |
Sets an integer value to a specified node. | |
bool | SetFloatValueToNode (INodeMap &nodeMap, const gcstring &nodeName, float nodeVal) |
Sets a double value to a specified node. | |
bool | SetEnumValueToNode (INodeMap &nodeMap, const gcstring &nodeName, const int64_t nodeVal, NodeMapType nodeMapType=NodeMapType_Camera) |
Sets an enumerated value to a specified node. | |
bool | SetEnumAsStringValueToNode (INodeMap &nodeMap, const gcstring &nodeName, gcstring nodeEnumValAsStr) |
Sets an enumerated string value to a specified node. | |
bool | SetStringValueToNode (INodeMap &nodeMap, const gcstring &nodeName, string &nodeVal) |
Sets a string value to a specified node. | |
bool | ConfigureGVCPHeartbeat (CameraPtr pCam, bool doEnable) |
Configures the GVCP heartbeat setting. | |
bool | DisableGVCPHeartbeat (CameraPtr pCam) |
Disables the GVCP heartbeat. | |
bool | PrintDeviceInfo (INodeMap &nodeMap) |
Prints device information using a specific node map. | |
bool | ResetGVCPHeartbeat () |
Resets the GVCP heartbeat to its default state. | |
bool | SetExposureTime (CameraPtr pCam, double exposureTime) |
Sets the exposure time. | |
bool | EnableAutoGain (CameraPtr pCam) |
Enables automatic gain control. | |
bool | GetGainValue (CameraPtr pCam, double &gainValue) |
Retrieves the current gain value. | |
bool | SetGainValue (CameraPtr pCam, double gainValue) |
Sets the gain value. | |
bool | SetAutoWhiteBalance (CameraPtr pCam, double redValue, double blueValue) |
Sets the Automatic White Balance (AWB) using specified red and blue values. | |
bool | EnableAutoWhiteBalance (CameraPtr pCam) |
Enables Automatic White Balance (AWB). | |
bool | PrintDeviceInfo (CameraPtr pCam) |
Prints device information using a specific node map. | |
Functions and classes for controlling the camera.
bool ConfigureCameraStreams | ( | CameraPtr | pCam, |
StreamTransmitFlags & | streamTransmitFlags | ||
) |
Configures the camera streams.
doSetTransmittedStreams | Flag to set stream enable variable. |
bool ConfigureGVCPHeartbeat | ( | CameraPtr | pCam, |
bool | doEnable | ||
) |
Configures the GVCP heartbeat setting.
doEnable | Enable or disable GVCP heartbeat. |
bool DisableGVCPHeartbeat | ( | CameraPtr | pCam | ) |
Disables the GVCP heartbeat.
bool EnableAutoExposure | ( | CameraPtr | pCam | ) |
Enables automatic exposure.
bool EnableAutoGain | ( | CameraPtr | pCam | ) |
Enables automatic gain control.
bool EnableAutoWhiteBalance | ( | CameraPtr | pCam | ) |
Enables Automatic White Balance (AWB).
bool GetBooleanValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
bool & | nodeVal | ||
) |
Gets a boolean value from a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved value. |
bool GetEnumAsStringValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
int64_t & | nodeValAsInt, | ||
gcstring & | nodeValAsStr | ||
) |
Gets an enumerated string value from a specified node.
nodeName | Node name. |
nodeValAsInt | Reference to store the integer value of the node. |
nodeValAsStr | Reference to store the string value of the node. |
bool GetEnumValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
int64_t & | enumVal | ||
) |
Gets an enumerated (int) value from a specified node.
nodeName | Node name. |
enumVal | Reference to store the retrieved value. |
bool GetExposureTime | ( | CameraPtr | pCam, |
double & | exposureTime | ||
) |
Retrieves the current exposure time.
exposureTime | Reference to store the exposure time. |
bool GetFloatValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
float & | nodeVal | ||
) |
Gets a float value from a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved value. |
bool GetGainValue | ( | CameraPtr | pCam, |
double & | gainValue | ||
) |
Retrieves the current gain value.
gainValue | Reference to store the gain value. |
bool GetIntValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
int64_t & | nodeVal | ||
) |
Gets an integer value from a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved value. |
bool GetMaxFloatValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
float & | nodeVal | ||
) |
Gets the max float value for a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved max value. |
bool GetMaxIntValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
int64_t & | nodeVal | ||
) |
Gets the max integer value for a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved max value. |
bool GetStringValueFromNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
string & | nodeVal | ||
) |
Gets a string value from a specified node.
nodeName | Node name. |
nodeVal | Reference to store the retrieved value. |
bool PrintDeviceInfo | ( | CameraPtr | pCam | ) |
Prints device information using a specific node map.
pCam | Reference to the camera. |
bool PrintDeviceInfo | ( | INodeMap & | nodeMap | ) |
Prints device information using a specific node map.
nodeMap | Reference to the node map. |
bool ResetGVCPHeartbeat | ( | ) |
Resets the GVCP heartbeat to its default state.
bool SetAutoWhiteBalance | ( | CameraPtr | pCam, |
double | redValue, | ||
double | blueValue | ||
) |
Sets the Automatic White Balance (AWB) using specified red and blue values.
redValue | The red balance value to set. |
blueValue | The blue balance value to set. |
bool SetBooleanValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
bool | isChecked | ||
) |
Sets a boolean value to a specified node.
nodeName | Node name. |
isChecked | Value to set. |
bool SetEnumAsStringValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
gcstring | nodeEnumValAsStr | ||
) |
Sets an enumerated string value to a specified node.
nodeName | Node name. |
nodeEnumValAsStr | String value to set. |
bool SetEnumValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
const int64_t | nodeVal, | ||
NodeMapType | nodeMapType = NodeMapType_Camera |
||
) |
Sets an enumerated value to a specified node.
nodeMap | Reference to the node map. |
nodeName | Node name. |
nodeVal | Value to set. |
nodeMapType | Type of the node map. |
bool SetExposureTime | ( | CameraPtr | pCam, |
double | exposureTime | ||
) |
Sets the exposure time.
exposureTime | Exposure time to set. |
bool SetFloatValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
float | nodeVal | ||
) |
Sets a double value to a specified node.
nodeName | Node name. |
nodeVal | Value to set. |
bool SetGainValue | ( | CameraPtr | pCam, |
double | gainValue | ||
) |
Sets the gain value.
gainValue | Gain value to set. |
bool SetIntValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
int64_t | nodeVal | ||
) |
Sets an integer value to a specified node.
nodeName | Node name. |
nodeVal | Value to set. |
bool SetStringValueToNode | ( | INodeMap & | nodeMap, |
const gcstring & | nodeName, | ||
string & | nodeVal | ||
) |
Sets a string value to a specified node.
nodeName | Node name. |
nodeVal | Value to set. |