I'm just trying to visualise a 3D volume of a 83 dicom series loaded using ITK by using VTKvolume but the scene generated is just a 3d cube with the series diplayed on top an bottom sides of the cube, how can I view the whole series in all the dimensions ?<br>----------------------------------------------<br>//configuiring VTk<br> vtkRenderer* renderer = vtkRenderer::New();<br><br> vtkRenderWindow* renWin = vtkRenderWindow::New();<br><br> renWin->AddRenderer(renderer);<br><br> vtkRenderWindowInteractor* iren = vtkRenderWindowInteractor::New();<br><br> iren->SetRenderWindow(renWin);<br><br><br><br> // Create transfer mapping scalar value to opacity<br><br> vtkPiecewiseFunction* opacityTransferFunction = <br> vtkPiecewiseFunction::New();<br><br> opacityTransferFunction->AddPoint(20.0,
0.0);<br><br> opacityTransferFunction->AddPoint(255.0, 0.2);<br><br> //Creating volume color <br> vtkColorTransferFunction * colorTransferFunction = vtkColorTransferFunction::New();<br> colorTransferFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0);<br> colorTransferFunction->AddRGBPoint(255.0, 1.0, 1.0, 1.0);<br><br> // The property describes how the data will look<br><br> vtkVolumeProperty* volumeProperty = vtkVolumeProperty::New();<br><br> volumeProperty->SetScalarOpacity(opacityTransferFunction);<br> volumeProperty->SetColor(colorTransferFunction);<br><br><br> // The mapper / ray cast functions know how to render the data<br><br> vtkVolumeRayCastCompositeFunction* compositeFunction = vtkVolumeRayCastCompositeFunction::New();<br><br>
vtkVolumeRayCastMapper* volumeMapper = vtkVolumeRayCastMapper::New();<br><br> volumeMapper->SetVolumeRayCastFunction(compositeFunction);<br><br> volumeMapper->SetInput(connector->GetOutput());<br><br> //creating the camera<br> vtkCamera *aCamera = vtkCamera::New();<br> aCamera->SetViewUp (0, 0, -1);<br> aCamera->SetPosition (0, 1, 0);<br> aCamera->SetFocalPoint (0, 0, 0);<br> aCamera->ComputeViewPlaneNormal();<br> renderer->SetActiveCamera(aCamera);<br> aCamera->Dolly(1.5);<br> renderer->ResetCamera();<br> renderer->ResetCameraClippingRange();<br><br> // The volume holds the mapper and the property and can be used to position/orient the volume<br><br> vtkVolume* volume =
vtkVolume::New();<br><br> volume->SetMapper(volumeMapper);<br><br> volume->SetProperty(volumeProperty);<br><br> <br> renderer->AddVolume(volume);<br> renderer->SetBackground(1,1, 1);<br><br> iren->Start();<br><BR><BR><p> 
                <hr size=1>Stay in the know. Pulse on the new Yahoo.com. <a href="http://us.rd.yahoo.com/evt=42974/*http://www.yahoo.com/preview"> Check it out.</a>