@thewtex/vtk.js-esm
Version:
Visualization Toolkit for the Web
83 lines (69 loc) • 1.92 kB
TypeScript
import { vtkAlgorithm, vtkObject } from '@kitware/vtk.js/interfaces';
/**
*
*/
interface IImageCropFilterInitialValues {
croppingPlanes?: any;
}
type vtkImageCropFilterBase = vtkObject & vtkAlgorithm;
export interface vtkImageCropFilter extends vtkImageCropFilterBase {
/**
* Get The cropping planes, in IJK space.
* @default [0, 0, 0, 0, 0, 0].
*/
getCroppingPlanes(): number[];
/**
* Get The cropping planes, in IJK space.
* @default [0, 0, 0, 0, 0, 0].
*/
getCroppingPlanesByReference(): number[];
/**
*
*/
isResetAvailable(): boolean;
/**
*
*/
reset(): void;
/**
*
* @param inData
* @param outData
*/
requestData(inData: any, outData: any): void;
/**
*
* @param croppingPlanes
*/
setCroppingPlanes(croppingPlanes: number[]): boolean;
/**
*
* @param croppingPlanes
*/
setCroppingPlanesFrom(croppingPlanes: number[]): boolean;
}
/**
* Method used to decorate a given object (publicAPI+model) with vtkImageCropFilter characteristics.
*
* @param publicAPI object on which methods will be bounds (public)
* @param model object on which data structure will be bounds (protected)
* @param {IImageCropFilterInitialValues} [initialValues] (default: {})
*/
export function extend(publicAPI: object, model: object, initialValues?: IImageCropFilterInitialValues): void;
/**
* Method used to create a new instance of vtkImageCropFilter
* @param {IImageCropFilterInitialValues} [initialValues] for pre-setting some of its content
*/
export function newInstance(initialValues?: IImageCropFilterInitialValues): vtkImageCropFilter;
/**
* The vtkImageCropFilter will crop a vtkImageData. This will only crop against
* IJK-aligned planes.
*
* Note this is slow on large datasets due to CPU-bound
* cropping.
*/
export declare const vtkImageCropFilter: {
newInstance: typeof newInstance;
extend: typeof extend;
}
export default vtkImageCropFilter;