#include <mvIMPACT_acquire.h>
Public Member Functions | |
| void | close (void) |
| Closes an opened device. | |
| Device (const Device &src) | |
| Copy constructor. | |
| UserData & | getUserData (void) |
| Returns a reference to a helper class to handle user specific data stored in the devices non-volatile memory(if available). | |
| bool | hasCapability (TDeviceCapability capability) const |
| Checks whether this device has a certain capability. | |
| HDEV | hDev (void) const |
| A unique identifier for this device. | |
| HDRV | hDrv (void) const |
| A unique identifier for the functionality offered by this device. | |
| bool | isOpen (void) const |
| Returns the current initialisation status in this process. | |
| void | open (void) |
| Opens a device. | |
| Device & | operator= (const Device &rhs) |
| Allows assignments of mvIMPACT::acquire::Device objects. | |
| int | setID (int newID) const |
| Assigns a new ID to this device. | |
| int | updateFirmware (void) const |
| Updates the firmware of the device. | |
| ~Device (void) | |
| Class destructor. | |
Public Attributes | |
| PropertyIDeviceCapability | capabilities |
| PropertyS | customDataDirectory |
| A string property (read-only once the device is open) containing a path to a custom directory for the location of camera description files, etc. | |
| PropertyIDeviceClass | deviceClass |
| An enumerated integer property (read-only) defining the device class this device belongs to. | |
| PropertyI | deviceID |
| A integer property (read-only) containing the device ID associated with this device. | |
| PropertyS | family |
| A string property (read-only) containing the family name of this device. | |
| PropertyI | firmwareVersion |
| An integer property (read-only) containing the firmware version of this device. | |
| PropertyIHWUpdateResult | HWUpdateResult |
| An enumerated integer property (read-only) defining user executed hardware update results. | |
| PropertyIDeviceInterfaceLayout | interfaceLayout |
| An enumerated integer property which can be used to define which interface layout shall be used when the device is opened. | |
| PropertyIDeviceLoadSettings | loadSettings |
| An enumerated integer property which can be used to define which previously stored setting to load when the device is opened. | |
| PropertyS | product |
| A string property (read-only) containing the product name of this device. | |
| PropertyS | serial |
| A string property (read-only) containing the serial number of this device. | |
| PropertyIDeviceState | state |
| An enumerated integer property (read-only) containing the current state of this device. | |
Instances of it can only be created by instances of the mvIMPACT::acquire::DeviceManager class as only the mvIMPACT::acquire::DeviceManager has the precise knowledge to do that anyway. As a result from this fact pointers to instances of mvIMPACT::acquire::Device can be obtained via a mvIMPACT::acquire::DeviceManager object only.
A valid pointer to a mvIMPACT::acquire::Device object is needed to construct most of the other objects available in this interface.
Almost every object requiering a valid pointer to a mvIMPACT::acquire::Device object will need to device in an initialised state as the properties provided e.g. by the class mvIMPACT::acquire::CameraSettingsBase will be constructed when the device is initialised. To initialise a device this class provides the function Device::open. However every object which needs an initialised device to be constructed successfully will try to open the device when it hasn't been opened before, so the user does not need to call this function explicitly.
IMPORTANT: Whenever the last instance to a DeviceManager object get's destroyed within the program every remaining device will be closed automatically! Thus every instance to mvIMPACT::acquire::Device objects or objects created with a pointer to a mvIMPACT::acquire::Device object will become invalid automatically. Therefore the user has to make sure there is always at least one instance to a mvIMPACT::acquire::DeviceManager object within the current process!
Copy constructor.
Creates a new object from an existing device object. Keep in mind that this new object will provide access to the very same hardware and therefore you might as well use the original reference returned from the mvIMPACT::acquire::DeviceManager. This constructor is only provided for internal reference counting to guarantee correct operation of the objects of this class under all platforms and languages.
| ~Device | ( | void | ) |
Class destructor.
| void close | ( | void | ) |
Closes an opened device.
This function closes a device previously opened again.
| UserData& getUserData | ( | void | ) |
Returns a reference to a helper class to handle user specific data stored in the devices non-volatile memory(if available).
| bool hasCapability | ( | TDeviceCapability | capability | ) | const |
Checks whether this device has a certain capability.
| HDEV hDev | ( | void | ) | const |
A unique identifier for this device.
| HDRV hDrv | ( | void | ) | const |
A unique identifier for the functionality offered by this device.
| bool isOpen | ( | void | ) | const |
Returns the current initialisation status in this process.
If this function returns true, this only states, that the current process has not opened the device in question already. A call to mvIMPACT::acquire::Device::open() can still fail because of some other process using this device.
| void open | ( | void | ) |
Opens a device.
This function will try to open the device represented by this instance of mvIMPACT::acquire::Device. If this fails for any reason an exception will be thrown. The exception object will contain additional information about the reason for the error.
Calling this function is not really necessary, as each object for accessing other settings of the device or even the function interface need the device to be opened in order to be constructed. Therefore all the constructors for these objects check if the device is open by calling mvIMPACT::acquire::Device::isOpen and open the Device if necessary.
Allows assignments of mvIMPACT::acquire::Device objects.
| int setID | ( | int | newID | ) | const |
Assigns a new ID to this device.
To allow any application to distinguish between different devices of the same type the user can assign an unique ID to each device using this function. This ID currently is limited to values between 0 and 250 and is stored in the devices internal memory. This ID is NOT volatile. It will remain stored even if the device is unplugged.
| int updateFirmware | ( | void | ) | const |
Updates the firmware of the device.
calling this function will cause the driver to download the firmware version compiled into the driver library into the physical devices EEPROM.
A string property (read-only once the device is open) containing a path to a custom directory for the location of camera description files, etc.
When a custom path is assigned to this property this path will be used to locate certain driver specific files and folders. Under this folder the following structure must be created:
<customDataDirectory> |- CameraFiles // this folder will be searched by frame grabbers for camera description files |- GenICam // this folder will be searched by GenICam compliant devices, that refer to a local GenICam™ description file
If this property is left empty
%ALL USERS%\Documents\MATRIX VISION\mvIMPACT acquire
/etc/matrix-vision/mvimpact-acquire
An enumerated integer property (read-only) defining the device class this device belongs to.
A integer property (read-only) containing the device ID associated with this device.
A device ID can be used to identify a certain device in the system. The ID is an 8 bit unsigned integer value stored in the devices EEPROM. In order to allow the detection of a device distinct detection of a device via its device ID the user has to make sure, that two devices belonging to the same product family never share the same ID.
An integer property (read-only) containing the firmware version of this device.
An enumerated integer property (read-only) defining user executed hardware update results.
This property e.g. might contain the result of a user executed firmware update. Valid values for this property are defined by the enumeration mvIMPACT::acquire::THWUpdateResult.
An enumerated integer property which can be used to define which interface layout shall be used when the device is opened.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TDeviceInterfaceLayout.
This feature is available for every device. A device not offering this feature requires a driver update. Always check for the availability of this feature by calling mvIMPACT::acquire::Component::isValid.
Show C++ code
An enumerated integer property which can be used to define which previously stored setting to load when the device is opened.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TDeviceLoadSettings.
An enumerated integer property (read-only) containing the current state of this device.
The state e.g. tells the user if an USB device is currently unplugged or not. Valid values for this property are defined by the enumeration mvIMPACT::acquire::TDeviceState.
Generated on Fri Jun 5 14:26:01 2009