//-----------------------------------------------------------------
void ShowNPoints::Process()
{
+ printf("EED ShowNPoints::Process start \n");
if (mwxwidget!=NULL)
{
mwxwidget->SetImage( bbGetInputImage() );
mwxwidget->SetColour( bbGetInputColour() );
// mwxwidget->SetOpacity( bbGetInputOpacity() );
mwxwidget->SetRadio( bbGetInputRadio() );
+ printf("EED ShowNPoints::Process flag 1 \n");
if ( backOpacity!=bbGetInputOpacity() )
{
backOpacity = bbGetInputOpacity();
// firsttime=false;
if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==false )
{
+ printf("EED ShowNPoints::Process flag 2.1 \n");
mwxwidget->DetectCollectionActive();
+ printf("EED ShowNPoints::Process flag 2.2 \n");
}
if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==true )
{
+ printf("EED ShowNPoints::Process flag 3 \n");
mwxwidget->GetModelShowNPoints()->SetFirstTime(false);
mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
}
// } // firsttime OJO machete Eduardo pour ANDREAS a verificar
+ printf("EED ShowNPoints::Process flag 10 \n");
mwxwidget->AutoAddPoints();
+ printf("EED ShowNPoints::Process flag 20 \n");
mwxwidget->TrackingPoint();
+ printf("EED ShowNPoints::Process flag 30 \n");
bbSetOutputlstPointsX( mwxwidget->GetLstPointsX() );
bbSetOutputlstPointsY( mwxwidget->GetLstPointsY() );
bbSetOutputlstPointsZ( mwxwidget->GetLstPointsZ() );
bbSetOutputlstSelectedIndexs( mwxwidget->GetLstSelectedIndexs() );
bbSetOutputWidgetShowNPoints( (WidgetShowNPoints*)mwxwidget );
} // mwxwidget
+ printf("EED ShowNPoints::Process end \n");
}
//-----------------------------------------------------------------
void ViewShowNPoints::RefreshPoints()
{
RefreshEachPoint();
- renderer->GetRenderWindow()->Render();
+ if (renderer!=NULL)
+ {
+ renderer->GetRenderWindow()->Render();
+ }
}
//------------------------------------------------------------------------
//------------------------------------------------------------------------
void ViewShowNPoints::Render()
{
- renderer->GetRenderWindow()->Render();
+ if (renderer!=NULL)
+ {
+ renderer->GetRenderWindow()->Render();
+ }
}
//------------------------------------------------------------------------