-
-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor constructors #2409
base: master
Are you sure you want to change the base?
Refactor constructors #2409
Commits on Jun 21, 2022
-
refactor(fullscreenrenderwindow, dataarray, remoteview, macro): refac…
…tor constructors Refactor of (some classes) constructors so that the setXXX() methods of coresponding properties are called when the classes are instanciated (calling newInstance). In the macro.js newInstance() function, the set() method is called in order that the setXXX() methods for each entry of initialValues is called if such methods exist. This is in order that side effects of setters are taken into account when creating new objects (for example through the call of modified()). Setters of both default and initial values are called. Refactor of DataArray and child classes. The method "setData" is called so that the parameters are synchronised as it is not a setter of one property in itself but has that purpose. Warning : it cannot be overwritten in child classes without possible issues of behavior when creating the object. Tests have been added and updated. A new test for macro protected properties have been added. BREAKING CHANGE: If a custom handling is done on the initialValues in the extend function, the changes made might be overwritten by the call of the set function in newInstace. If it is not what is intended, those properties have to be removed from initialValues after custom processing. If a setter of a property is called in the function creating an object (vtkObject(publicAPI, model)) such call should be removed to avoid witnessing twice the same side effects.
Configuration menu - View commit details
-
Copy full SHA for 5aeba62 - Browse repository at this point
Copy the full SHA 5aeba62View commit details -
feat(testmacro): defaultValues have protected values named with under…
…score defaultValues have to have protected values named with underscore to avoid having them to be moved to protected
Configuration menu - View commit details
-
Copy full SHA for 4f77c69 - Browse repository at this point
Copy the full SHA 4f77c69View commit details -
fix(hardwareselector, renderwindow): fix after refactor
Change to put properties in initialValues to call setters on them. Handle null or undefined in some setters.
Configuration menu - View commit details
-
Copy full SHA for a89d4da - Browse repository at this point
Copy the full SHA a89d4daView commit details -
fix(actor2d): change constructor to call setters
call setters at instanciation. Modify also related classes
Configuration menu - View commit details
-
Copy full SHA for ff88fd8 - Browse repository at this point
Copy the full SHA ff88fd8View commit details -
fix(abstractmapper): fix setClippingPlane at instanciation
fix setClippingPlane at instanciation. Handle [] as possible given planes.
Configuration menu - View commit details
-
Copy full SHA for 787a134 - Browse repository at this point
Copy the full SHA 787a134View commit details -
Configuration menu - View commit details
-
Copy full SHA for 592e0e0 - Browse repository at this point
Copy the full SHA 592e0e0View commit details -
fix(hardwareselector, renderwindow): fix refactoring
change polydatamapper
Configuration menu - View commit details
-
Copy full SHA for f011c14 - Browse repository at this point
Copy the full SHA f011c14View commit details -
fix(polydatamapper2d): refactor constructor
call setters at instanciation
Configuration menu - View commit details
-
Copy full SHA for b2d09ed - Browse repository at this point
Copy the full SHA b2d09edView commit details -
fix(datasetattributes): refactor constructors
refactor DataSetAttributes constructor to call setters
Configuration menu - View commit details
-
Copy full SHA for 27e181b - Browse repository at this point
Copy the full SHA 27e181bView commit details -
fix(colortransferfunction): refactor constructor to call setters
update setActiveProperty of datasetattributes to handle indexes being given
Configuration menu - View commit details
-
Copy full SHA for c1f6ef6 - Browse repository at this point
Copy the full SHA c1f6ef6View commit details -
refactor(fielddata): improvement of getArrayWithIndexFix
improvement of getArrayWithIndexFix
Configuration menu - View commit details
-
Copy full SHA for b70c1c9 - Browse repository at this point
Copy the full SHA b70c1c9View commit details -
refactor(polydatamapper): put some values in default rather than set …
…them in constructor put some values in default rather than set them in constructor
Configuration menu - View commit details
-
Copy full SHA for ea47367 - Browse repository at this point
Copy the full SHA ea47367View commit details -
Configuration menu - View commit details
-
Copy full SHA for 986dfc1 - Browse repository at this point
Copy the full SHA 986dfc1View commit details -
fix(abstractmapper): remove useless initialValues setting
remove useless initialValues setting
Configuration menu - View commit details
-
Copy full SHA for 0672218 - Browse repository at this point
Copy the full SHA 0672218View commit details -
refactor(filtersources): refactor constructors to call setters
call setters when creating the object
Configuration menu - View commit details
-
Copy full SHA for 62ca1dd - Browse repository at this point
Copy the full SHA 62ca1ddView commit details -
fix(renderwindow): fix after refactor
fix after refactor (remove tmp true in newinstance)
Configuration menu - View commit details
-
Copy full SHA for 763e1cf - Browse repository at this point
Copy the full SHA 763e1cfView commit details -
refactor(tmp): temporary to only call setters for modified files
Temporary to only call setters for modified files
Configuration menu - View commit details
-
Copy full SHA for d607ff7 - Browse repository at this point
Copy the full SHA d607ff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea30a90 - Browse repository at this point
Copy the full SHA ea30a90View commit details -
refactor(helper): refactor constructor to call setters
refactor constructor to call setters
Configuration menu - View commit details
-
Copy full SHA for 141eb1f - Browse repository at this point
Copy the full SHA 141eb1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 531eb9a - Browse repository at this point
Copy the full SHA 531eb9aView commit details -
refactor(volume, texture): refactor constructor to call setters
refactor constructor to call setters
Configuration menu - View commit details
-
Copy full SHA for 01407f9 - Browse repository at this point
Copy the full SHA 01407f9View commit details -
refactor(sources): refactoring constructors
some more sources refactoring
Configuration menu - View commit details
-
Copy full SHA for 12c88ab - Browse repository at this point
Copy the full SHA 12c88abView commit details -
test(points): add some tests for points
add some tests for points (similar to dataarray tests)
Configuration menu - View commit details
-
Copy full SHA for 1bb1060 - Browse repository at this point
Copy the full SHA 1bb1060View commit details -
refactor(stringarray,variantarray,progresshandler,priorityqueue): ref…
…actor constructors refactor constructors to call setters. Change setData to handle instanciation and setting
Configuration menu - View commit details
-
Copy full SHA for 9b571db - Browse repository at this point
Copy the full SHA 9b571dbView commit details -
fix(lookuptable): fix refactoring
fix refactoring (put table in defaultValues)
Configuration menu - View commit details
-
Copy full SHA for afb7f86 - Browse repository at this point
Copy the full SHA afb7f86View commit details -
refactor(cell): refactor constructor to call setters
refactor constructor to call setters
Configuration menu - View commit details
-
Copy full SHA for 562a185 - Browse repository at this point
Copy the full SHA 562a185View commit details -
docs(lookuptable, appendpolydata): document some implementation choices
document some implementation choices
Configuration menu - View commit details
-
Copy full SHA for d2725c2 - Browse repository at this point
Copy the full SHA d2725c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7824f27 - Browse repository at this point
Copy the full SHA 7824f27View commit details -
fix(abstractmapper, selectionnode): fix refactoring
fix refactoring
Configuration menu - View commit details
-
Copy full SHA for b14ebe2 - Browse repository at this point
Copy the full SHA b14ebe2View commit details -
refactor(triangle, line): refactor constructors
refactor constructors to call setters at instanciation
Configuration menu - View commit details
-
Copy full SHA for ad468f2 - Browse repository at this point
Copy the full SHA ad468f2View commit details -
remove undesired checks and document some choices
Configuration menu - View commit details
-
Copy full SHA for b74186e - Browse repository at this point
Copy the full SHA b74186eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4def46 - Browse repository at this point
Copy the full SHA d4def46View commit details -
fix(coordinate, hardwareselector): fix refactoring
fix refactoring
Configuration menu - View commit details
-
Copy full SHA for df6db6f - Browse repository at this point
Copy the full SHA df6db6fView commit details -
fix(datasetattributes, mapper): fix refactoring
coherence in choices + fix to have exact same behavior
Configuration menu - View commit details
-
Copy full SHA for 114330e - Browse repository at this point
Copy the full SHA 114330eView commit details -
fix(renderer,viewnode,renderwindow,...): fix refactoring
coherence in choices
Configuration menu - View commit details
-
Copy full SHA for 8fb9e8d - Browse repository at this point
Copy the full SHA 8fb9e8dView commit details -
refactor(remoteview): refactor constructor
refactor constructor to call setters at instanciation
Configuration menu - View commit details
-
Copy full SHA for 7f15397 - Browse repository at this point
Copy the full SHA 7f15397View commit details