diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 8a15fcce611e3f3f9b5179f0c51f4dee641fdf14..4bd4fb465fab0fbdd0f48a0c5f7d456d97362e56 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -1056,6 +1056,22 @@ void MainWindow::slotRunningTime(unsigned long timems) // msg.append(" milsec"); //labelRunningTime->setText(msg); ui.lcdRunningTime->display((int)timems); +// TODO HHH this slows down the thread + // std::cout << timems << "\n"; + + // QColor col="green"; + // if(fmod(timems,1000) <=100 ) + // { + // col=Qt::red; + // _visualisationThread->setExitsColor(col); + // } + // else if(fmod(timems,5000) <=100 ) + // { + // col=Qt::white; + // _visualisationThread->setExitsColor(col); + // } + + } void MainWindow::slotRenderingTime(int fps) @@ -1289,7 +1305,6 @@ void MainWindow::slotUpdateFrameSlider(int newValue) if(extern_first_dataset_loaded) { extern_trajectories_firstSet.setFrameCursorTo(update); //Debug::Error( " first dataset frames update to [1] : " <<update<<endl; - } } @@ -1494,6 +1509,7 @@ void MainWindow::slotNextFrame() int newValue=extern_trajectories_firstSet.getFrameCursor()+1; extern_trajectories_firstSet.setFrameCursorTo(newValue); //Debug::Error( " update to : " <<newValue<<endl; + // HH } } diff --git a/src/ThreadVisualisation.cpp b/src/ThreadVisualisation.cpp index 6af1af8bbbe626e02cec49b03889145856b7de30..f3ddac953d05fb45fbae9eb2177be53890cebaf6 100644 --- a/src/ThreadVisualisation.cpp +++ b/src/ThreadVisualisation.cpp @@ -140,7 +140,7 @@ void ThreadVisualisation::slotSetFrameRate(float fps) void ThreadVisualisation::run() { - +// std::cout << "RUN " << _runningTime << "\n"; //deactivate the output windows vtkObject::GlobalWarningDisplayOff(); @@ -311,6 +311,7 @@ void ThreadVisualisation::run() QObject::connect(renderingTimer, SIGNAL(signalRenderingTime(int)), this->parent(), SLOT(slotRenderingTime(int))); +// std::cout << "timer " << timer << "\n"; // Create my interactor style InteractorStyle* style = InteractorStyle::New(); @@ -410,7 +411,7 @@ void ThreadVisualisation::setGeometryVisibility( bool status) _geometry.Set2D(status); } else { - _geometry.Set3D(status); + _geometry.Set3D(status); } } @@ -514,8 +515,9 @@ void ThreadVisualisation::initGlyphs2D() if(frames.empty()) return; Frame * frame = frames.begin()->second; - +// std::cout << "FRAME " << frames.begin()->first << "\n"; vtkPolyData* pData=NULL; + if(frame) pData=frame->GetPolyData2D(); #if VTK_MAJOR_VERSION <= 5 @@ -819,6 +821,8 @@ void ThreadVisualisation::setExitsColor(const QColor &color) { double rbgColor[3]; QcolorToDouble(color,rbgColor); + // std::cout << "ENTER: " << rbgColor[0] << ", " << rbgColor[1] << ", " << rbgColor[2] << "\n"; +// HH _geometry.ChangeExitsColor(rbgColor); }