shamantou blog site

shamantou@gmail.com

导航

设置vtkImagePlaneWidget

     
     //设置vtkImagePlaneWidget
     app->pview4->pvtkImagePlaneWidget->DisplayTextOn();
     app->pview4->pvtkImagePlaneWidget->SetInput((vtkDataSet *)pvtkImageReader->GetOutput());
     app->pview4->pvtkImagePlaneWidget->SetPlaneOrientationToXAxes();
     app->pview4->pvtkImagePlaneWidget->SetInteractor(/*(vtkRenderWindowInteractor *)*/app->pview4->pvtkMyMFCWindow_View4->GetRenderWindow()->GetInteractor());

     app->pview4->pvtkImagePlaneWidget->RestrictPlaneToVolumeOn();
     app->pview4->pvtkImagePlaneWidget->GetPlaneProperty()->SetColor(1,0,0);

     app->pview4->pvtkImagePlaneWidget->SetPlaneOrientationToXAxes();
     app->pview4->pvtkImagePlaneWidget->SetSliceIndex(32);
     app->pview4->pvtkImagePlaneWidget->DisplayTextOn();
     app->pview4->pvtkImagePlaneWidget->On();
     app->pview4->pvtkImagePlaneWidget->InteractionOff();
     app->pview4->pvtkImagePlaneWidget->InteractionOn();

<< VTK保存渲染结果到图像文件的方法CSerialPort >>

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最近发表

Powered By Z-Blog 1.8 Arwen Build 81206 Copyright 2006-2009 | ooplab.org | shamantou@gmail.com | 沪ICP备08011244号 | Some Rights Reserved.