Commit 3e4323a6 authored by Andreas Persson's avatar Andreas Persson

Interface: add getCamera()

- Export camera specific methods in sip interface
parent 86a6d328
......@@ -56,12 +56,8 @@ public:
virtual void getStatus(StatusType& status);
virtual int getNbHwAcquiredFrames();
//- PointGrey Specific
void getAutoExpTime(bool &auto_frame_rate) const;
void setAutoExpTime(bool auto_exp_time);
Camera& getCamera(){ return m_cam; }
void getAutoGain(bool& auto_gain) const;
void setAutoGain(bool auto_gain);
private:
Camera& m_cam;
CapList m_cap_list;
......
......@@ -16,13 +16,109 @@ namespace PointGrey
virtual void startAcq();
virtual void stopAcq();
virtual void getStatus(StatusType& status /Out/);
virtual int getNbHwAcquiredFrames();
virtual int getNbHwAcquiredFrames();
//- camera specific
void getAutoExpTime(bool& auto_frame_rate /Out/) const;
void setAutoExpTime(bool auto_exp_time);
// -- camera specific
// packet size control
void getPacketSize(int& packet_size /Out/);
%MethodCode
sipCpp->getCamera().getPacketSize(a0);
%End
void setPacketSize(int packet_size);
%MethodCode
sipCpp->getCamera().setPacketSize(a0);
%End
// packet delay control
void getPacketDelay(int& packet_delay /Out/);
%MethodCode
sipCpp->getCamera().getPacketDelay(a0);
%End
void setPacketDelay(int packet_delay);
%MethodCode
sipCpp->getCamera().setPacketDelay(a0);
%End
// gain control
void getGain(double& gain /Out/);
%MethodCode
sipCpp->getCamera().getGain(a0);
%End
void setGain(double gain);
%MethodCode
sipCpp->getCamera().setGain(a0);
%End
void getAutoGain(bool& auto_gain /Out/);
%MethodCode
sipCpp->getCamera().getAutoGain(a0);
%End
void setAutoGain(bool auto_gain);
%MethodCode
sipCpp->getCamera().setAutoGain(a0);
%End
void getGainRange(double& min_gain /Out/, double& max_gain /Out/);
%MethodCode
sipCpp->getCamera().getGainRange(a0, a1);
%End
// exposure control
void getExpTime(double& exp_time /Out/);
%MethodCode
sipCpp->getCamera().getExpTime(a0);
%End
void setExpTime(double exp_time);
%MethodCode
sipCpp->getCamera().setExpTime(a0);
%End
void getAutoExpTime(bool& auto_exp_time /Out/);
%MethodCode
sipCpp->getCamera().getAutoExpTime(a0);
%End
void setAutoExpTime(bool auto_exp_time);
%MethodCode
sipCpp->getCamera().setAutoExpTime(a0);
%End
void getExpTimeRange(double& min_exp_time /Out/, double& max_exp_time /Out/);
%MethodCode
sipCpp->getCamera().getExpTimeRange(a0, a1);
%End
// frame rate control
void getFrameRate(double& frame_rate /Out/);
%MethodCode
sipCpp->getCamera().getFrameRate(a0);
%End
void setFrameRate(double frame_rate);
%MethodCode
sipCpp->getCamera().setFrameRate(a0);
%End
void getAutoFrameRate(bool& auto_frame_rate /Out/);
%MethodCode
sipCpp->getCamera().getAutoFrameRate(a0);
%End
void setAutoFrameRate(bool auto_frame_rate);
%MethodCode
sipCpp->getCamera().setAutoFrameRate(a0);
%End
void getFrameRateRange(double& min_frame_rate /Out/, double& max_frame_rate /Out/);
%MethodCode
sipCpp->getCamera().getFrameRateRange(a0, a1);
%End
void getAutoGain(bool& auto_gain /Out/) const;
void setAutoGain(bool auto_gain);
};
};
......@@ -149,15 +149,3 @@ int Interface::getNbHwAcquiredFrames()
m_cam.getNbHwAcquiredFrames(acq_frames);
return acq_frames;
}
//-----------------------------------------------------
//
//-----------------------------------------------------
void Interface::setAutoGain(bool auto_gain) { m_cam.setAutoGain(auto_gain); }
void Interface::getAutoGain(bool& auto_gain) const { m_cam.getAutoGain(auto_gain); }
//-----------------------------------------------------
//
//-----------------------------------------------------
void Interface::setAutoExpTime(bool auto_exp_time) { m_cam.setAutoExpTime(auto_exp_time); }
void Interface::getAutoExpTime(bool& auto_exp_time) const { m_cam.getAutoExpTime(auto_exp_time); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment