#include "vtkPolyDataMapper.h"
#include "vtkRenderWindow.h"
#include "vtkTextActor3D.h"
+#include <vtkTextProperty.h>
namespace bbcreaMaracasVisu
{
//EED
int result_FD = FD->ShowModal();
-
+ std::string tmpLabel;
+
// This line is need it by windows //EED
FD->SetReturnCode( result_FD );
y=lstPointsY[i];
z=lstPointsZ[i];
value= mimage->GetScalarComponentAsDouble(x,y,z,0);
- fprintf(ff,"%d\t%d\t%d\t%f\t%s\n", x , y , z , value , lstLabels[i].c_str());
+ if (lstLabels[i]!="")
+ {
+ tmpLabel=lstLabels[i];
+ } else{
+ tmpLabel="<_VOID_>";
+ }
+ fprintf(ff,"%d\t%d\t%d\t%f\t%s\n", x , y , z , value , tmpLabel.c_str());
} // for
fclose(ff);
} else { // else ff
for (i=0; i<size; i++)
{
fscanf(ff,"%d%d%d%f%s",&x,&y,&z,&value,chartmp ); // x,y,z,value,label
+ if (strcmp(chartmp,"<_VOID_>")==0) { strcpy(chartmp,""); }
AddPoint(x,y,z, chartmp );
}
fclose(ff);
{
this->lstSourceSphere[i]->SetRadius(mradio);
this->lstActorsSphere[i]->GetProperty()->SetOpacity(mopacity);
+ this->lstActorsText[i]->GetTextProperty()->SetOpacity(mopacity);
this->lstActorsText[i]->SetPosition(this->lstActorsText[i]->GetPosition()[0]+difradio,this->lstActorsText[i]->GetPosition()[1], this->lstActorsText[i]->GetPosition()[2]);
}