How to enable/disable the option of "interpolated cropped" inside "cropvolume" via python coding?

Operating system: windows 10
Slicer version: 4.11
Expected behavior: would like to control enable/disable the option of “interpolated cropped”
Actual behavior:

I am doing cropping volumes via python coding, use the following code to reach “cropvolume” ==>
cropVolumeNode = slicer.vtkMRMLCropVolumeParametersNode()
cropVolumeNode.SetScene(slicer.mrmlScene)
cropVolumeNode.SetIsotropicResampling(True)
cropVolumeNode.SetSpacingScalingConst(1.0)
slicer.mrmlScene.AddNode(cropVolumeNode)
cropVolumeNode.SetName(‘NewlyCropped’)

so here how disable/enable the interpolation option for the cropvolume?

thanks

You can get the list of all available parameters as described here.

Still get some issues with cropvolume while applying it via python-coding.

So what’s the best way or is there a quick way for users to check some ENUM or dictionary values? For example here, self.cropVolumeParametersNode.SetInterpolationMode(v_interpolation)

v_interpolation might be 0, 1, 2, 3, 4

How/where to check what interpolate-method each value represents? Say, here

value of 1 means “nearest neighbor” or “linear”?

Thanks a lot.

public:
enum
{
InterpolationNearestNeighbor = 1,
InterpolationLinear = 2,
InterpolationWindowedSinc = 3,
InterpolationBSpline = 4
};

enum
{
FitROIAlignToVolume = 0, ///< Before resizing the ROI, ROI orientation is adjusted to align with the axes of the input volume
FitROIAlignToWorld = 1, ///< Before resizing the ROI, ROI orientation is adjusted to align with the world coordinate system axes
FitROIKeepOrientation = 2, ///< The ROI orientation is not modified during fitting
FitROI_Last ///< PositionStatus_Last: indicates the end of the enum (int first = 0, int last = FitROI_Last)
};