Returns most recent IRMap output from the IRGenerator @return Most recent IRMap @throws GeneralException We are talking to a hardware sensor, so exceptions are possible
()
| 95 | * @throws GeneralException We are talking to a hardware sensor, so exceptions are possible |
| 96 | */ |
| 97 | public IRMap getIRMap() throws GeneralException |
| 98 | { |
| 99 | int frameID = getFrameID(); |
| 100 | |
| 101 | if ((this.currIRMap == null) || (this.currIRMapFrameID != frameID)) |
| 102 | { |
| 103 | long ptr = NativeMethods.xnGetIRMap(toNative()); |
| 104 | MapOutputMode mode = getMapOutputMode(); |
| 105 | this.currIRMap = new IRMap(ptr, mode.getXRes(), mode.getYRes()); |
| 106 | this.currIRMapFrameID = frameID; |
| 107 | } |
| 108 | |
| 109 | return this.currIRMap; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * Retrieves the most recent IRMetaData object from the Generator |
nothing calls this directly
no test coverage detected