#include <SpinnakerDirectShow.h>
Public Member Functions | |
Spinnaker Interface and Camera Functions | |
These functions deal with querying/setting generic interface and camera info. | |
| virtual HRESULT | GetNumCameras (unsigned int *numCameras)=0 |
| Retrieves the number of cameras available for this Spinnaker DirectShow interface. | |
| virtual HRESULT | GetSelectedCameraIndex (unsigned int *selectedIndex)=0 |
| Retrieves an integer index to the currently selected camera. | |
| virtual HRESULT | SetSelectedCameraIndex (unsigned int index, bool needsRelease=true)=0 |
| Sets the currently selected camera to the index specified. | |
| virtual HRESULT | GetCameraInfo (unsigned int index, char *model, char *type, char *serial, size_t bufferSize)=0 |
| Retrieves general information about the camera at the specified index. | |
| virtual HRESULT | IsStreaming (bool *isStreaming)=0 |
| Checks if the selected camera is currently streaming. | |
| virtual HRESULT | BeginAcquisition ()=0 |
| Starts the image acquisition engine for the currently selected camera. | |
| virtual HRESULT | EndAcquisition ()=0 |
| Stops the image acquisition engine for the currently selected camera. | |
Spinnaker GenAPI Generic Functions | |
These functions deal with Spinnaker GenAPI NodeMap and Node Accesses for setting camera properties. | |
| virtual HRESULT | NodeMapGetNumNodes (size_t *numNodes)=0 |
| Retrieves the number of nodes available in the node map for the currently selected camera. | |
| virtual HRESULT | NodeMapGetNodeAtIndex (size_t index, char *nodeName, size_t bufferSize)=0 |
| Retrieves the string representation of the node at the specified index. | |
| virtual HRESULT | NodeIsImplemented (const char *nodeName, bool *isImplemented)=0 |
| Checks if a node is implemented. | |
| virtual HRESULT | NodeIsAvailable (const char *nodeName, bool *isAvailable)=0 |
| Checks if a node is available. | |
| virtual HRESULT | NodeIsReadable (const char *nodeName, bool *isReadable)=0 |
| Checks if a node is readable. | |
| virtual HRESULT | NodeIsWritable (const char *nodeName, bool *isWritable)=0 |
| Checks if a node is writable. | |
| virtual HRESULT | NodeGetType (const char *nodeName, char *typeName, size_t bufferSize)=0 |
| Gets the type of the node. | |
| virtual HRESULT | NodeToString (const char *nodeName, char *valueAsString, size_t bufferSize)=0 |
| Gets content of the node as string. | |
| virtual HRESULT | NodeGetDisplayName (const char *nodeName, char *displayName, size_t bufferSize)=0 |
| Gets a name string for display. | |
Spinnaker GenAPI Integer Node Functions | |
These functions deal with Spinnaker GenAPI Integer Node Accesses | |
| virtual HRESULT | IntegerGetValue (const char *nodeName, int64_t *value)=0 |
| Gets integer node value for the specified feature. | |
| virtual HRESULT | IntegerSetValue (const char *nodeName, int64_t value)=0 |
| Sets integer node value for the specified feature. | |
| virtual HRESULT | IntegerGetMax (const char *nodeName, int64_t *maxValue)=0 |
| Gets maximum integer value allowed for the specified feature. | |
| virtual HRESULT | IntegerGetMin (const char *nodeName, int64_t *minValue)=0 |
| Gets minimum integer value allowed for the specified feature. | |
| virtual HRESULT | IntegerGetIncMode (const char *nodeName, Spinnaker::GenApi::EIncMode *incMode)=0 |
| Gets integer increment mode for the specified feature. | |
| virtual HRESULT | IntegerGetInc (const char *nodeName, int64_t *increment)=0 |
| Gets integer step increment for the specified feature. | |
Spinnaker GenAPI Float Node Functions | |
These functions deal with Spinnaker GenAPI Float Node Accesses | |
| virtual HRESULT | FloatGetValue (const char *nodeName, double *value)=0 |
| Gets float node value for the specified feature. | |
| virtual HRESULT | FloatSetValue (const char *nodeName, double value)=0 |
| Sets float node value for the specified feature. | |
| virtual HRESULT | FloatGetMax (const char *nodeName, double *floatMax)=0 |
| Gets maximum float value allowed for the specified feature. | |
| virtual HRESULT | FloatGetMin (const char *nodeName, double *floatMin)=0 |
| Gets minimum float value allowed for the specified feature. | |
| virtual HRESULT | FloatGetIncMode (const char *nodeName, Spinnaker::GenApi::EIncMode *incMode)=0 |
| Gets float increment mode for the specified feature. | |
| virtual HRESULT | FloatGetInc (const char *nodeName, double *increment)=0 |
| Gets float step increment for the specified feature. | |
Spinnaker GenAPI Boolean Node Functions | |
These functions deal with Spinnaker GenAPI Boolean Node Accesses | |
| virtual HRESULT | BooleanGetValue (const char *nodeName, bool *value)=0 |
| Gets boolean node value for the specified feature. | |
| virtual HRESULT | BooleanSetValue (const char *nodeName, bool value)=0 |
| Sets boolean node value for the specified feature. | |
Spinnaker GenAPI String Node Functions | |
These functions deal with Spinnaker GenAPI String Node Accesses | |
| virtual HRESULT | StringGetValue (const char *nodeName, char *value, size_t bufferSize)=0 |
| Gets string node value for the specified feature. | |
| virtual HRESULT | StringSetValue (const char *nodeName, const char *value)=0 |
| Sets string node value for the specified feature. | |
Spinnaker GenAPI Enumeration Node Functions | |
These functions deal with Spinnaker GenAPI Enumeration and EnumeratEntry Node Accesses | |
| virtual HRESULT | EnumerationGetEntry (const char *nodeName, char *value, size_t bufferSize)=0 |
| Gets enumeration entry string for the specified enumeration feature. | |
| virtual HRESULT | EnumerationSetEntry (const char *nodeName, const char *value)=0 |
| Sets enumeration entry for the specified enumeration feature. | |
| virtual HRESULT | EnumerationEntryExists (const char *enumerationName, const char *enumerationEntryName, bool *entryExist)=0 |
| Checks if an enumeration entry exists for the specified enumeration feature. | |
| virtual HRESULT | EnumerationGetNumEntries (const char *enumerationName, size_t *numEntries)=0 |
| Retrieves the number of enumeration entry nodes available for the specified enumeration feature. | |
| virtual HRESULT | EnumerationGetEntryAtIndex (const char *enumerationName, unsigned int entryIndex, char *enumerationEntryName, size_t bufferSize)=0 |
| Gets enumeration entry string for the specified enumeration feature at the specified index. | |
Spinnaker GenAPI Command Node Functions | |
These functions deal with Spinnaker GenAPI Command Node Accesses | |
| virtual HRESULT | CommandExecute (const char *nodeName)=0 |
| Executes the command for the specified feature. | |
|
pure virtual |
Starts the image acquisition engine for the currently selected camera.
Nothing occurs if the camera is already streaming.
|
pure virtual |
Gets boolean node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value read from the device |
|
pure virtual |
Sets boolean node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value to set to device |
|
pure virtual |
Executes the command for the specified feature.
| nodeName | GenICam device feature name |
|
pure virtual |
Stops the image acquisition engine for the currently selected camera.
Nothing occurs if there were no prior call to BeginAcquisition(). Note that EndAcquisition() needs to be called before selecting a new camera.
|
pure virtual |
Checks if an enumeration entry exists for the specified enumeration feature.
| enumerationName | GenICam device enumeration feature name |
| enumerationEntryName | GenICam device enumeration entry name to check |
| entryExist | Flag indicating whether the specified entry node exists for the enumeration node |
|
pure virtual |
Gets enumeration entry string for the specified enumeration feature.
| nodeName | GenICam device feature name |
| value | The enumeration entry string read from the device |
| bufferSize | Size of the provided value buffer in bytes |
|
pure virtual |
Gets enumeration entry string for the specified enumeration feature at the specified index.
| enumerationName | GenICam device enumeration feature name |
| entryIndex | Enumeration entry index |
| enumerationEntryName | GenICam device enumeration entry name at specified entryIndex to be populated |
| bufferSize | Size of the provided enumerationEntryName buffer in bytes |
|
pure virtual |
Retrieves the number of enumeration entry nodes available for the specified enumeration feature.
| enumerationName | GenICam device enumeration feature name |
| numEntries | Number of nodes available for the specified enumeration feature |
|
pure virtual |
Sets enumeration entry for the specified enumeration feature.
| nodeName | GenICam device feature name |
| value | The enumeration entry string to set to device |
|
pure virtual |
Gets float step increment for the specified feature.
| nodeName | GenICam device feature name |
| increment | The step increment value read from the device |
|
pure virtual |
Gets float increment mode for the specified feature.
| nodeName | GenICam device feature name |
| incMode | Spinnaker GenAPI increment mode for the specified feature |
|
pure virtual |
Gets maximum float value allowed for the specified feature.
| nodeName | GenICam device feature name |
| floatMax | The maximum allowed value read from the device |
|
pure virtual |
Gets minimum float value allowed for the specified feature.
| nodeName | GenICam device feature name |
| floatMin | The minimum allowed value read from the device |
|
pure virtual |
Gets float node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value read from the device |
|
pure virtual |
Sets float node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value to set to device |
|
pure virtual |
Retrieves general information about the camera at the specified index.
| index | The index at which to retrieve the camera information |
| model | Model description of the camera |
| type | Transport layer description of the camera |
| serial | Serial number of the camera |
| bufferSize | Size of the individual provided model, sensor, serial buffer in bytes |
|
pure virtual |
Retrieves the number of cameras available for this Spinnaker DirectShow interface.
| numCameras | An integer that represents the number of cameras discovered |
|
pure virtual |
Retrieves an integer index to the currently selected camera.
| selectedIndex | An integer that represents the index of the selected camera |
|
pure virtual |
Gets integer step increment for the specified feature.
| nodeName | GenICam device feature name |
| increment | The step increment value read from the device |
|
pure virtual |
Gets integer increment mode for the specified feature.
| nodeName | GenICam device feature name |
| incMode | Spinnaker GenAPI increment mode for the specified feature |
|
pure virtual |
Gets maximum integer value allowed for the specified feature.
| nodeName | GenICam device feature name |
| maxValue | The maximum allowed value read from the device |
|
pure virtual |
Gets minimum integer value allowed for the specified feature.
| nodeName | GenICam device feature name |
| minValue | The minimum allowed value read from the device |
|
pure virtual |
Gets integer node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value read from the device |
|
pure virtual |
Sets integer node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value to set to device |
|
pure virtual |
Checks if the selected camera is currently streaming.
| isStreaming | Flag indicating whether camera is streaming or not |
|
pure virtual |
Gets a name string for display.
| nodeName | GenICam device feature name |
| displayName | Display name of the device feature |
| bufferSize | Size of the provided displayName buffer in bytes |
|
pure virtual |
Gets the type of the node.
| nodeName | GenICam device feature name |
| typeName | The type of the node. Available type names are: Integer, Float, Boolean, String, Enumeration, Entry, Command and Other |
| bufferSize | Size of the provided typeName buffer in bytes |
|
pure virtual |
Checks if a node is available.
| nodeName | GenICam device feature name |
| isAvailable | Flag indicating whether node is available or not |
|
pure virtual |
Checks if a node is implemented.
| nodeName | GenICam device feature name |
| isImplemented | Flag indicating whether node is implemented or not |
|
pure virtual |
Checks if a node is readable.
| nodeName | GenICam device feature name |
| isReadable | Flag indicating whether node is readable or not |
|
pure virtual |
Checks if a node is writable.
| nodeName | GenICam device feature name |
| isWritable | Flag indicating whether node is writable or not |
|
pure virtual |
Retrieves the string representation of the node at the specified index.
| index | Node index in the NodeMap |
| nodeName | GenICam node name at specified index to be populated |
| bufferSize | Size of the provided nodeName buffer in bytes |
|
pure virtual |
Retrieves the number of nodes available in the node map for the currently selected camera.
| numNodes | Number of nodes available for the currently selected device |
|
pure virtual |
Gets content of the node as string.
| nodeName | GenICam device feature name |
| valueAsString | String representation of the node value |
| bufferSize | Size of the provided valueAsString buffer in bytes |
|
pure virtual |
Sets the currently selected camera to the index specified.
This function will do nothing if the selected index is out of range.
| index | The index at which to retrieve the camera object |
| needsRelease | Specifies whether to release the previously selected camera object |
|
pure virtual |
Gets string node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value read from the device |
| bufferSize | Size of the provided value buffer in bytes |
|
pure virtual |
Sets string node value for the specified feature.
| nodeName | GenICam device feature name |
| value | The value to set to device |