- if (X >= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[0]-0.5 &&
- X <= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[1]+0.5 &&
- Y >= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[2]-0.5 &&
- Y <= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[3]+0.5 &&
- Z >= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[4]-0.5 &&
- Z <= mImage->GetVTKImages()[mCurrentTSlice]->GetWholeExtent()[5]+0.5) {
-
-
- int ix, iy, iz;
- double value = this->GetScalarComponentAsDouble(mImage->GetVTKImages()[mCurrentTSlice], X, Y, Z, ix, iy, iz);
-
- if(ImageActor->GetVisibility())
- worldPos << "data value : " << value << std::endl;
-
- worldPos << "mm : " << lrint(mCurrentBeforeSlicingTransform[0]) << ' '
- << lrint(mCurrentBeforeSlicingTransform[1]) << ' '
- << lrint(mCurrentBeforeSlicingTransform[2]) << ' '
- << mCurrentTSlice
- << std::endl;
- worldPos << "pixel : " << ix << ' '
- << iy << ' '
- << iz << ' '
- << mCurrentTSlice
- << std::endl;
- }
+ if (X >= this->GetInput()->GetWholeExtent()[0]-0.5 &&
+ X <= this->GetInput()->GetWholeExtent()[1]+0.5 &&
+ Y >= this->GetInput()->GetWholeExtent()[2]-0.5 &&
+ Y <= this->GetInput()->GetWholeExtent()[3]+0.5 &&
+ Z >= this->GetInput()->GetWholeExtent()[4]-0.5 &&
+ Z <= this->GetInput()->GetWholeExtent()[5]+0.5) {