@@ -78,6 +78,7 @@ export function connectPipeline(pipeline) {
78
78
function vtkWidgetRepresentation ( publicAPI , model ) {
79
79
// Set our className
80
80
model . classHierarchy . push ( 'vtkWidgetRepresentation' ) ;
81
+ const superclass = { ...publicAPI } ;
81
82
// Internal cache
82
83
const cache = { mtimes : { } , states : [ ] } ;
83
84
@@ -194,13 +195,15 @@ function vtkWidgetRepresentation(publicAPI, model) {
194
195
} ;
195
196
196
197
publicAPI . setCoincidentTopologyParameters = ( parameters ) => {
197
- model . coincidentTopologyParameters = parameters ;
198
- publicAPI . getActors ( ) . forEach ( ( actor ) => {
199
- applyCoincidentTopologyParametersToMapper (
200
- actor . getMapper ( ) ,
201
- model . coincidentTopologyParameters
202
- ) ;
203
- } ) ;
198
+ const modified = superclass . setCoincidentTopologyParameters ( parameters ) ;
199
+ if ( modified ) {
200
+ publicAPI . getActors ( ) . forEach ( ( actor ) => {
201
+ applyCoincidentTopologyParametersToMapper (
202
+ actor . getMapper ( ) ,
203
+ model . coincidentTopologyParameters
204
+ ) ;
205
+ } ) ;
206
+ }
204
207
} ;
205
208
206
209
publicAPI . getPixelWorldHeightAtCoord = ( worldCoord ) => {
@@ -268,8 +271,11 @@ export function extend(publicAPI, model, initialValues = {}) {
268
271
// Object methods
269
272
vtkProp . extend ( publicAPI , model , initialValues ) ;
270
273
macro . algo ( publicAPI , model , 1 , 1 ) ;
271
- macro . get ( publicAPI , model , [ 'labels' , 'coincidentTopologyParameters' ] ) ;
272
- macro . set ( publicAPI , model , [ 'displayScaleParams' ] ) ;
274
+ macro . get ( publicAPI , model , [ 'labels' ] ) ;
275
+ macro . set ( publicAPI , model , [
276
+ { type : 'object' , name : 'displayScaleParams' } ,
277
+ { type : 'object' , name : 'coincidentTopologyParameters' } ,
278
+ ] ) ;
273
279
macro . setGet ( publicAPI , model , [ 'scaleInPixels' ] ) ;
274
280
275
281
// Object specific methods
0 commit comments