[vtkusers] About 2D display with VTK
Liu Jiquan
shade_cn at yahoo.com
Wed Oct 18 23:49:38 EDT 2000
Hi, everyone,
I am a newbie in programming with VTK, with following code I can display axial 2D plane,
but how can I display sagittal and coronal 2D plane?
vtkStructuredPoints *StructuredPointsData;
vtkVolumeAnalyzeReader *pAnalyxeVolumeReader = vtkVolumeAnalyzeReader::New();
StructuredPointsData = pAnalyxeVolumeReader->GetOutput();
vtkImageMapper *ImageMapper = vtkImageMapper::New();
ImageMapper->SetInput(StructuredPointsData);
vtkActor2D *Actor2D = vtkActor2D::New();
Actor2D->SetMapper(ImageMapper);
vtkImager *Imager;
vtkWin32OpenGLImageWindow *ImageWindow;
Imager = vtkImager::New();
ImageWindow = vtkWin32OpenGLImageWindow::New();
ImageWindow->AddImager(this->Imager);
Imager->AddProp(Actor2D);
ImageWindow->Render();
Best Regards,
Shadeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿðèbj(ÿôÚKhÊ«~¸Û(X§{
¡¢ÌzË«þm§ÿÿoòj(ýÊ&
More information about the vtkusers
mailing list