|
Public Member Functions |
| | CMMCore () |
| | ~CMMCore () |
|
Loading of drivers, initialization and setting-up the environment.
|
| void | loadDevice (const char *label, const char *library, const char *name) throw (CMMError) |
| void | unloadAllDevices () throw (CMMError) |
| void | initializeAllDevices () throw (CMMError) |
| void | initializeDevice (const char *label) throw (CMMError) |
| void | reset () throw (CMMError) |
| void | clearLog () |
|
void | initializeLogging () |
|
void | shutdownLogging () |
| void | enableDebugLog (bool enable) |
| void | enableStderrLog (bool enable) |
| std::string | getUserId () const |
| std::string | getHostName () const |
| void | logMessage (const char *msg) |
| std::string | getVersionInfo () const |
| std::string | getAPIVersionInfo () const |
| Configuration | getSystemState () const |
| void | setSystemState (const Configuration &conf) |
| Configuration | getConfigState (const char *group, const char *config) const throw (CMMError) |
| Configuration | getConfigGroupState (const char *group) const throw (CMMError) |
| void | saveSystemState (const char *fileName) throw (CMMError) |
| void | loadSystemState (const char *fileName) throw (CMMError) |
| void | saveSystemConfiguration (const char *fileName) throw (CMMError) |
| void | loadSystemConfiguration (const char *fileName) throw (CMMError) |
|
| std::vector< std::string > | getAvailableDevices (const char *library) throw (CMMError) |
| std::vector< std::string > | getAvailableDeviceDescriptions (const char *library) throw (CMMError) |
| std::vector< int > | getAvailableDeviceTypes (const char *library) throw (CMMError) |
|
API guaranteed to work for all devices.
|
| std::vector< std::string > | getDeviceLibraries (const char *path) |
| std::vector< std::string > | getLoadedDevices () const |
| std::vector< std::string > | getLoadedDevicesOfType (MM::DeviceType devType) throw (CMMError) |
| std::vector< std::string > | getDevicePropertyNames (const char *label) const throw (CMMError) |
| std::string | getProperty (const char *label, const char *propName) const throw (CMMError) |
| void | setProperty (const char *label, const char *propName, const char *propValue) throw (CMMError) |
| bool | hasProperty (const char *label, const char *propName) const throw (CMMError) |
| std::vector< std::string > | getAllowedPropertyValues (const char *label, const char *propName) const throw (CMMError) |
| bool | isPropertyReadOnly (const char *label, const char *propName) const throw (CMMError) |
| bool | isPropertyPreInit (const char *label, const char *propName) const throw (CMMError) |
| MM::DeviceType | getDeviceType (const char *label) throw (CMMError) |
| bool | deviceBusy (const char *deviceName) throw (CMMError) |
| void | waitForDevice (const char *deviceName) throw (CMMError) |
| void | waitForConfig (const char *group, const char *configName) throw (CMMError) |
| bool | systemBusy () throw (CMMError) |
| void | waitForSystem () throw (CMMError) |
| void | waitForImageSynchro () throw (CMMError) |
| bool | deviceTypeBusy (MM::DeviceType devType) throw (CMMError) |
| void | waitForDeviceType (MM::DeviceType devType) throw (CMMError) |
| void | sleep (double intervalMs) const |
| double | getDeviceDelayMs (const char *label) const throw (CMMError) |
| void | setDeviceDelayMs (const char *label, double delayMs) throw (CMMError) |
|
void | setTimeoutMs (long timeoutMs) |
|
long | getTimeoutMs () |
| bool | usesDeviceDelay (const char *label) const throw (CMMError) |
|
std::string | getCoreErrorText (int code) const |
|
| std::string | getCameraDevice () |
| std::string | getShutterDevice () |
| std::string | getFocusDevice () |
| std::string | getXYStageDevice () |
| std::string | getAutoFocusDevice () |
| std::string | getImageProcessorDevice () |
| void | setCameraDevice (const char *cameraLabel) throw (CMMError) |
| void | setShutterDevice (const char *shutterLabel) throw (CMMError) |
| void | setFocusDevice (const char *focusLabel) throw (CMMError) |
| void | setXYStageDevice (const char *xyStageLabel) throw (CMMError) |
| void | setAutoFocusDevice (const char *focusLabel) throw (CMMError) |
| void | setImageProcessorDevice (const char *procLabel) throw (CMMError) |
|
A single configuration applies to multiple devices at the same time.
|
| void | defineConfig (const char *groupName, const char *configName, const char *deviceName, const char *propName, const char *value) |
| void | defineConfigGroup (const char *groupName) throw (CMMError) |
| void | deleteConfigGroup (const char *groupName) throw (CMMError) |
| bool | isGroupDefined (const char *groupName) |
| bool | isConfigDefined (const char *groupName, const char *configName) |
| void | setConfig (const char *groupName, const char *configName) throw (CMMError) |
| void | deleteConfig (const char *groupName, const char *configName) throw (CMMError) |
|
std::vector< std::string > | getAvailableConfigGroups () const |
| std::vector< std::string > | getAvailableConfigs (const char *configGroup) const |
| std::string | getCurrentConfig (const char *groupName) const |
| Configuration | getConfigData (const char *configGroup, const char *configName) const throw (CMMError) |
| double | getPixelSizeUm () const |
| void | setPixelSizeUm (const char *resoultionID, double pixSize) throw (CMMError) |
| void | definePixelSizeConfig (const char *resolutionID, const char *deviceName, const char *propName, const char *value) |
| std::vector< std::string > | getAvailablePixelSizeConfigs () const |
| Configuration | getPixelSizeConfigData (const char *configName) const throw (CMMError) |
|
Imaging related API.
|
| void | setROI (unsigned x, unsigned y, unsigned xSize, unsigned ySize) throw (CMMError) |
| void | getROI (unsigned &x, unsigned &y, unsigned &xSize, unsigned &ySize) const throw (CMMError) |
| void | clearROI () throw (CMMError) |
| void | setExposure (double exp) throw (CMMError) |
| double | getExposure () const throw (CMMError) |
| void * | getImage () const throw (CMMError) |
| void | snapImage () throw (CMMError) |
| unsigned | getImageWidth () const |
| unsigned | getImageHeight () const |
| unsigned | getBytesPerPixel () const |
| unsigned | getImageBitDepth () const |
| long | getImageBufferSize () const |
| void | assignImageSynchro (const char *deviceLabel) throw (CMMError) |
| void | removeImageSynchro (const char *label) throw (CMMError) |
| void | removeImageSynchroAll () |
| void | setAutoShutter (bool state) |
| bool | getAutoShutter () |
| void | setShutterOpen (bool state) throw (CMMError) |
| bool | getShutterOpen () throw (CMMError) |
| void | startSequenceAcquisition (long numImages, double intervalMs) throw (CMMError) |
| void | stopSequenceAcquisition () throw (CMMError) |
| void * | getLastImage () const throw (CMMError) |
| void * | popNextImage () throw (CMMError) |
|
long | getRemainingImageCount () |
|
long | getBufferTotalCapacity () |
|
long | getBufferFreeCapacity () |
|
double | getBufferIntervalMs () const |
|
bool | isBufferOverflowed () const |
| void | setCircularBufferMemoryFootprint (unsigned sizeMB) throw (CMMError) |
|
API for controlling auto-focusing devices or software modules.
|
|
double | getFocusScore () |
|
void | enableContinuousFocus (bool enable) throw (CMMError) |
|
bool | isContinuousFocusEnabled () throw (CMMError) |
|
void | fullFocus () throw (CMMError) |
|
void | incrementalFocus () throw (CMMError) |
|
API for controlling state devices (filters, turrets, etc.)
|
| void | setState (const char *deviceLabel, long state) throw (CMMError) |
| long | getState (const char *deviceLabel) const throw (CMMError) |
| long | getNumberOfStates (const char *deviceLabel) |
| void | setStateLabel (const char *deviceLabel, const char *stateLabel) throw (CMMError) |
| std::string | getStateLabel (const char *deviceLabel) const throw (CMMError) |
| void | defineStateLabel (const char *deviceLabel, long state, const char *stateLabel) throw (CMMError) |
| std::vector< std::string > | getStateLabels (const char *deviceLabel) const throw (CMMError) |
| long | getStateFromLabel (const char *deviceLabel, const char *stateLabel) const throw (CMMError) |
| PropertyBlock | getStateLabelData (const char *deviceLabel, const char *stateLabel) const |
| PropertyBlock | getData (const char *deviceLabel) const |
|
API for defining interchangeable equipment attributes
|
| void | definePropertyBlock (const char *blockName, const char *propertyName, const char *propertyValue) |
| std::vector< std::string > | getAvailablePropertyBlocks () const |
| PropertyBlock | getPropertyBlockData (const char *blockName) const |
|
API for controlling X, Y and Z stages
|
| void | setPosition (const char *deviceName, double position) throw (CMMError) |
| double | getPosition (const char *deviceName) const throw (CMMError) |
| void | setXYPosition (const char *deviceName, double x, double y) throw (CMMError) |
| void | getXYPosition (const char *deviceName, double &x, double &y) throw (CMMError) |
| double | getXPosition (const char *deviceName) throw (CMMError) |
| double | getYPosition (const char *deviceName) throw (CMMError) |
| void | stop (const char *deviceName) throw (CMMError) |
| void | home (const char *deviceName) throw (CMMError) |
| void | setOriginXY (const char *deviceName) throw (CMMError) |
|
API for serial ports
|
| void | setSerialPortCommand (const char *name, const char *command, const char *term) throw (CMMError) |
| std::string | getSerialPortAnswer (const char *name, const char *term) throw (CMMError) |
| void | writeToSerialPort (const char *name, const std::vector< char > &data) throw (CMMError) |
| std::vector< char > | readFromSerialPort (const char *name) throw (CMMError) |