// if (firsttime==true)
// {
// firsttime=false;
- if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==false )
+ if (onshowwidget==true)
{
- mwxwidget->DetectCollectionActive();
- }
- if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==true )
- {
- mwxwidget->GetModelShowNPoints()->SetFirstTime(false);
- mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
- }
+ if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==false )
+ {
+ mwxwidget->DetectCollectionActive();
+ }
+ if ( mwxwidget->GetModelShowNPoints()->GetFirstTime()==true )
+ {
+ mwxwidget->GetModelShowNPoints()->SetFirstTime(false);
+ mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
+ }
+ } // if onshowwidget
// } // firsttime OJO machete Eduardo pour ANDREAS a verificar
mwxwidget->AutoAddPoints();
mwxwidget->TrackingPoint();
//-----------------------------------------------------------------
void ShowNPoints::OnShowWidget()
{
+ onshowwidget=true;
printf("EED ShowNPoints::OnShowWidget\n");
mwxwidget->SetRenderer( bbGetInputRenderer() );
mwxwidget->SetInitLstPoints( bbGetInputInitLstPointsX() , bbGetInputInitLstPointsY() , bbGetInputInitLstPointsZ() , bbGetInputInitLstLabels() , bbGetInputInitLstIndexs() );
//-----------------------------------------------------------------
void ShowNPoints::bbUserSetDefaultValues()
{
+ onshowwidget= false;
firsttime = true;
backOpacity = -1;
mwxwidget = NULL;