Skip to content

Commit 3af071b

Browse files
committed
refactor(SegmentedLineRepresentation): rename to LineGlyphRepresentation
1 parent ee5fe2d commit 3af071b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/Widgets/Representations/SegmentedLineRepresentation/example/index.js renamed to Sources/Widgets/Representations/LineGlyphRepresentation/example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '@kitware/vtk.js/Rendering/Profiles/All';
66
import vtkFullScreenRenderWindow from '@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow';
77
import vtkStateBuilder from '@kitware/vtk.js/Widgets/Core/StateBuilder';
88

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

1111
// ----------------------------------------------------------------------------
1212
// Standard rendering code setup
@@ -47,7 +47,7 @@ points.forEach((point) => {
4747
// Representation
4848
// -----------------------------------------------------------
4949

50-
const widgetRep = vtkSegmentedLineRepresentation.newInstance({
50+
const widgetRep = vtkLineGlyphRepresentation.newInstance({
5151
scaleInPixels: false,
5252
close: true,
5353
});

Sources/Widgets/Representations/SegmentedLineRepresentation/index.js renamed to Sources/Widgets/Representations/LineGlyphRepresentation/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import {
1616
import vtkCylinderSource from 'vtk.js/Sources/Filters/Sources/CylinderSource';
1717
import { vec3 } from 'gl-matrix';
1818

19-
function vtkSegmentedLineRepresentation(publicAPI, model) {
20-
model.classHierarchy.push('vtkSegmentedLineRepresentation');
19+
function vtkLineGlyphRepresentation(publicAPI, model) {
20+
model.classHierarchy.push('vtkLineGlyphRepresentation');
2121
const superClass = { ...publicAPI };
2222

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

186-
vtkSegmentedLineRepresentation(publicAPI, model);
186+
vtkLineGlyphRepresentation(publicAPI, model);
187187
}
188188

189189
// ----------------------------------------------------------------------------
190190

191191
export const newInstance = macro.newInstance(
192192
extend,
193-
'vtkSegmentedLineRepresentation'
193+
'vtkLineGlyphRepresentation'
194194
);
195195

196196
// ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)