Impact Acquire SDK .NET
|
A base class to describe a camera(Device specific interface layout only) connected to a frame grabber. More...
Public Member Functions | |
TDMR_ERROR | copyDescription (String newName) |
Creates a new camera description list as a copy of the current one. | |
TDMR_ERROR | exportDescription () |
Stores the current camera description on disk. | |
IEnumerable< T > | getEnumerable< T > () |
Returns an enumerator of a certain type that iterates through the collection. | |
IEnumerator< int > | GetEnumerator () |
Returns an enumerator that iterates through the collection. | |
TDMR_ERROR | importDescription () |
Updates a camera description with the data stored in a previous session or with the original default data. | |
void | restoreDefault () |
Restores the default for every component of this collection. | |
Public Attributes | |
readonly PropertyI | aoiHeight = new PropertyI() |
An integer property defining the number of active lines to capture from the camera. | |
readonly PropertyI | aoiStartX = new PropertyI() |
An integer property defining the X-offset in pixels to the first active pixel to capture. | |
readonly PropertyI | aoiStartY = new PropertyI() |
An integer property defining the Y-offset in lines to the first active line to capture. | |
readonly PropertyI | aoiWidth = new PropertyI() |
An integer property defining the number of active pixels to capture per line. | |
readonly EnumPropertyI< TCameraInterlacedType > | interlacedType = new EnumPropertyI<TCameraInterlacedType>() |
An enumerated integer property defining how the camera transmits image data. | |
readonly PropertyS | name = new PropertyS() |
A string property (read-only) containing the name of this camera description list. | |
readonly EnumPropertyI< TCameraOutput > | videoOutput = new EnumPropertyI<TCameraOutput>() |
An enumerated integer property defining the type of video outputs this camera offers. | |
Properties | |
String | className [get] |
Returns the class this description is belonging to. | |
IEnumerable< Component > | componentEnumerable [get] |
Returns an enumerator that iterates through the collection. | |
IEnumerable< ComponentList > | componentListEnumerable [get] |
Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection. | |
int | hObj [get] |
Returns a unique identifier for the component collection referenced by this object. | |
A base class to describe a camera(Device specific interface layout only) connected to a frame grabber.
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 mv.impact.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 mv.impact.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'.
Example
|
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 initialised 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 the property mv.impact.acquire.Device.customDataDirectory before initialising the device.
|
inlineinherited |
Returns an enumerator of a certain type that iterates through the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
inlineinherited |
Returns an enumerator that iterates through the collection.
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
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 the property mv.impact.acquire.Device.customDataDirectory before initialising the device. To get access to a XML description file within the application, these file must be copied to this directory BEFORE the device is initialised. During the init 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 mv.impact.acquire.CameraSettingsFrameGrabber.type.
To restore the default values valid during the driver was initialised the function mv.impact.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.
An integer property defining the number of active lines to capture from the camera.
An integer property defining the X-offset in pixels to the first active pixel to capture.
An integer property defining the Y-offset in lines to the first active line to capture.
An integer property defining the number of active pixels to capture per line.
readonly EnumPropertyI<TCameraInterlacedType> interlacedType = new EnumPropertyI<TCameraInterlacedType>() |
An enumerated integer property defining how the camera transmits image data.
Valid values for this property are defined by the enumeration mv.impact.acquire.TCameraInterlacedType.
A string property (read-only) containing the name of this camera description list.
readonly EnumPropertyI<TCameraOutput> videoOutput = new EnumPropertyI<TCameraOutput>() |
An enumerated integer property defining the type of video outputs this camera offers.
Valid values for this property are defined by the enumeration mv.impact.acquire.TCameraOutput.
|
get |
Returns the class this description is belonging to.
|
getinherited |
Returns an enumerator that iterates through the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
getinherited |
Returns an enumerator that iterates through all the mv.impact.acquire.ComponentList elements in the collection.
This interface will allow to e.g. write code like this:
See the framework's documentation about the System.Collections.IEnumerable interface for more information.
|
getinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mv.impact.acquire.ComponentList.