Commit 3ecf37a8 authored by Rossa, Lutz's avatar Rossa, Lutz
Browse files

replace tabs with spaces

parent 22ce90b4
This diff is collapsed.
...@@ -34,104 +34,104 @@ ...@@ -34,104 +34,104 @@
class XenethCamera : public CCameraBase<XenethCamera> class XenethCamera : public CCameraBase<XenethCamera>
{ {
public: public:
XenethCamera(); XenethCamera();
~XenethCamera(); ~XenethCamera();
// Inherited via CCameraBase // Inherited via CCameraBase
int Initialize(); int Initialize();
int Shutdown(); int Shutdown();
void GetName(char * name) const; void GetName(char * name) const;
long GetImageBufferSize() const; long GetImageBufferSize() const;
unsigned GetBitDepth() const; unsigned GetBitDepth() const;
int GetBinning() const; int GetBinning() const;
int SetBinning(int binSize); int SetBinning(int binSize);
void SetExposure(double exp_ms); void SetExposure(double exp_ms);
double GetExposure() const; double GetExposure() const;
int SetROI(unsigned uX, unsigned uY, unsigned uWidth, unsigned uHeight); int SetROI(unsigned uX, unsigned uY, unsigned uWidth, unsigned uHeight);
int GetROI(unsigned & x, unsigned & y, unsigned & xSize, unsigned & ySize); int GetROI(unsigned & x, unsigned & y, unsigned & xSize, unsigned & ySize);
int ClearROI(); int ClearROI();
int IsExposureSequenceable(bool & isSequenceable) const; int IsExposureSequenceable(bool & isSequenceable) const;
const unsigned char * GetImageBuffer(); const unsigned char * GetImageBuffer();
unsigned GetImageWidth() const; unsigned GetImageWidth() const;
unsigned GetImageHeight() const; unsigned GetImageHeight() const;
unsigned GetImageBytesPerPixel() const; unsigned GetImageBytesPerPixel() const;
int SnapImage(); int SnapImage();
int StartSequenceAcquisition(long numImages, double interval_ms, bool stopOnOverflow); int StartSequenceAcquisition(long numImages, double interval_ms, bool stopOnOverflow);
int StopSequenceAcquisition(); int StopSequenceAcquisition();
void OnThreadExiting() throw(); void OnThreadExiting() throw();
unsigned GetNumberOfComponents() const; unsigned GetNumberOfComponents() const;
const unsigned int* GetImageBufferAsRGB32(); const unsigned int* GetImageBufferAsRGB32();
/// <summary> /// <summary>
/// this function is called before the DLL is unloaded to shut down existing devices /// this function is called before the DLL is unloaded to shut down existing devices
/// </summary> /// </summary>
static void DllMainShutdown(); static void DllMainShutdown();
private: private:
class XenethProperty class XenethProperty
{ {
public: public:
XenethProperty() : m_iType(XType_None) {} XenethProperty() : m_iType(XType_None) {}
XenethProperty(const XenethProperty&) = default; XenethProperty(const XenethProperty&) = default;
XenethProperty(XenethProperty&&) = default; XenethProperty(XenethProperty&&) = default;
XenethProperty& operator=(const XenethProperty&) = default; XenethProperty& operator=(const XenethProperty&) = default;
XenethProperty& operator=(XenethProperty&&) = default; XenethProperty& operator=(XenethProperty&&) = default;
XPropType m_iType; XPropType m_iType;
std::string m_szName; std::string m_szName;
std::string m_szCategory; std::string m_szCategory;
std::string m_szUnit; std::string m_szUnit;
std::string m_szRange; std::string m_szRange;
std::string m_szValue; std::string m_szValue;
}; };
mutable bool m_bInitialized; mutable bool m_bInitialized;
mutable bool m_bInitializing; mutable bool m_bInitializing;
unsigned char m_byPixelSize; unsigned char m_byPixelSize;
std::string m_szCameraPath; std::string m_szCameraPath;
std::string m_szCalibrationFile; std::string m_szCalibrationFile;
XCHANDLE m_hCamera; XCHANDLE m_hCamera;
std::vector<XenethProperty> m_aProperties; std::vector<XenethProperty> m_aProperties;
long m_lExposurePropertyIndex; long m_lExposurePropertyIndex;
static std::list<XenethCamera*> m_apInstances; static std::list<XenethCamera*> m_apInstances; /// list of active instances for exit
mutable unsigned m_uRoiX; mutable unsigned m_uRoiX;
mutable unsigned m_uRoiY; mutable unsigned m_uRoiY;
mutable unsigned m_uRoiW; mutable unsigned m_uRoiW;
mutable unsigned m_uRoiH; mutable unsigned m_uRoiH;
std::vector<unsigned char> m_abyImage; std::vector<unsigned char> m_abyImage;
std::vector<unsigned char> m_abyROI; std::vector<unsigned char> m_abyROI;
/// <summary> /// <summary>
/// convienence function to create a MM property with local action function /// convienence function to create a MM property with local action function
/// </summary> /// </summary>
/// <param name="szName">name of property</param> /// <param name="szName">name of property</param>
/// <param name="szValue">initial value as string</param> /// <param name="szValue">initial value as string</param>
/// <param name="eType">data type (string, float, integer)</param> /// <param name="eType">data type (string, float, integer)</param>
/// <param name="bReadOnly">read only flag</param> /// <param name="bReadOnly">read only flag</param>
/// <param name="pFunction">setter/getter function</param> /// <param name="pFunction">setter/getter function</param>
/// <param name="bIsPreInitProperty">pre-init flag</param> /// <param name="bIsPreInitProperty">pre-init flag</param>
/// <returns></returns> /// <returns></returns>
int XenethCreateProperty(const char* szName, const char* szValue, MM::PropertyType eType, bool bReadOnly, int XenethCreateProperty(const char* szName, const char* szValue, MM::PropertyType eType, bool bReadOnly,
int(XenethCamera::* pFunction)(MM::PropertyBase* pProp, MM::ActionType eAct), bool bIsPreInitProperty); int(XenethCamera::* pFunction)(MM::PropertyBase* pProp, MM::ActionType eAct), bool bIsPreInitProperty);
/// <summary> /// <summary>
/// called while getting/setting camera path property /// called while getting/setting camera path property
/// </summary> /// </summary>
/// <param name="pProp">property value</param> /// <param name="pProp">property value</param>
/// <param name="eAct">action type: get, set, ...</param> /// <param name="eAct">action type: get, set, ...</param>
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnCameraPath(MM::PropertyBase* pProp, MM::ActionType eAct); int OnCameraPath(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// called while getting/setting calibration file path property /// called while getting/setting calibration file path property
/// </summary> /// </summary>
/// <param name="pProp">property value</param> /// <param name="pProp">property value</param>
/// <param name="eAct">action type: get, set, ...</param> /// <param name="eAct">action type: get, set, ...</param>
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnCalibrationFile(MM::PropertyBase* pProp, MM::ActionType eAct); int OnCalibrationFile(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// called while getting/setting log file path property /// called while getting/setting log file path property
...@@ -141,34 +141,34 @@ private: ...@@ -141,34 +141,34 @@ private:
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnLogFile(MM::PropertyBase* pProp, MM::ActionType eAct); int OnLogFile(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// called while getting/setting binning /// called while getting/setting binning
/// </summary> /// </summary>
/// <param name="pProp">property value</param> /// <param name="pProp">property value</param>
/// <param name="eAct">action type: get, set, ...</param> /// <param name="eAct">action type: get, set, ...</param>
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnBinning(MM::PropertyBase* pProp, MM::ActionType eAct); int OnBinning(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// called while getting/setting, which property is the exposure time /// called while getting/setting, which property is the exposure time
/// </summary> /// </summary>
/// <param name="pProp">property value</param> /// <param name="pProp">property value</param>
/// <param name="eAct">action type: get, set, ...</param> /// <param name="eAct">action type: get, set, ...</param>
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnExposureProperty(MM::PropertyBase* pProp, MM::ActionType eAct); int OnExposureProperty(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// called while getting/setting autogenerated camera path property /// called while getting/setting autogenerated camera path property
/// </summary> /// </summary>
/// <param name="pProp">property value</param> /// <param name="pProp">property value</param>
/// <param name="eAct">action type: get, set, ...</param> /// <param name="eAct">action type: get, set, ...</param>
/// <returns>success or error code</returns> /// <returns>success or error code</returns>
int OnCameraProperty(MM::PropertyBase* pProp, MM::ActionType eAct); int OnCameraProperty(MM::PropertyBase* pProp, MM::ActionType eAct);
/// <summary> /// <summary>
/// update ROI image from camera image /// update ROI image from camera image
/// </summary> /// </summary>
void UpdateROI(); void UpdateROI();
/// <summary> /// <summary>
/// convert a time from ms into device unit /// convert a time from ms into device unit
...@@ -186,10 +186,10 @@ private: ...@@ -186,10 +186,10 @@ private:
/// <returns>converted time or input value</returns> /// <returns>converted time or input value</returns>
static double ToMilliseconds(double dValue, const char* szSourceUnit); static double ToMilliseconds(double dValue, const char* szSourceUnit);
/// <summary> /// <summary>
/// convert Xeneth result code into micro-manager error code /// convert Xeneth result code into micro-manager error code
/// </summary> /// </summary>
/// <param name="code">Xeneth function result</param> /// <param name="code">Xeneth function result</param>
/// <returns>registered error code for Xeneth result</returns> /// <returns>registered error code for Xeneth result</returns>
static int ConvertXenethResult(ErrCode code); static int ConvertXenethResult(ErrCode code);
}; };
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