#include <ia.h>
Inheritance diagram for wxIAProvider:
Public Methods | |
wxIAProvider () | |
Constructor. More... | |
virtual | ~wxIAProvider () |
Destructor. | |
virtual bool | Ok () |
virtual wxString | GetName () |
Get name. More... | |
virtual int | GetSourceCount () |
Get source count. More... | |
virtual wxIASourceInfo | GetSourceInfo (int i) |
virtual wxIAReturnCode | SelectSource (const wxString& name = _T(""), wxIAUIMode uiMode = wxIA_UIMODE_NORMAL, wxWindow* parent = NULL) |
virtual wxIAReturnCode | SelectDefaultSource () |
virtual bool | IsSourceSelected () |
virtual wxIASourceInfo | GetSelSourceInfo () |
virtual wxIAReturnCode | SetSelSourceConfig (const wxString& configString) |
Set selected source configuration. More... | |
virtual wxString | GetSelSourceConfig () |
Get the current configuration of the selected source. More... | |
virtual wxIAReturnCode | AcquireImage (wxIAUIMode uiMode = wxIA_UIMODE_NORMAL, wxWindow* parent = NULL, wxIAMonitor *mon = NULL) |
Acquire an image. More... | |
virtual wxIAReturnCode | AcquireImages (int numImages, wxIAUIMode uiMode = wxIA_UIMODE_NORMAL, wxWindow *parent = NULL, wxIAMonitor* mon = NULL) |
Acquire one or more images. More... | |
virtual void | SetEvtHandler (wxEvtHandler* evtHandler) |
Set event handler. More... | |
virtual wxIAReturnCode | SetTransferMode (wxIATransferMode mode) |
Set transfer mode. More... | |
virtual wxIATransferMode | GetTransferMode () |
Get the current transfer mode. More... | |
virtual wxIAReturnCode | SetTransferFilename (const wxString& filename, wxIATransferFileType type) |
Set the transfer file name. More... | |
virtual wxString | GetTransferFilename () |
Get the transfer file name. | |
virtual wxIATransferFileType | GetTransferFileType () |
Get the transfer file type. | |
virtual wxIAReturnCode | SetTransferBuffer (void* buffer, size_t size) |
Set the transfer buffer. More... | |
virtual void* | GetTransferBuffer () |
Get the transfer buffer. More... | |
virtual size_t | GetTransferBufferSize () |
Get the transfer buffer size. | |
wxEvtHandler* | GetEvtHandler () |
Get current event handler. More... | |
virtual wxImage | GetImage () |
Get the last image aqcuired as a wxImage. More... | |
virtual wxBitmap | GetBitmap () |
Get the last image acquired as a wxBitmap. More... | |
virtual bool | SaveSettings (wxConfigBase* config) |
Save the current settings. More... | |
virtual bool | LoadSettings (wxConfigBase* config) |
Load settings. More... | |
Protected Attributes | |
wxEvtHandler* | m_evtHandler |
wxIATransferMode | m_transferMode |
void* | m_transferBuffer |
size_t | m_transferBufferSize |
wxString | m_transferFilename |
wxIATransferFileType | m_transferFileType |
Provides one or more image sources which may be selected and used to acquire images. Image sources represent devices such as scanners, cameras, etc. or anything else that can provide image data (like image file handlers or an image database).
Different platforms will provide different wxIAProvider's to allow access to platform specific image acquisition interfaces such as TWAIN on Windows and MacOS and SANE on Unix platforms.
A list of available wxIAProviders is maintained by the wxIAManager class.
|
Constructor. Default constructor |
|
Destructor.
|
|
Acquire an image. Aquire an image from the currently selected source. Returns true on success or false on failure or if the user aborted.
|
|
Acquire one or more images. Aquire images from the currently selected source. Returns true on success or false on failure or if the user aborted.
|
|
Get the last image acquired as a wxBitmap.
|
|
Get current event handler.
|
|
Get the last image aqcuired as a wxImage.
|
|
Get name.
|
|
Get the current configuration of the selected source.
|
|
Get source info for the currently selected source.
|
|
Get source count.
|
|
Get the source info for the specified source.
|
|
Get the transfer buffer.
|
|
Get the transfer buffer size.
|
|
Get the transfer file type.
|
|
Get the transfer file name.
|
|
Get the current transfer mode.
|
|
Is a source selected?
|
|
Load settings. Load saved settings for this provider from the specified config object.
|
|
Used to determine if the provider is initialized and ready for use.
|
|
Save the current settings. Save the current settings for this provider to the specified config object.
|
|
Select the default source.
|
|
Select a source.
|
|
Set event handler. Set the event handler to be notified when wxIAEvent's occur. Currently there are two events generated: wxEVT_IA_GETIMAGE event that is sent when an image has been acquired and wxEVT_IA_UPDATESTATUS that is sent to allow the application to update the status of the acquisition. The method handling the wxEVT_IA_GETIMAGE event should call GetImage() or GetBitmap() to retrieve the image data.
|
|
Set selected source configuration. Configure the currently selected source from the configuration encoded in a wxString.
|
|
Set the transfer buffer.
|
|
Set the transfer file name.
|
|
Set transfer mode. Set the image data transfer mode. The default transfer mode is wxIA_TRANSFERMODE_NATIVE.
|
|
|
|
|
|
|
|
|
|
|
|
|