[89] | 1 | // 1394CameraControlTrigger.h: interface for the C1394CameraControlTrigger class.
|
---|
| 2 | //
|
---|
| 3 | // Version 5.2
|
---|
| 4 | //
|
---|
| 5 | // Copyright 5/2000
|
---|
| 6 | //
|
---|
| 7 | // Iwan Ulrich
|
---|
| 8 | // Robotics Institute
|
---|
| 9 | // Carnegie Mellon University
|
---|
| 10 | // Pittsburgh, PA
|
---|
| 11 | //
|
---|
| 12 | // Copyright 3/2002
|
---|
| 13 | //
|
---|
| 14 | // Christopher Baker
|
---|
| 15 | // Robotics Institute
|
---|
| 16 | // Carnegie Mellon University
|
---|
| 17 | // Pittsburgh, PA
|
---|
| 18 | //
|
---|
| 19 | // This program is free software; you can redistribute it and/or
|
---|
| 20 | // modify it under the terms of the GNU General Public License
|
---|
| 21 | // as published by the Free Software Foundation; either version 2
|
---|
| 22 | // of the License, or (at your option) any later version.
|
---|
| 23 | //
|
---|
| 24 | // This program is distributed in the hope that it will be useful,
|
---|
| 25 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 26 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 27 | // GNU General Public License for more details.
|
---|
| 28 | //
|
---|
| 29 | // You should have received a copy of the GNU General Public License
|
---|
| 30 | // along with this program; if not, write to the Free Software
|
---|
| 31 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
---|
| 32 | //
|
---|
| 33 | //////////////////////////////////////////////////////////////////////
|
---|
| 34 |
|
---|
| 35 | #ifndef __1394CAMERACONTROLTRIGGER_H__
|
---|
| 36 | #define __1394CAMERACONTROLTRIGGER_H__
|
---|
| 37 |
|
---|
| 38 | #include "1394CameraControl.h"
|
---|
| 39 |
|
---|
| 40 | class C1394Camera;
|
---|
| 41 |
|
---|
| 42 | class CAMAPI C1394CameraControlTrigger
|
---|
| 43 | {
|
---|
| 44 |
|
---|
| 45 | public:
|
---|
| 46 | int SetMode(int mode, int parameter);
|
---|
| 47 | int SetPolarity(BOOL polarity);
|
---|
| 48 | int TurnOn(BOOL on);
|
---|
| 49 | unsigned long Status();
|
---|
| 50 | unsigned long Inquire();
|
---|
| 51 | C1394CameraControlTrigger();
|
---|
| 52 | ~C1394CameraControlTrigger();
|
---|
| 53 |
|
---|
| 54 | C1394Camera* m_pCamera;
|
---|
| 55 | // feature inquiry values
|
---|
| 56 | bool m_present;
|
---|
| 57 | bool m_readout;
|
---|
| 58 | bool m_onoff;
|
---|
| 59 | bool m_polarity;
|
---|
| 60 | bool m_triggerMode[4];
|
---|
| 61 | bool m_statusPolarity;
|
---|
| 62 | bool m_statusOnOff;
|
---|
| 63 | int m_statusMode;
|
---|
| 64 | private:
|
---|
| 65 | int SetValues();
|
---|
| 66 | unsigned long m_mode;
|
---|
| 67 | unsigned short m_value1; // bits 20 to 31
|
---|
| 68 | };
|
---|
| 69 |
|
---|
| 70 | #endif // __1394CAMERACONTROLTRIGGER_H__
|
---|