{
QString position = "";
- cout << mCurrentSlicerManager->GetSelectedSlicer() << endl;
+ if(mCurrentSlicerManager) {
if (mPoint1Selected) {
ProfileWidget->hide();
vtkSmartPointer<vtkChartXY> chart = vtkSmartPointer<vtkChartXY>::New();
mFilter->SetInputVVImage(mCurrentImage);
mFilter->SetArgsInfo(mArgsInfo);
mFilter->Update();
- //mImageLine = mFilter->GetOutputVVImage();
++ //Creation of the XY chart
vtkSmartPointer<vtkTable> table = vtkSmartPointer<vtkTable>::New();
vtkSmartPointer<vtkFloatArray> arrX = vtkSmartPointer<vtkFloatArray>::New();
vtkSmartPointer<vtkFloatArray> arrY = vtkSmartPointer<vtkFloatArray>::New();
arrX = mFilter->GetArrayX();
arrY = mFilter->GetArrayY();
- arrX->SetName("Voxel");
+ arrX->SetName("Distance (mm)");
arrY->SetName("Intensity");
++
table->AddColumn(arrX);
table->AddColumn(arrY);
fileOpen << endl;
while (i<arrX->GetNumberOfTuples()) {
-- fileOpen << arrX->GetTuple(i)[0] << "\t" << arrY->GetTuple(i)[0] << "\t" ;
++ fileOpen << i << "\t" << arrY->GetTuple(i)[0] << "\t" ;
coords->GetTuple(i, tuple);
for (int j=0; j<mCurrentSlicerManager->GetImage()->GetNumberOfDimensions() ; ++j) {