#if VTK_MAJOR_VERSION <= 5
clipper->SetInput(mLinesPolyData);
#else
- clipper->SetInputData(mLinesPolyData);
+ mLineTransform = vtkSmartPointer<vtkTransformPolyDataFilter>::New();
+ mLineTransform->SetInputData(mLinesPolyData);
+ mLineTransform->SetTransform(mCurrentSlicerManager->GetSlicer(slicer)->GetConcatenatedTransform()->GetInverse());
+ clipper->SetInputConnection(mLineTransform->GetOutputPort());
#endif
clipper->InsideOutOff();
clipper->Update();
#include <vtkTable.h>
#include <vtkContextView.h>
#include <vtkContextScene.h>
+#include <vtkTransformPolyDataFilter.h>
//------------------------------------------------------------------------------
class vvToolProfile:
std::string mTextFileName;
std::vector<vtkSmartPointer<vtkActor> > mLineActors;
vtkSmartPointer<vtkPolyData> mLinesPolyData;
+ vtkSmartPointer<vtkTransformPolyDataFilter> mLineTransform;
}; // end class vvToolProfile