File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Sources/Filters/General/ImageDataOutlineFilter Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -36,19 +36,20 @@ function vtkImageDataOutlineFilter(publicAPI, model) {
36
36
outData [ 0 ] = model . _cubeSource . getOutputData ( ) ;
37
37
} ;
38
38
39
- // Forward calls for [set/get]Generate[Faces/Lines] functions to cubeSource:
40
- publicAPI . setGenerateFaces = ( generateFaces ) => {
41
- if ( model . _cubeSource . setGenerateFaces ( generateFaces ) ) {
42
- publicAPI . modified ( ) ;
43
- }
44
- } ;
39
+ // Capture "parentClass" api for internal use
40
+ const superClass = { ...publicAPI } ;
45
41
46
- publicAPI . setGenerateLines = ( generateLines ) => {
47
- if ( model . _cubeSource . setGenerateLines ( generateLines ) ) {
48
- publicAPI . modified ( ) ;
49
- }
42
+ publicAPI . getMTime = ( ) => {
43
+ let mTime = superClass . getMTime ( ) ;
44
+ mTime = Math . max ( mTime , model . _cubeSource . getMTime ( ) ) ;
45
+ return mTime ;
50
46
} ;
51
47
48
+ // Forward calls for [set/get]Generate[Faces/Lines] functions to cubeSource:
49
+ publicAPI . setGenerateFaces = model . _cubeSource . setGenerateFaces ;
50
+
51
+ publicAPI . setGenerateLines = model . _cubeSource . setGenerateLines ;
52
+
52
53
publicAPI . getGenerateFaces = model . _cubeSource . getGenerateFaces ;
53
54
54
55
publicAPI . getGenerateLines = model . _cubeSource . getGenerateLines ;
You can’t perform that action at this time.
0 commit comments