add some todos

parent e8692bd0
......@@ -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
}
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment