@thewtex/vtk.js-esm
Version:
Visualization Toolkit for the Web
53 lines (44 loc) • 1.24 kB
TypeScript
import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper';
interface ISphereInitialValues {
radius?: number;
}
export interface vtkSphereMapper extends vtkMapper {
/**
*
*/
getRadius(): number;
/**
*
*/
getScaleArray(): any;
/**
*
* @param {Number} radius
*/
setRaduis(radius: number): boolean;
/**
*
* @param scaleArray
*/
setScaleArray(scaleArray: any): boolean;
}
/**
* Method use to decorate a given object (publicAPI+model) with vtkSphereMapper characteristics.
*
* @param publicAPI object on which methods will be bounds (public)
* @param model object on which data structure will be bounds (protected)
* @param {ISphereInitialValues} [initialValues] (default: {})
*/
export function extend(publicAPI: object, model: object, initialValues?: ISphereInitialValues): void;
/**
* Method use to create a new instance of vtkSphereMapper
*/
export function newInstance(initialValues?: ISphereInitialValues): vtkSphereMapper;
/**
* vtkSphereMapper inherits from vtkMapper.
*/
export declare const vtkSphereMapper: {
newInstance: typeof newInstance,
extend: typeof extend,
};
export default vtkSphereMapper;