Skip to content

Commit

Permalink
refactor(SegmentedLineRepresentation): rename to LineGlyphRepresentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Aug 22, 2023
1 parent ee5fe2d commit 3af071b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '@kitware/vtk.js/Rendering/Profiles/All';
import vtkFullScreenRenderWindow from '@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow';
import vtkStateBuilder from '@kitware/vtk.js/Widgets/Core/StateBuilder';

import vtkSegmentedLineRepresentation from '@kitware/vtk.js/Widgets/Representations/SegmentedLineRepresentation';
import vtkLineGlyphRepresentation from '@kitware/vtk.js/Widgets/Representations/LineGlyphRepresentation';

// ----------------------------------------------------------------------------
// Standard rendering code setup
Expand Down Expand Up @@ -47,7 +47,7 @@ points.forEach((point) => {
// Representation
// -----------------------------------------------------------

const widgetRep = vtkSegmentedLineRepresentation.newInstance({
const widgetRep = vtkLineGlyphRepresentation.newInstance({
scaleInPixels: false,
close: true,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
import vtkCylinderSource from 'vtk.js/Sources/Filters/Sources/CylinderSource';
import { vec3 } from 'gl-matrix';

function vtkSegmentedLineRepresentation(publicAPI, model) {
model.classHierarchy.push('vtkSegmentedLineRepresentation');
function vtkLineGlyphRepresentation(publicAPI, model) {
model.classHierarchy.push('vtkLineGlyphRepresentation');
const superClass = { ...publicAPI };

const internalPolyData = vtkPolyData.newInstance({ mtime: 0 });
Expand Down Expand Up @@ -183,14 +183,14 @@ export function extend(publicAPI, model, initialValues = {}) {
vtkWidgetRepresentation.extend(publicAPI, model, newDefault);
macro.setGet(publicAPI, model, ['close', 'lineThickness']);

vtkSegmentedLineRepresentation(publicAPI, model);
vtkLineGlyphRepresentation(publicAPI, model);
}

// ----------------------------------------------------------------------------

export const newInstance = macro.newInstance(
extend,
'vtkSegmentedLineRepresentation'
'vtkLineGlyphRepresentation'
);

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 3af071b

Please sign in to comment.