How Can Cut With Vtk Image Plan Widget To Get view Look Like 3D Slicer

Hi
I Using three Vtk Image Plan Widget To Cut dicom Series And Get Three View
Axial Coronal and Sagittal And Return To Me This View

But In 3dSlicer View Of Series Return This View

Code Of Vtk Image Plan Widget its

public void PrepareImagePlaneWidget(ImagePlanWidgetsM planeWidgetM, vtkImageData data, vtkRenderWindowInteractor interactor)
{
renderWindowInteractor = interactor;
SetPlanWidgetProperties(planeWidgetM.AxialimagePlaneWidget, data);
SetPlanWidgetProperties(planeWidgetM.CoronalimagePlaneWidget, data);
SetPlanWidgetProperties(planeWidgetM.SagitalimagePlaneWidget, data);

        SetOrientationOfWidgets(planeWidgetM.AxialimagePlaneWidget, direction.AXIAL);
        SetOrientationOfWidgets(planeWidgetM.CoronalimagePlaneWidget, direction.CORONAL);
        SetOrientationOfWidgets(planeWidgetM.SagitalimagePlaneWidget, direction.SAGITTAL);
    }

    private void SetOrientationOfWidgets(vtkImagePlaneWidget planeWidget, direction direction)
    {
        switch (direction)
        {
            case direction.AXIAL:
                planeWidget.SetPlaneOrientationToZAxes();
                planeWidget.GetPlaneProperty().SetColor(0.0, 0.0, 1.0);
                break;
            case direction.CORONAL:
                planeWidget.SetPlaneOrientationToYAxes();
                planeWidget.GetPlaneProperty().SetColor(0.0, 1.0, 0.0);
                break;
            case direction.SAGITTAL:
                planeWidget.SetPlaneOrientationToXAxes();
                planeWidget.GetPlaneProperty().SetColor(1.0, 0.0, 0.0);
                break;
        }
        planeWidget.On();
    }

   
    private void SetPlanWidgetProperties(vtkImagePlaneWidget planeWidget, vtkImageData imageData)
    {
        vtkCellPicker picker = CellPicker();
        planeWidget.SetInteractor(renderWindowInteractor);
        planeWidget.SetPicker(picker);
        planeWidget.RestrictPlaneToVolumeOn();
        planeWidget.DisplayTextOn();
        planeWidget.TextureInterpolateOn();
        planeWidget.SetResliceInterpolateToCubic();
        planeWidget.SetInputData(imageData);
        planeWidget.GetTexturePlaneProperty().SetOpacity(0);
    }

    private static vtkCellPicker CellPicker()
    {
        vtkCellPicker picker = vtkCellPicker.New();
        picker.SetTolerance(0.005);
        return picker;
    }

I for Fix This Problam Rotate Image Actor In The End And When Show Image
But For Use Other Tools I Have Problem

I would be grateful if you could help me to solve this problem

3D Slicer is free, open-source software with permissive license. You can inspect and even copy any or all of its source code into your project.

That said, you can save enormous amount of development and maintenance time if you use 3D Slicer as an application framework to develop your custom application. You don’t need to show all the tools and complex user interface of the default 3D Slicer distribution but you can just show the widgets and options your users need.

If you want to have “just something simple” (e.g., 4-pane viewer with basic visualization and interactions) then nowadays you cannot use a desktop application. Most users will refuse to install an application for such simple tasks and demand to be able to do it in a web browser. You can use various vtk.js based viewers for this.