- for(int i=0;i<mCurrentSlicerManager->NumberOfSlicers(); i++) {
- mImageContour.push_back(new vvImageContour);
- mImageContour[i]->setSlicer(mCurrentSlicerManager->GetSlicer(i));
- mImageContour[i]->setColor(1.0, 0.0, 0.0);
- mImageContourLower.push_back(new vvImageContour);
- mImageContourLower[i]->setSlicer(mCurrentSlicerManager->GetSlicer(i));
- mImageContourLower[i]->setColor(0.0, 0.0, 1.0);
+ for(int i=0; i<mCurrentSlicerManager->GetNumberOfSlicers(); i++) {
+ mImageContour.push_back(vvImageContour::New());
+ mImageContour[i]->SetSlicer(mCurrentSlicerManager->GetSlicer(i));
+ mImageContour[i]->SetColor(1.0, 0.0, 0.0);
+ mImageContour[i]->SetDepth(100); // to be in front of (whe used with ROI tool)
+ mImageContourLower.push_back(vvImageContour::New());
+ mImageContourLower[i]->SetSlicer(mCurrentSlicerManager->GetSlicer(i));
+ mImageContourLower[i]->SetColor(0.0, 0.0, 1.0);
+ mImageContourLower[i]->SetDepth(100); // to be in front of (whe used with ROI tool)