Hello everyone,<div><br></div><div>I have a 3D scene with volumetric data, where the user can place a cutting plane. Normally this cutting plane is applied to the volume, so that a part of the volume is cut away. This looks something like this:</div>
<div><br></div><div><div>volumeMapper = vtkSmartPointer<vtkGPUVolumeRayCastMapper>::New();</div><div>volumeMapper->AddClippingPlane(clipPlane);</div><div>volumeMapper->SetInputConnection(reader->GetOutputPort());</div>
</div><div><br></div><div>So I have the following pipeline: vtkStructuredPointsReader -> vtkGPUVolumeRayCastMapper -> vtkVolume</div><div><br></div><div>Now, as an alternative representation I want to add a 2D view of the cutting plane, and let this fill the whole renderer. I am able to get a 2D representation, but the display stays very small.</div>
<div>For this I use the pipeline: vtkStructuredPointsReader -> vtkCutter -> vtkPolyDataMapper2D -> vtkActor2D</div><div><br></div><div>In order to let the vtkActor2D cover the whole renderer, I tried this:</div>
<div>
<br></div><div><div>cutActor->GetPositionCoordinate() ->SetCoordinateSystemToNormalizedViewport();</div><div>cutActor->GetPosition2Coordinate()->SetCoordinateSystemToNormalizedViewport();</div><div>cutActor->SetPosition(0.0, 0.0);</div>
<div>cutActor->SetPosition2(1.0, 1.0);</div></div><div><br></div><div>The setPosition() call seems to work ( I can move the 2D cut around), but the setPosition2() seems to be doing nothing. No matter what values I use, the 2D representation always stays the same size.</div>
<div><br></div><div>Am I going in the right direction for displaying something like this? If so, how can I adjust it so that 2D actor gets larger? If it's not the way to go, are there other ways to solve this problem?</div>
<div>To visualize the problem, I've upload a screenshot that shows what is going wrong: <a href="http://dl.dropbox.com/u/27566470/2dview.png">http://dl.dropbox.com/u/27566470/2dview.png</a> Here you can see the standard 3D view and the very small 2D view of the cut.</div>
<div><br></div><div>Cheers,</div><div>Tijmen</div>