#ifndef DEF_VISLAB_COMPONENT_HPP #define DEF_VISLAB_COMPONENT_HPP // Includes, project. #include "VislabCamera.hpp" // Includes, qt. #include // Includes, pacpus. #include #include #include #include #if (OPENCV_MAJOR == 3) #include #include #else #include #include #endif #ifdef WIN32 # ifdef VISLAB_COMPONENT_EXPORTS # define VISLAB_COMPONENT_API __declspec(dllexport) # else # define VISLAB_COMPONENT_API __declspec(dllimport) # endif #else # define VISLAB_COMPONENT_API #endif namespace pacpus { class VISLAB_COMPONENT_API VislabComponent : public QObject , public ComponentBase { Q_OBJECT public: //device(){} /// Ctor of VislabComponent. VislabComponent(QString const& name); /// Dtor of VislabComponent ~VislabComponent(); /// Stop the processing thread. virtual void stopActivity(); /// Start the processing thread. virtual void startActivity(); /// Configure the component. virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config); public: virtual void addOutputs(); private: std::string mOutputFileName; protected: VislabCamera camera; }; } #endif