import macro from 'vtk.js/Sources/macros'; import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper'; import vtkSurfaceLICInterface from 'vtk.js/Sources/Rendering/Core/SurfaceLICInterface';
function vtkSurfaceLICMapper(publicAPI, model) { model.classHierarchy.push('vtkSurfaceLICMapper');
publicAPI.getLicInterface = () => { if (!model.licInterface) { model.licInterface = vtkSurfaceLICInterface.newInstance(); } return model.licInterface; }; }
const DEFAULT_VALUES = { licInterface: null, };
export function extend(publicAPI, model, initialValues = {}) { Object.assign(model, DEFAULT_VALUES, initialValues);
vtkMapper.extend(publicAPI, model, initialValues);
macro.set(publicAPI, model, ['licInterface']);
vtkSurfaceLICMapper(publicAPI, model); }
export const newInstance = macro.newInstance(extend, 'vtkSurfaceLICMapper');
export default { newInstance, extend };
|