|
| 1 | +from abc import ABC, abstractmethod |
| 2 | +from typing import Tuple |
| 3 | + |
| 4 | + |
| 5 | +class MicroscopeBase(ABC): |
| 6 | + @abstractmethod |
| 7 | + def getBeamShift(self) -> Tuple[int, int]: |
| 8 | + pass |
| 9 | + |
| 10 | + @abstractmethod |
| 11 | + def getBeamTilt(self) -> Tuple[int, int]: |
| 12 | + pass |
| 13 | + |
| 14 | + @abstractmethod |
| 15 | + def getBrightness(self) -> int: |
| 16 | + pass |
| 17 | + |
| 18 | + @abstractmethod |
| 19 | + def getCondensorLensStigmator(self) -> Tuple[int, int]: |
| 20 | + pass |
| 21 | + |
| 22 | + @abstractmethod |
| 23 | + def getCurrentDensity(self) -> float: |
| 24 | + pass |
| 25 | + |
| 26 | + @abstractmethod |
| 27 | + def getDiffFocus(self, confirm_mode: bool) -> int: |
| 28 | + pass |
| 29 | + |
| 30 | + @abstractmethod |
| 31 | + def getDiffShift(self) -> Tuple[int, int]: |
| 32 | + pass |
| 33 | + |
| 34 | + @abstractmethod |
| 35 | + def getFunctionMode(self) -> str: |
| 36 | + pass |
| 37 | + |
| 38 | + @abstractmethod |
| 39 | + def getGunShift(self) -> Tuple[int, int]: |
| 40 | + pass |
| 41 | + |
| 42 | + @abstractmethod |
| 43 | + def getGunTilt(self) -> Tuple[int, int]: |
| 44 | + pass |
| 45 | + |
| 46 | + @abstractmethod |
| 47 | + def getHTValue(self) -> float: |
| 48 | + pass |
| 49 | + |
| 50 | + @abstractmethod |
| 51 | + def getImageShift1(self) -> Tuple[int, int]: |
| 52 | + pass |
| 53 | + |
| 54 | + @abstractmethod |
| 55 | + def getImageShift2(self) -> Tuple[int, int]: |
| 56 | + pass |
| 57 | + |
| 58 | + @abstractmethod |
| 59 | + def getIntermediateLensStigmator(self) -> Tuple[int, int]: |
| 60 | + pass |
| 61 | + |
| 62 | + @abstractmethod |
| 63 | + def getMagnification(self) -> int: |
| 64 | + pass |
| 65 | + |
| 66 | + @abstractmethod |
| 67 | + def getMagnificationAbsoluteIndex(self) -> int: |
| 68 | + pass |
| 69 | + |
| 70 | + @abstractmethod |
| 71 | + def getMagnificationIndex(self) -> int: |
| 72 | + pass |
| 73 | + |
| 74 | + @abstractmethod |
| 75 | + def getMagnificationRanges(self) -> dict: |
| 76 | + pass |
| 77 | + |
| 78 | + @abstractmethod |
| 79 | + def getObjectiveLensStigmator(self) -> Tuple[int, int]: |
| 80 | + pass |
| 81 | + |
| 82 | + @abstractmethod |
| 83 | + def getSpotSize(self) -> int: |
| 84 | + pass |
| 85 | + |
| 86 | + @abstractmethod |
| 87 | + def getStagePosition(self) -> Tuple[int, int, int, int, int]: |
| 88 | + pass |
| 89 | + |
| 90 | + @abstractmethod |
| 91 | + def isBeamBlanked(self) -> bool: |
| 92 | + pass |
| 93 | + |
| 94 | + @abstractmethod |
| 95 | + def isStageMoving(self) -> bool: |
| 96 | + pass |
| 97 | + |
| 98 | + @abstractmethod |
| 99 | + def release_connection(self) -> None: |
| 100 | + pass |
| 101 | + |
| 102 | + @abstractmethod |
| 103 | + def setBeamBlank(self, mode: bool) -> None: |
| 104 | + pass |
| 105 | + |
| 106 | + @abstractmethod |
| 107 | + def setBeamShift(self, x: int, y: int) -> None: |
| 108 | + pass |
| 109 | + |
| 110 | + @abstractmethod |
| 111 | + def setBeamTilt(self, x: int, y: int) -> None: |
| 112 | + pass |
| 113 | + |
| 114 | + @abstractmethod |
| 115 | + def setBrightness(self, value: int) -> None: |
| 116 | + pass |
| 117 | + |
| 118 | + @abstractmethod |
| 119 | + def setCondensorLensStigmator(self, x: int, y: int) -> None: |
| 120 | + pass |
| 121 | + |
| 122 | + @abstractmethod |
| 123 | + def setDiffFocus(self, value: int, confirm_mode: bool) -> None: |
| 124 | + pass |
| 125 | + |
| 126 | + @abstractmethod |
| 127 | + def setDiffShift(self, x: int, y: int) -> None: |
| 128 | + pass |
| 129 | + |
| 130 | + @abstractmethod |
| 131 | + def setFunctionMode(self, value: int) -> None: |
| 132 | + pass |
| 133 | + |
| 134 | + @abstractmethod |
| 135 | + def setGunShift(self, x: int, y: int) -> None: |
| 136 | + pass |
| 137 | + |
| 138 | + @abstractmethod |
| 139 | + def setGunTilt(self, x: int, y: int) -> None: |
| 140 | + pass |
| 141 | + |
| 142 | + @abstractmethod |
| 143 | + def setImageShift1(self, x: int, y: int) -> None: |
| 144 | + pass |
| 145 | + |
| 146 | + @abstractmethod |
| 147 | + def setImageShift2(self, x: int, y: int) -> None: |
| 148 | + pass |
| 149 | + |
| 150 | + @abstractmethod |
| 151 | + def setIntermediateLensStigmator(self, x: int, y: int) -> None: |
| 152 | + pass |
| 153 | + |
| 154 | + @abstractmethod |
| 155 | + def setMagnification(self, value: int) -> None: |
| 156 | + pass |
| 157 | + |
| 158 | + @abstractmethod |
| 159 | + def setMagnificationIndex(self, index: int) -> None: |
| 160 | + pass |
| 161 | + |
| 162 | + @abstractmethod |
| 163 | + def setObjectiveLensStigmator(self, x: int, y: int) -> None: |
| 164 | + pass |
| 165 | + |
| 166 | + @abstractmethod |
| 167 | + def setSpotSize(self, value: int) -> None: |
| 168 | + pass |
| 169 | + |
| 170 | + @abstractmethod |
| 171 | + def setStagePosition(self, x: int, y: int, z: int, a: int, b: int, wait: bool) -> None: |
| 172 | + pass |
| 173 | + |
| 174 | + @abstractmethod |
| 175 | + def stopStage(self) -> None: |
| 176 | + pass |
0 commit comments