1 /*# ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------ */
26 #include "bbmaracasvisuShowNPoints.h"
27 #include "bbcreaMaracasVisuPackage.h"
29 #include "vtkProperty.h"
30 #include "vtkSphereSource.h"
31 #include "vtkPolyDataMapper.h"
32 #include "vtkRenderWindow.h"
33 #include "vtkTextActor3D.h"
34 #include <vtkTextProperty.h>
36 namespace bbcreaMaracasVisu
39 //----------------------------------------------------------------------
40 WidgetShowNPoints::WidgetShowNPoints(wxWindow *parent, bbcreaMaracasVisu::ShowNPoints *box)
41 : wxPanel( parent, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL)
44 this->renderer = NULL;
45 wxPanel *panel = this;
46 wxSizer *sizer = NULL;
48 if (mbbShowNPoints->bbGetInputType()==0)
51 askPointLabel = new wxStaticText(panel, -1, _T("Point label :")); // JPR
52 textCtrl = new wxTextCtrl(panel, -1);
53 wxButton *btnAddPoint = new wxButton( panel, -1, _T("Add Point"));
54 wxButton *btnSetPositionPoint = new wxButton( panel, -1, _T("Set nearest point"));
55 wxButton *btnRenamePoint = new wxButton( panel, -1, _T("Rename point"));
56 wxButton *btnEraseLastPoint = new wxButton( panel, -1, _T("Erase Last point"));
57 wxButton *btnErasePoint = new wxButton( panel, -1, _T("Erase point"));
58 wxButton *btnDeleteAllPoints = new wxButton( panel, -1, _T("Delete all points"));
59 wxButton *btnSavePoints = new wxButton( panel, -1, _T("Save points"));
60 wxButton *btnLoadPoints = new wxButton( panel, -1, _T("Load points"));
61 txtNrPoints = new wxStaticText(panel,-1, _T(" "));
63 //NTU: Sliders for opacity and radio change
64 wxStaticText* txOpacity = new wxStaticText(this, -1, wxString(_T(" Points Opacity ")));
65 sdrOpacity = new wxSlider(this, -1, 0, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
66 wxStaticText* txRadio = new wxStaticText(this, -1, wxString(_T(" Points Radio ")));
67 sdrRadio = new wxSlider(this, -1, 0, 1, 50, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
69 wxFlexGridSizer *sizer1 = new wxFlexGridSizer(1);
70 // sizer1->Add(new wxStaticText(panel,-1,_T(" ")));
72 Connect(btnAddPoint->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnAddPoint);
73 Connect(btnSetPositionPoint->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnSetPoint);
74 Connect(btnRenamePoint->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnRenamePoint);
75 Connect(btnEraseLastPoint->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnEraseLastPoint);
76 Connect(btnErasePoint->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnErasePoint);
77 Connect(btnDeleteAllPoints->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnDeleteAllPoints);
78 Connect(btnSavePoints->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnSavePoints);
79 Connect(btnLoadPoints->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnLoadPoints);
82 Connect(sdrOpacity->GetId() , wxEVT_COMMAND_SLIDER_UPDATED , (wxObjectEventFunction) &WidgetShowNPoints::UpdatePoints);
83 Connect(sdrRadio->GetId() , wxEVT_COMMAND_SLIDER_UPDATED , (wxObjectEventFunction) &WidgetShowNPoints::UpdatePoints);
85 sizer1->Add(askPointLabel); // JPR
86 sizer1->Add(textCtrl);
87 sizer1->Add(btnAddPoint);
88 sizer1->Add(btnSetPositionPoint);
89 sizer1->Add(btnRenamePoint);
90 sizer1->Add(btnErasePoint);
91 sizer1->Add(btnEraseLastPoint);
92 sizer1->Add(btnDeleteAllPoints);
93 sizer1->Add(txtNrPoints);
94 sizer1->Add(txOpacity);
95 sizer1->Add(sdrOpacity,1,wxGROW );
97 sizer1->Add(sdrRadio,1,wxGROW );
98 sizer1->Add(btnSavePoints);
99 sizer1->Add(btnLoadPoints);
103 if (mbbShowNPoints->bbGetInputType()==1)
106 wxButton *btnSetPositionPoint = new wxButton( panel, -1, _T("Set nearest point"));
107 txtNrPoints = new wxStaticText(panel,-1, _T(" "));
109 //NTU: Sliders for opacity and radio change
110 wxStaticText* txOpacity = new wxStaticText(this, -1, wxString(_T(" Points Opacity ")));
111 sdrOpacity = new wxSlider(this, -1, 0, 0, 100, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
112 wxStaticText* txRadio = new wxStaticText(this, -1, wxString(_T(" Points Radio ")));
113 sdrRadio = new wxSlider(this, -1, 0, 1, 50, wxDefaultPosition, wxDefaultSize, wxSL_LABELS);
114 wxFlexGridSizer *sizer1 = new wxFlexGridSizer(1);
115 Connect(btnSetPositionPoint->GetId() , wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &WidgetShowNPoints::OnSetPoint);
116 Connect(sdrOpacity->GetId() , wxEVT_COMMAND_SLIDER_UPDATED , (wxObjectEventFunction) &WidgetShowNPoints::UpdatePoints);
117 Connect(sdrRadio->GetId() , wxEVT_COMMAND_SLIDER_UPDATED , (wxObjectEventFunction) &WidgetShowNPoints::UpdatePoints);
119 sizer1->Add(btnSetPositionPoint);
120 sizer1->Add(txtNrPoints);
121 sizer1->Add(txOpacity);
122 sizer1->Add(sdrOpacity,1,wxGROW );
123 sizer1->Add(txRadio);
124 sizer1->Add(sdrRadio,1,wxGROW );
128 if (mbbShowNPoints->bbGetInputType() == 2) {
129 askPointLabel = new wxStaticText(panel, -1, _T("\nPOINT CONTROLS:")); // JPR
131 wxButton *btnAddPoint = new wxButton(panel, -1, _T(" Add Point "));
132 wxButton *btnDeleteAllPoints = new wxButton(panel, -1, _T(" Delete All "));
133 wxStaticText* spacer = new wxStaticText(panel, -1, _T("\n")); // JPR
134 textCtrl = new wxTextCtrl(panel, -1);
136 wxFlexGridSizer *sizer1 = new wxFlexGridSizer(1);
138 Connect(btnAddPoint->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction) & WidgetShowNPoints::OnAddPoint);
139 Connect(btnDeleteAllPoints->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction) & WidgetShowNPoints::OnDeleteAllPoints);
141 sizer1->Add(askPointLabel);
142 sizer1->Add(btnAddPoint);
143 sizer1->Add(btnDeleteAllPoints);
145 sizer1->Add(textCtrl);
147 sdrOpacity = new wxSlider();
148 sdrRadio = new wxSlider();
150 txtNrPoints = new wxStaticText(panel, -1, _T("\n\n\n"));
156 panel->SetSizer(sizer);
157 panel->SetAutoLayout(true);
162 //------------------------------------------------------------------------
163 WidgetShowNPoints::~WidgetShowNPoints()
167 //------------------------------------------------------------------------
168 void WidgetShowNPoints::SetRadio(double radio)
172 sdrRadio->SetValue(this->mradio);
175 //------------------------------------------------------------------------
176 std::vector<int> WidgetShowNPoints::GetLstPointsX()
181 //------------------------------------------------------------------------
182 std::vector<int> WidgetShowNPoints::GetLstPointsY()
187 //------------------------------------------------------------------------
188 std::vector<int> WidgetShowNPoints::GetLstPointsZ()
193 //------------------------------------------------------------------------
194 std::vector<std::string> WidgetShowNPoints::GetLstLabels()
199 //------------------------------------------------------------------------
200 void WidgetShowNPoints::SetPoint(std::vector<int> ppoint)
205 //------------------------------------------------------------------------
206 void WidgetShowNPoints::SetColour(std::vector<double> colour)
208 this->mcolour = colour;
211 //------------------------------------------------------------------------
212 void WidgetShowNPoints::SetOpacity(double opacity)
214 this->mopacity=opacity;
216 sdrOpacity->SetValue(this->mopacity*100.0);
219 //------------------------------------------------------------------------
220 void WidgetShowNPoints::SetImage(vtkImageData *image)
225 //------------------------------------------------------------------------
226 void WidgetShowNPoints::SetRenderer(vtkRenderer *renderer)
228 this->renderer = renderer;
231 //------------------------------------------------------------------------
233 std::string WidgetShowNPoints::CleanSpaces(std::string ss)
236 while( (i=ss.find(32))>=0 )
244 //------------------------------------------------------------------------
246 void WidgetShowNPoints::RefreshPoint(int id)
248 int x = lstPointsX[id];
249 int y = lstPointsY[id];
250 int z = lstPointsZ[id];
253 mimage->GetSpacing(spc);
255 lstActorsSphere[id]->SetPosition( spc[0]*x , spc[1]*y , spc[2]*z );
256 lstActorsSphere[id]->GetProperty()->SetColor( mcolour[0] , mcolour[1] , mcolour[2] );
257 lstActorsSphere[id]->GetProperty()->SetOpacity( mopacity );
259 lstActorsText[id]->SetPosition( mradio+spc[0]*x , spc[1]*y , spc[2]*z );
263 //------------------------------------------------------------------------
264 void WidgetShowNPoints::AddPoint(int x, int y, int z, std::string label)
266 lstPointsX.push_back( x );
267 lstPointsY.push_back( y );
268 lstPointsZ.push_back( z );
270 std::string strLabel = CleanSpaces( label );
272 lstLabels.push_back( strLabel );
275 vtkSphereSource *vtksphere = vtkSphereSource::New();
276 vtksphere->SetThetaResolution (20);
277 vtksphere->SetPhiResolution (20);
278 vtksphere->SetRadius( mradio );
280 //NTU: For updating points
282 lstSourceSphere.push_back(vtksphere);
284 vtkPolyDataMapper *sphereMapper = vtkPolyDataMapper::New();
285 sphereMapper->SetInput( vtksphere->GetOutput() );
286 vtkActor *sphereActor = vtkActor::New();
287 sphereActor->SetMapper(sphereMapper);
288 sphereActor->SetOrigin(0, 0, 0);
293 wxMessageDialog dialog(this, _T("Image Not Set"),_T("Image Not Set"),wxICON_ERROR);
297 mimage->GetSpacing(spc);
298 sphereActor->SetPosition( spc[0]*x , spc[1]*y , spc[2]*z );
299 sphereActor->GetProperty()->SetColor( mcolour[0] , mcolour[1] , mcolour[2] );
300 sphereActor->GetProperty()->SetOpacity( mopacity );
303 lstActorsSphere.push_back(sphereActor);
305 wxMessageDialog dialog(this, _T("Renderer Not Set"),_T("Renderer Not Set"),wxICON_ERROR);
309 renderer->AddActor( sphereActor );
312 vtkTextActor3D *textActor = vtkTextActor3D::New();
314 textActor->SetPosition( mradio+spc[0]*x , spc[1]*y , spc[2]*z );
316 textActor->SetInput( strLabel.c_str() );
317 renderer->AddActor( textActor );
318 lstActorsText.push_back(textActor);
320 RefreshPoint(lstPointsX.size()-1);
323 //------------------------------------------------------------------------
324 void WidgetShowNPoints::OnAddPoint (wxCommandEvent& event)
327 wxMessageDialog dialog(this, _T("Image Not Set"),_T("Image Not Set"),wxICON_ERROR);
332 if (this->renderer!=NULL){
333 if (mpoint.size()==3){
334 AddPoint(mpoint[0],mpoint[1],mpoint[2], (const char*) ( textCtrl->GetValue().mb_str() ) );
336 } else {//mpoint.size
337 printf("creaMaracasVisu::ShowNPoints (not match point) \n");
342 //------------------------------------------------------------------------
343 void WidgetShowNPoints::SetOutputBox()
345 renderer->GetRenderWindow()->Render();
347 strTmp.Printf(_T("Nbr of points: %d"), (int)(lstPointsX.size()) );
348 txtNrPoints->SetLabel( strTmp );
351 mbbShowNPoints->bbSetOutputlstPointsX( lstPointsX );
352 mbbShowNPoints->bbSetOutputlstPointsY( lstPointsY );
353 mbbShowNPoints->bbSetOutputlstPointsZ( lstPointsZ );
354 mbbShowNPoints->bbSetOutputlstLabels( lstLabels );
356 mbbShowNPoints->bbSignalOutputModification();
359 // mbbShowNPoints->bbSignalOutputModification(std::string("lstPointsX"));
360 // mbbShowNPoints->bbSignalOutputModification(std::string("lstPointsY"));
361 // mbbShowNPoints->bbSignalOutputModification(std::string("lstPointsZ"));
362 // mbbShowNPoints->bbSignalOutputModification(std::string("lstLabels"));
365 //------------------------------------------------------------------------
366 void WidgetShowNPoints::OnSavePoints(wxCommandEvent& event)
368 wxFileDialog* FD = new wxFileDialog( 0,
369 _T("Save points .."),
373 wxSAVE | wxOVERWRITE_PROMPT,
377 int result_FD = FD->ShowModal();
378 std::string tmpLabel;
380 // This line is need it by windows //EED
381 FD->SetReturnCode( result_FD );
383 if (FD->GetReturnCode()==wxID_OK)
386 std::string filename= (const char*) ( FD->GetPath().mb_str() );
387 ff = fopen( filename.c_str() , "w+" );
390 int i , size = (int) (lstActorsSphere.size());
391 fprintf(ff,"NumberOfPoints %d \n",size);
392 fprintf(ff," X\tY\tZ\tvalue\tLabel\n");
395 for (i=0; i<size; i++)
400 value= mimage->GetScalarComponentAsDouble(x,y,z,0);
401 if (lstLabels[i]!="")
403 tmpLabel=lstLabels[i];
407 fprintf(ff,"%d\t%d\t%d\t%f\t%s\n", x , y , z , value , tmpLabel.c_str());
411 printf("WidgetShowNPoints::OnSavePoints ...Error... creating file");
416 //------------------------------------------------------------------------
417 void WidgetShowNPoints::OnLoadPoints(wxCommandEvent& event)
419 wxFileDialog* FD = new wxFileDialog( 0,
420 _T("Load points .."),
424 wxOPEN | wxFILE_MUST_EXIST,
428 int result_FD = FD->ShowModal();
430 // This line is need it by windows //EED
431 FD->SetReturnCode( result_FD );
433 if (FD->GetReturnCode()==wxID_OK)
436 std::string filename= (const char*) ( FD->GetPath().mb_str() );
437 ff = fopen( filename.c_str() , "r+" );
442 fscanf(ff," %s %d",chartmp,&size);
443 fscanf(ff," %s %s %s %s %s",chartmp, chartmp,chartmp,chartmp,chartmp );
447 for (i=0; i<size; i++)
449 fscanf(ff,"%d%d%d%f%s",&x,&y,&z,&value,chartmp ); // x,y,z,value,label
450 if (strcmp(chartmp,"<_VOID_>")==0) { strcpy(chartmp,""); }
451 AddPoint(x,y,z, chartmp );
456 printf("WidgetShowNPoints::OnLoadPoints ...Error... reading file");
463 //------------------------------------------------------------------------
465 int WidgetShowNPoints::GetNearestPoint()
468 int i, size=(int)(lstActorsSphere.size());
469 double radioMin=10000000;
472 wxMessageDialog* diag = new wxMessageDialog(this, _T("Image not set"), _T("Image Not Set"), wxICON_ERROR);
477 for ( i=0 ; i<size; i++ )
479 double rx = mpoint[0] - lstPointsX [i];
480 double ry = mpoint[1] - lstPointsY [i];
481 double rz = mpoint[2] - lstPointsZ [i];
482 double radio = rx*rx + ry*ry + rz*rz;
483 if ( radio <= radioMin)
495 //------------------------------------------------------------------------
496 void WidgetShowNPoints::OnSetPoint(wxCommandEvent& event)
498 int id=GetNearestPoint();
499 if((id==-1) && (mbbShowNPoints->bbGetInputType()==1))
509 printf("WidgetShowNPoints::OnSetPoint \n");
510 lstPointsX[id] = mpoint[0];
511 lstPointsY[id] = mpoint[1];
512 lstPointsZ[id] = mpoint[2];
515 this->lstActorsSphere[id]->SetPosition( spc[0]*mpoint[0]+difradio, spc[1]*mpoint[1], spc[2]* mpoint[2] );
516 this->lstActorsText[id]->SetPosition( spc[0]*mpoint[0]+difradio, spc[1]*mpoint[1], spc[2]* mpoint[2] );
523 //------------------------------------------------------------------------
525 int WidgetShowNPoints::IdInsidePoint()
528 int i, size=(int)(lstActorsSphere.size());
532 wxMessageDialog* diag = new wxMessageDialog(this, _T("Image not set"), _T("Image Not Set"), wxICON_ERROR);
537 mimage->GetSpacing(spc);
539 for ( i=0 ; i<size; i++ )
541 double rx = spc[0]*(mpoint[0] - lstPointsX [i]);
542 double ry = spc[1]*(mpoint[1] - lstPointsY [i]);
543 double rz = spc[2]*(mpoint[2] - lstPointsZ [i]);
544 if ( rx*rx + ry*ry + rz*rz <= mradio*mradio)
554 //------------------------------------------------------------------------
555 void WidgetShowNPoints::OnRenamePoint(wxCommandEvent& event)
557 int id=IdInsidePoint();
560 std::string strLabel = CleanSpaces( (const char*) ( textCtrl->GetValue().mb_str() ) );
561 lstLabels[id] = CleanSpaces( (const char*) (textCtrl->GetValue().mb_str()) ) ;
562 lstActorsText[id]->SetInput( lstLabels[id].c_str() );
567 //------------------------------------------------------------------------
568 void WidgetShowNPoints::ErasePoint(int id)
570 if (this->renderer!=NULL){
572 renderer->RemoveActor( lstActorsSphere[id] );
573 renderer->RemoveActor( lstActorsText[id] );
574 lstActorsSphere[id]->Delete();
575 lstActorsText[id]->Delete();
576 lstSourceSphere[id]->Delete();
577 lstActorsSphere.erase( lstActorsSphere.begin()+id );
578 lstActorsText.erase( lstActorsText.begin()+id );
579 lstSourceSphere.erase( lstSourceSphere.begin()+id );
581 lstPointsX.erase( lstPointsX.begin()+id );
582 lstPointsY.erase( lstPointsY.begin()+id );
583 lstPointsZ.erase( lstPointsZ.begin()+id );
584 lstLabels.erase( lstLabels.begin()+id );
592 //------------------------------------------------------------------------
593 void WidgetShowNPoints::OnErasePoint(wxCommandEvent& event)
595 ErasePoint( IdInsidePoint() );
598 //------------------------------------------------------------------------
599 void WidgetShowNPoints::OnEraseLastPoint(wxCommandEvent& event)
601 ErasePoint(lstActorsSphere.size()-1);
604 //------------------------------------------------------------------------
605 void WidgetShowNPoints::OnDeleteAllPoints(wxCommandEvent& event)
607 int id,size=lstActorsSphere.size();
608 for (id=size-1;id>=0;id--)
614 //NTU: Method for updating points opacity and Radio
616 //------------------------------------------------------------------------
617 void WidgetShowNPoints::UpdatePoints(wxCommandEvent &event)
619 //Difference in Radio for text placement
620 int difradio = sdrRadio->GetValue() - this->mradio;
622 this->mopacity = sdrOpacity->GetValue()/100.0;
623 this->mradio = sdrRadio->GetValue();
625 //NTU refresh the inputs
626 mbbShowNPoints->bbSetInputOpacity(this->mopacity);
627 mbbShowNPoints->bbSetInputRadio(this->mradio);
629 int size = (int) this->lstActorsSphere.size();
631 for(i = 0; i < size; i ++)
633 this->lstSourceSphere[i]->SetRadius(mradio);
634 this->lstActorsSphere[i]->GetProperty()->SetOpacity(mopacity);
635 this->lstActorsText[i]->GetTextProperty()->SetOpacity(mopacity);
636 this->lstActorsText[i]->SetPosition(this->lstActorsText[i]->GetPosition()[0]+difradio,this->lstActorsText[i]->GetPosition()[1], this->lstActorsText[i]->GetPosition()[2]);
640 //EED SetOutputBox();
641 renderer->GetRenderWindow()->Render();
645 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ShowNPoints)
646 BBTK_BLACK_BOX_IMPLEMENTATION(ShowNPoints,bbtk::WxBlackBox);
648 //-----------------------------------------------------------------
649 void ShowNPoints::Process()
653 mwxwidget->SetRenderer( bbGetInputRenderer() );
654 mwxwidget->SetPoint( bbGetInputIn() );
655 mwxwidget->SetImage( bbGetInputImage() );
656 mwxwidget->SetColour( bbGetInputColour() );
657 mwxwidget->SetOpacity( bbGetInputOpacity() );
658 mwxwidget->SetRadio( bbGetInputRadio() );
660 bbSetOutputlstPointsX( mwxwidget->GetLstPointsX() );
661 bbSetOutputlstPointsY( mwxwidget->GetLstPointsY() );
662 bbSetOutputlstPointsZ( mwxwidget->GetLstPointsZ() );
663 bbSetOutputlstLabels( mwxwidget->GetLstLabels() );
668 //-----------------------------------------------------------------
669 void ShowNPoints::CreateWidget(wxWindow* parent)
671 mwxwidget = new WidgetShowNPoints( parent, this);
672 bbSetOutputWidget( mwxwidget );
675 //-----------------------------------------------------------------
676 void ShowNPoints::bbUserSetDefaultValues()
681 bbSetInputOpacity(1);
683 std::vector<double> colour;
684 colour.push_back(1.0);
685 colour.push_back(0.0);
686 colour.push_back(0.0);
687 bbSetInputColour(colour);
689 bbSetInputImage(NULL);
691 bbSetInputRenderer(NULL);
694 //-----------------------------------------------------------------
695 void ShowNPoints::bbUserInitializeProcessing()
699 //-----------------------------------------------------------------
700 void ShowNPoints::bbUserFinalizeProcessing()
704 //-----------------------------------------------------------------
707 // EO namespace bbcreaMaracasVisu