Main Content

使用IAdaptor抽象类虚函数

The following table lists the pure virtual functions defined by the IAdaptor abstract class, in alphabetical order. The Demo adaptor included with the Image Acquisition Toolbox™ software contains sample implementations of these functions in the fileDemoAdaptor.cpp.

Pure Virtual Function

Description with Declaration

closeDevice()

Terminates the connection to a device — seeSuggested Algorithm for closeDevice().

virtual bool closeDevice();

getDriverDescription()

再保险turns a character vector identifying the device driver used by the device — seeSpecifying Device Driver Identification Information.

virtual const char* getDriverDescription() const;

getDriverVersion()

再保险turns a character vector identifying the version number of the device driver used by the device — seeSpecifying Device Driver Identification Information.

virtual const char* getDriverVersion() const;

getFrameType()

再保险turns the toolbox-defined frame type used to store the images provided by the device — seeSpecifying Frame Type.

imaqkit::frametypes::FRAMETYPE getFrameType() const;

getMaxHeight()

再保险turns an integer specifying the maximum vertical resolution (the number of lines) of the image data — seeSpecifying Image Dimensions.

virtual int getMaxHeight() const;

getMaxWidth()

再保险turns an integer specifying the maximum horizontal resolution (in pixels) of the image data — seeSpecifying Image Dimensions.

virtual int getMaxWidth() const;

getNumberOfBands()

再保险turns the number of bands used in the returned image data — seeSpecifying Image Dimensions.

virtual int getNumberOfBands() const;

openDevice()

Opens a connection with the device, preparing it for use — seeOpening and Closing Connection with a Device.

virtual bool openDevice();

startCapture()

Starts retrieving frames from the device — seeStarting and Stopping Image Acquisition.

virtual bool startCapture();

stopCapture()

Stops retrieving frames from the device — seeSuggested Algorithm for stopCapture().

virtual bool stopCapture();