Impact Acquire SDK C++
|
A base class to describe a camera (Device specific interface layout only) connected to a frame grabber (deprecated. More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
int | copyDescription (const std::string &newName) const |
Creates a new camera description list as a copy of the current one. | |
int | exportDescription (void) const |
Stores the current camera description on disk. | |
std::string | getClassName (void) const |
Returns the class this description is belonging to. | |
HOBJ | hObj (void) const |
Returns a unique identifier for the component collection referenced by this object. | |
int | importDescription (void) const |
Updates a camera description with the data stored in a previous session or with the original default data. | |
const ComponentCollection & | restoreDefault (void) const |
Restores the default for every component of this collection. | |
Public Attributes | |
PropertyI | aoiHeight |
An integer property defining the number of active lines to capture from the camera. | |
PropertyI | aoiStartX |
An integer property defining the X-offset in pixels to the first active pixel to capture. | |
PropertyI | aoiStartY |
An integer property defining the Y-offset in lines to the first active line to capture. | |
PropertyI | aoiWidth |
An integer property defining the number of active pixels to capture per line. | |
PropertyICameraInterlacedType | interlacedType |
An enumerated integer property defining how the camera transmits image data. | |
PropertyS | name |
A string property read-only containing the name of this camera description list. | |
PropertyICameraOutput | videoOutput |
An enumerated integer property defining the type of video outputs this camera offers. | |
Protected Member Functions | |
CameraDescriptionBase (HDRV hDrv, HLIST hList) | |
Protected Attributes | |
HOBJ | m_hRoot |
A base class to describe a camera (Device specific interface layout only) connected to a frame grabber (deprecated.
A camera description object provides an abstract way to prepare the capture device (e.g. a frame grabber) for the connected imaging device (e.g. a camera).
By selecting one of the available camera descriptions the underlying hardware will use the information provided in the camera description to prepare the image capture. Therefore it is crucial to select a camera description that matches the connected video signal as close as possible. If no description for the camera connected to a frame grabber is available a new description should be generated from one of the existing ones. This can be achieved by calling the function mvIMPACT::acquire::CameraDescriptionBase::copyDescription. A new camera description with the name that is passed to the function will be created.
This new description will be an exact copy of the one the copy function has been executed for. After creation this description can be selected e.g. by setting the property mvIMPACT::acquire::CameraSettingsFrameGrabber::type to the name of the new description.
Example: For a standard description with the name 'MyCam' the full name would be 'Standard_MyCam'.
|
inlineexplicitprotected |
|
inline |
Creates a new camera description list as a copy of the current one.
This function can be used to create a new camera description list. It will create a deep copy of the properties referenced by this camera description and will append the new description to the list of camera descriptions.
[in] | newName | The name for the newly created camera description. This name MUST NOT match a description already existing. |
|
inline |
Stores the current camera description on disk.
This function can be used to store the current settings of a camera description permanently so that the next time the driver is initialized these settings are restored.
When exporting a camera description a file in XML format will be written to disk.
PUBLIC%/Documents/Balluff/ImpactAcquire/CameraFiles
(or MVIMPACT_ACQUIRE_DATA_DIR%/CameraFiles
, which will point to the same folder)/opt/ImpactAcquire/data/camerafiles
This behaviour can be modified by writing the property mvIMPACT::acquire::Device::customDataDirectory before initialising the device.
|
inline |
Returns the class this description is belonging to.
|
inlineinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mvIMPACT::acquire::ComponentList.
|
inline |
Updates a camera description with the data stored in a previous session or with the original default data.
When importing a camera description the device driver will try to retrieve the parameters needed from a XML file.
PUBLIC%/Documents/Balluff/ImpactAcquire/CameraFiles
(or MVIMPACT_ACQUIRE_DATA_DIR%/CameraFiles
, which will point to the same folder)/opt/ImpactAcquire/data/camerafiles
This behaviour can be modified by writing the property mvIMPACT::acquire::Device::customDataDirectory before initialising the device. To get access to an XML description file within the application, these file must be copied to this directory BEFORE the device is initialized. During the initialisation process the device driver will process every file located under this location and will add them to the internal list of descriptions. Every camera located during this process and also descriptions created later on during the program operation can be selected via the property mvIMPACT::acquire::CameraSettingsFrameGrabber::type.
To restore the default values valid during the driver was initialized the function mvIMPACT::acquire::ComponentCollection::restoreDefault can be used as well.
|
inlineinherited |
Restores the default for every component of this collection.
Calling this function will restore the default value for every component belonging to this collection.
PropertyI aoiHeight |
An integer property defining the number of active lines to capture from the camera.
PropertyI aoiStartX |
An integer property defining the X-offset in pixels to the first active pixel to capture.
PropertyI aoiStartY |
An integer property defining the Y-offset in lines to the first active line to capture.
PropertyI aoiWidth |
An integer property defining the number of active pixels to capture per line.
PropertyICameraInterlacedType interlacedType |
An enumerated integer property defining how the camera transmits image data.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TCameraInterlacedType.
|
protectedinherited |
PropertyS name |
A string property read-only containing the name of this camera description list.
PropertyICameraOutput videoOutput |
An enumerated integer property defining the type of video outputs this camera offers.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TCameraOutput.