+//NTU: Method for updating points opacity and Radio
+
+//------------------------------------------------------------------------
+void WidgetShowNPoints::UpdatePoints(wxCommandEvent &event)
+{
+ //Difference in Radio for text placement
+ int difradio = sdrRadio->GetValue() - this->mradio;
+
+ this->mopacity = sdrOpacity->GetValue()/100.0;
+ this->mradio = sdrRadio->GetValue();
+
+ //NTU refresh the inputs
+ mbbShowNPoints->bbSetInputOpacity(this->mopacity);
+ mbbShowNPoints->bbSetInputRadio(this->mradio);
+
+ int size = (int) this->lstActorsSphere.size();
+ int i;
+ for(i = 0; i < size; i ++)
+ {
+ this->lstSourceSphere[i]->SetRadius(mradio);
+ this->lstActorsSphere[i]->GetProperty()->SetOpacity(mopacity);
+ this->lstActorsText[i]->SetPosition(this->lstActorsText[i]->GetPosition()[0]+difradio,this->lstActorsText[i]->GetPosition()[1], this->lstActorsText[i]->GetPosition()[2]);
+ }
+
+ //NTU: For updating
+ SetOutputBox();
+}
+