UNPKG

@kitware/vtk.js

Version:

Visualization Toolkit for the Web

47 lines (36 loc) 1.68 kB
import { m as macro } from '../../macros2.js'; import vtkGlyphRepresentation from './GlyphRepresentation.js'; import vtkTorusSource from '../../Filters/Sources/TorusSource.js'; // ---------------------------------------------------------------------------- // vtkRotateTransformHandleRepresentation methods // ---------------------------------------------------------------------------- function vtkRotateTransformHandleRepresentation(publicAPI, model) { // Set our className model.classHierarchy.push('vtkRotateTransformHandleRepresentation'); } // ---------------------------------------------------------------------------- // Object factory // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- function defaultValues(initialValues) { return { _pipeline: { glyph: vtkTorusSource.newInstance({}) }, ...initialValues }; } function extend(publicAPI, model) { let initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; vtkGlyphRepresentation.extend(publicAPI, model, defaultValues(initialValues)); // Object specific methods vtkRotateTransformHandleRepresentation(publicAPI, model); } // ---------------------------------------------------------------------------- const newInstance = macro.newInstance(extend, 'vtkRotateTransformHandleRepresentation'); // ---------------------------------------------------------------------------- var vtkRotateTransformHandleRepresentation$1 = { newInstance, extend }; export { vtkRotateTransformHandleRepresentation$1 as default, extend, newInstance };