3 #include "../../licensedinterfaces/cameradriverinterface.h"
4 #include "../../licensedinterfaces/modalsettingsdialoginterface.h"
5 #include "../../licensedinterfaces/x2guiinterface.h"
28 X2Camera(
const char* pszSelectionString,
71 virtual void setLinked(
const bool bYes) {m_bLinked = bYes;}
73 virtual int GetVersion(
void) {
return CAMAPIVERSION;}
79 virtual int CCSettings(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD);
81 virtual int CCEstablishLink(enumLPTPort portLPT,
const enumWhichCCD& CCD, enumCameraIndex DesiredCamera, enumCameraIndex& CameraFound,
const int nDesiredCFW,
int& nFoundCFW);
84 virtual int CCGetChipSize(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
const int& nXBin,
const int& nYBin,
const bool& bOffChipBinning,
int& nW,
int& nH,
int& nReadOut);
85 virtual int CCGetNumBins(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
int& nNumBins);
86 virtual int CCGetBinSizeFromIndex(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
const int& nIndex,
long& nBincx,
long& nBincy);
88 virtual int CCSetBinnedSubFrame(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
const int& nLeft,
const int& nTop,
const int& nRight,
const int& nBottom);
90 virtual void CCMakeExposureState(
int* pnState, enumCameraIndex Cam,
int nXBin,
int nYBin,
int abg,
bool bRapidReadout);
92 virtual int CCStartExposure(
const enumCameraIndex& Cam,
const enumWhichCCD CCD,
const double& dTime, enumPictureType Type,
const int& nABGState,
const bool& bLeaveShutterAlone);
93 virtual int CCIsExposureComplete(
const enumCameraIndex& Cam,
const enumWhichCCD CCD,
bool* pbComplete,
unsigned int* pStatus);
94 virtual int CCEndExposure(
const enumCameraIndex& Cam,
const enumWhichCCD CCD,
const bool& bWasAborted,
const bool& bLeaveShutterAlone);
96 virtual int CCReadoutLine(
const enumCameraIndex& Cam,
const enumWhichCCD& CCD,
const int& pixelStart,
const int& pixelLength,
const int& nReadoutMode,
unsigned char* pMem);
97 virtual int CCDumpLines(
const enumCameraIndex& Cam,
const enumWhichCCD& CCD,
const int& nReadoutMode,
const unsigned int& lines);
99 virtual int CCReadoutImage(
const enumCameraIndex& Cam,
const enumWhichCCD& CCD,
const int& nWidth,
const int& nHeight,
const int& nMemWidth,
unsigned char* pMem);
102 virtual int CCQueryTemperature(
double& dCurTemp,
double& dCurPower,
char* lpszPower,
const int nMaxLen,
bool& bCurEnabled,
double& dCurSetPoint);
104 virtual int CCSetFan(
const bool& bOn);
106 virtual int CCActivateRelays(
const int& nXPlus,
const int& nXMinus,
const int& nYPlus,
const int& nYMinus,
const bool& bSynchronous,
const bool& bAbort,
const bool& bEndThread);
108 virtual int CCPulseOut(
unsigned int nPulse,
bool bAdjust,
const enumCameraIndex& Cam);
113 virtual int CCSetImageProps(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
const int& nReadOut,
void* pImage);
114 virtual int CCGetFullDynamicRange(
const enumCameraIndex& Camera,
const enumWhichCCD& CCD,
unsigned long& dwDynRg);
116 virtual void CCBeforeDownload(
const enumCameraIndex& Cam,
const enumWhichCCD& CCD);
117 virtual void CCAfterDownload(
const enumCameraIndex& Cam,
const enumWhichCCD& CCD);
153 int m_nPrivateISIndex;
157 void setWidth(
const int& nValue);
158 void setHeight(
const int& nValue);
167 int doAddPixelDialogExample(
int& xCoord,
int& yCoord,
bool& bPressedOK);
virtual int CCDisconnect(const bool bShutDownTemp)
Definition: x2camera.cpp:350
virtual int CCRegulateTemp(const bool &bOn, const double &dTemp)
Definition: x2camera.cpp:159
The X2Camera example.
Definition: x2camera.h:25
virtual int pathTo_rm_FitsOnDisk(char *lpszPath, const int &nPathSize)
Definition: x2camera.cpp:405
virtual CameraDriverInterface::ReadOutMode readoutMode(void)
Definition: x2camera.cpp:417
virtual int CCActivateRelays(const int &nXPlus, const int &nXMinus, const int &nYPlus, const int &nYMinus, const bool &bSynchronous, const bool &bAbort, const bool &bEndThread)
Definition: x2camera.cpp:304
The X2UIEventsInterface notifies X2 implementors when user interface events happen.
Definition: x2guiinterface.h:98
virtual int CCGetRecommendedSetpoint(double &dRecSP)
Definition: x2camera.cpp:169
virtual int queryAbstraction(const char *pszName, void **ppVal)
Definition: x2camera.cpp:80
The ModalSettingsDialogInterface allows X2 implementors to display a customized settings user interfa...
Definition: modalsettingsdialoginterface.h:23
virtual int CCReadoutImage(const enumCameraIndex &Cam, const enumWhichCCD &CCD, const int &nWidth, const int &nHeight, const int &nMemWidth, unsigned char *pMem)
Definition: x2camera.cpp:340
virtual int CCStartExposure(const enumCameraIndex &Cam, const enumWhichCCD CCD, const double &dTime, enumPictureType Type, const int &nABGState, const bool &bLeaveShutterAlone)
Definition: x2camera.cpp:179
virtual int CCPulseOut(unsigned int nPulse, bool bAdjust, const enumCameraIndex &Cam)
Definition: x2camera.cpp:310
ReadOutMode
Definition: cameradriverinterface.h:79
virtual int CCSetShutter(bool bOpen)
Definition: x2camera.cpp:297
X2Camera(const char *pszSelectionString, const int &nISIndex, SerXInterface *pSerX, TheSkyXFacadeForDriversInterface *pTheSkyXForMounts, SleeperInterface *pSleeper, BasicIniUtilInterface *pIniUtil, LoggerInterface *pLogger, MutexInterface *pIOMutex, TickCountInterface *pTickCount)
Definition: x2camera.cpp:29
virtual int CCSettings(const enumCameraIndex &Camera, const enumWhichCCD &CCD)
Definition: x2camera.cpp:391
The CameraDriverInterface allows an X2 implementor to a write X2 camera driver.
Definition: cameradriverinterface.h:40
The TickCountInterface is a cross-platform way to measure relative timing.
Definition: tickcountinterface.h:17
The MutexInterface provides a cross-platform mutex.
Definition: mutexinterface.h:16
virtual int initModalSettingsDialog(void)
Definition: x2camera.h:124
virtual int CCEstablishLink(enumLPTPort portLPT, const enumWhichCCD &CCD, enumCameraIndex DesiredCamera, enumCameraIndex &CameraFound, const int nDesiredCFW, int &nFoundCFW)
Definition: x2camera.cpp:139
virtual int CCSetImageProps(const enumCameraIndex &Camera, const enumWhichCCD &CCD, const int &nReadOut, void *pImage)
Definition: x2camera.cpp:362
virtual void deviceInfoDetailedDescription(BasicStringInterface &str) const
Definition: x2camera.cpp:120
virtual int CCReadoutLine(const enumCameraIndex &Cam, const enumWhichCCD &CCD, const int &pixelStart, const int &pixelLength, const int &nReadoutMode, unsigned char *pMem)
Definition: x2camera.cpp:327
virtual int CCGetFullDynamicRange(const enumCameraIndex &Camera, const enumWhichCCD &CCD, unsigned long &dwDynRg)
Definition: x2camera.cpp:369
virtual int CCGetChipSize(const enumCameraIndex &Camera, const enumWhichCCD &CCD, const int &nXBin, const int &nYBin, const bool &bOffChipBinning, int &nW, int &nH, int &nReadOut)
Definition: x2camera.cpp:245
virtual int execModalSettingsDialog(void)
Definition: x2camera.cpp:471
virtual double driverInfoVersion(void) const
Definition: x2camera.cpp:100
virtual void driverInfoDetailedInfo(BasicStringInterface &str) const
Definition: x2camera.cpp:94
virtual void setCameraId(enumCameraIndex Cam)
Definition: x2camera.cpp:432
virtual int CCGetNumBins(const enumCameraIndex &Camera, const enumWhichCCD &CCD, int &nNumBins)
Definition: x2camera.cpp:259
The TheSkyXFacadeForDriversInterface is a simplified interface to TheSkyX passed to X2 implementors.
Definition: theskyxfacadefordriversinterface.h:19
virtual int CCQueryTemperature(double &dCurTemp, double &dCurPower, char *lpszPower, const int nMaxLen, bool &bCurEnabled, double &dCurSetPoint)
Definition: x2camera.cpp:146
virtual int CCUpdateClock(void)
Definition: x2camera.cpp:290
virtual void deviceInfoModel(BasicStringInterface &str)
Definition: x2camera.cpp:132
virtual int CCEndExposure(const enumCameraIndex &Cam, const enumWhichCCD CCD, const bool &bWasAborted, const bool &bLeaveShutterAlone)
Definition: x2camera.cpp:226
virtual void uiEvent(X2GUIExchangeInterface *uiex, const char *pszEvent)
Definition: x2camera.cpp:643
virtual int CCIsExposureComplete(const enumCameraIndex &Cam, const enumWhichCCD CCD, bool *pbComplete, unsigned int *pStatus)
Definition: x2camera.cpp:208
virtual void CCMakeExposureState(int *pnState, enumCameraIndex Cam, int nXBin, int nYBin, int abg, bool bRapidReadout)
Definition: x2camera.cpp:376
The BasicIniUtilInterface is used to make properties persistent.
Definition: basiciniutilinterface.h:21
The LoggerInterface is a cross-platform logging utility passed to X2 implementors to show real-time,...
Definition: loggerinterface.h:58
virtual void CCBeforeDownload(const enumCameraIndex &Cam, const enumWhichCCD &CCD)
Definition: x2camera.cpp:316
virtual void deviceInfoFirmwareVersion(BasicStringInterface &str)
Definition: x2camera.cpp:126
virtual void deviceInfoNameShort(BasicStringInterface &str) const
Definition: x2camera.cpp:108
The SleeperInterface is a cross-platform "sleeper".
Definition: sleeperinterface.h:15
virtual enumCameraIndex cameraId()
Definition: x2camera.cpp:425
virtual int CCSetFan(const bool &bOn)
Definition: x2camera.cpp:398
virtual void setLinked(const bool bYes)
Definition: x2camera.h:71
The SerXInterface is a cross-plaform serial port.
Definition: serxinterface.h:18
virtual int CCSetBinnedSubFrame(const enumCameraIndex &Camera, const enumWhichCCD &CCD, const int &nLeft, const int &nTop, const int &nRight, const int &nBottom)
Definition: x2camera.cpp:383
The X2GUIExchangeInterface provides the X2 developer the means to get and set data from a graphical u...
Definition: x2guiinterface.h:23
virtual void CCAfterDownload(const enumCameraIndex &Cam, const enumWhichCCD &CCD)
Definition: x2camera.cpp:321
The BasicStringInterface allows a string as an output.
Definition: basicstringinterface.h:17
virtual bool isLinked()
Definition: x2camera.h:70
virtual int CCGetBinSizeFromIndex(const enumCameraIndex &Camera, const enumWhichCCD &CCD, const int &nIndex, long &nBincx, long &nBincy)
Definition: x2camera.cpp:273
virtual void deviceInfoNameLong(BasicStringInterface &str) const
Definition: x2camera.cpp:114
virtual int CCDumpLines(const enumCameraIndex &Cam, const enumWhichCCD &CCD, const int &nReadoutMode, const unsigned int &lines)
Definition: x2camera.cpp:333
X2 Examples
(C) Software Bisque, Inc. All rights reserved.