AngelFP / VisualPIC

Data Visualization for Particle-in-Cell Codes.
GNU General Public License v3.0
47 stars 13 forks source link

Unit converter restructuring #5

Closed AngelFP closed 7 years ago

AngelFP commented 7 years ago

The implementation of the unit conversion of the data elements is now much more ordered and simple. The UnitConverter instance is now only part of the DataContainer, and all DataElements hold a reference to it, so that the unit conversion can be made directly inside each DataElement. Therefore, calls and references to the UnitConverter are not needed from any other part of the code.

Additionally, some general code cleaning and optimization has been performed, especially in the custom data element classes.

Also, a new and more complete class diagram has been added with the updated changes.