(self)
| 360 | self.graphFrame.draw() |
| 361 | |
| 362 | def getValues(self): |
| 363 | view = self.graphFrame.getView() |
| 364 | misc = [] |
| 365 | processedHandles = set() |
| 366 | |
| 367 | def addMiscData(handle, unit, value): |
| 368 | if handle in processedHandles: |
| 369 | return |
| 370 | inputData = InputData(handle=handle, unit=unit, value=value) |
| 371 | misc.append(inputData) |
| 372 | |
| 373 | # Main input box |
| 374 | main = InputData(handle=self._mainInputBox.handle, unit=self._mainInputBox.unit, value=self._mainInputBox.textBox.GetValueRange()) |
| 375 | processedHandles.add(self._mainInputBox.handle) |
| 376 | # Vectors |
| 377 | srcVectorDef = view.srcVectorDef |
| 378 | if srcVectorDef is not None: |
| 379 | if not self.srcVector.IsDirectionOnly: |
| 380 | addMiscData(handle=srcVectorDef.lengthHandle, unit=srcVectorDef.lengthUnit, value=self.srcVector.GetLength() * 100) |
| 381 | addMiscData(handle=srcVectorDef.angleHandle, unit=srcVectorDef.angleUnit, value=self.srcVector.GetAngle()) |
| 382 | tgtVectorDef = view.tgtVectorDef |
| 383 | if tgtVectorDef is not None: |
| 384 | if not self.tgtVector.IsDirectionOnly: |
| 385 | addMiscData(handle=tgtVectorDef.lengthHandle, unit=tgtVectorDef.lengthUnit, value=self.tgtVector.GetLength() * 100) |
| 386 | addMiscData(handle=tgtVectorDef.angleHandle, unit=tgtVectorDef.angleUnit, value=self.tgtVector.GetAngle()) |
| 387 | # Other input boxes |
| 388 | for inputBox in self._miscInputBoxes: |
| 389 | addMiscData(handle=inputBox.handle, unit=inputBox.unit, value=inputBox.textBox.GetValueFloat()) |
| 390 | # Checkboxes |
| 391 | for checkbox in self._inputCheckboxes: |
| 392 | addMiscData(handle=checkbox.handle, unit=None, value=checkbox.checkBox.GetValue()) |
| 393 | |
| 394 | return main, misc |
| 395 | |
| 396 | @property |
| 397 | def showLegend(self): |
no test coverage detected