| 504 | } |
| 505 | |
| 506 | int cSimpleVisualiserGUI::myFinaliseInstance() |
| 507 | { |
| 508 | // FIRST call cDataSink myFinaliseInstance, this will finalise our dataWriter... |
| 509 | int ret = cDataSink::myFinaliseInstance(); |
| 510 | |
| 511 | int i; |
| 512 | if (ret && fullinput) { |
| 513 | nInputs = reader->getLevelN(); |
| 514 | if (nInputs > 0) { |
| 515 | inputNames = (const char**)calloc(1,sizeof(const char *)*nInputs); |
| 516 | inputScale = new FLOAT_DMEM[nInputs]; |
| 517 | inputOffset = new FLOAT_DMEM[nInputs]; |
| 518 | inputsIdx = new int[nInputs]; |
| 519 | FLOAT_DMEM scaleAll = getDouble("inputscaleFullinput"); |
| 520 | FLOAT_DMEM offsetAll = getDouble("inputoffsetFullinput"); |
| 521 | for (i=0; i<nInputs; i++) { |
| 522 | inputsIdx[i] = i; |
| 523 | inputNames[i] = reader->getElementName(inputsIdx[i]); |
| 524 | inputScale[i] = scaleAll; |
| 525 | inputOffset[i] = offsetAll; |
| 526 | } |
| 527 | } |
| 528 | } else |
| 529 | if (ret && nInputs > 0 ) { |
| 530 | inputNames = (const char**)calloc(1,sizeof(const char *)*nInputs); |
| 531 | if (inputsIdx == NULL) { |
| 532 | |
| 533 | inputsIdx = new int[nInputs]; |
| 534 | for (i=0; i<nInputs; i++) { |
| 535 | const char * tmp = getStr_f(myvprint("inputs[%i]",i)); |
| 536 | inputNames[i] = tmp; |
| 537 | if (tmp != NULL) { |
| 538 | long idx = getElidxFromName(tmp); |
| 539 | inputsIdx[i] = idx; |
| 540 | } else { |
| 541 | inputsIdx[i] = -1; |
| 542 | } |
| 543 | } |
| 544 | |
| 545 | } else { |
| 546 | for (i=0; i<nInputs; i++) { |
| 547 | inputNames[i] = reader->getElementName(inputsIdx[i]); |
| 548 | } |
| 549 | } |
| 550 | } |
| 551 | |
| 552 | smileMutexCreate(wxMtx); |
| 553 | |
| 554 | //yscale100 = 100.0 / inputScale[0]; |
| 555 | |
| 556 | //fo = new openSmilePluginGUI::TestForm(); |
| 557 | //IMPLEMENT_APP_NO_MAIN(appname) |
| 558 | if (!(int)smileThreadCreate(guiThr, wxVisAppThreadRunner, this)) { |
| 559 | SMILE_IERR(1,"error creating GUI thread!!"); |
| 560 | } |
| 561 | |
| 562 | return ret; |
| 563 | } |
nothing calls this directly
no test coverage detected