MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Betriebsanweisung Seite 69

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 172
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 68
Creating Stub Implementation of Your Adaptor Class
4-5
Creating Stub Implementation of Your Adaptor Class
To create a stub implementation of your adaptor class, follow this procedure:
1
Add a C++ header file to the adaptor C++ project. This header file will hold the
definition of your adaptor class. You can give your class any name. This example
uses the following naming convention:
vendor_name + adaptor
For this example, the header file that contains the adaptor class definition is named
MyDeviceAdaptor.h.
2
Copy the following class definition into the header file. This adaptor class contains
all the virtual functions defined by the IAdaptor abstract class.
#include "mwadaptorimaq.h" // required header
class MyDeviceAdaptor : public imaqkit::IAdaptor {
public:
// Constructor and Destructor
MyDeviceAdaptor(imaqkit::IEngine* engine, const
imaqkit::IDeviceInfo* deviceInfo,
const char* formatName);
virtual ~MyDeviceAdaptor();
// Adaptor and Image Information Functions
virtual const char* getDriverDescription() const;
virtual const char* getDriverVersion() const;
virtual int getMaxWidth() const;
virtual int getMaxHeight() const;
virtual int getNumberOfBands() const;
virtual imaqkit::frametypes::FRAMETYPE getFrameType() const;
// Image Acquisition Functions
virtual bool openDevice();
virtual bool closeDevice();
virtual bool startCapture();
virtual bool stopCapture();
};
Seitenansicht 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 171 172

Kommentare zu diesen Handbüchern

Keine Kommentare