Skip to content

generateData()

Jasmin B. Maglic edited this page Jun 18, 2021 · 3 revisions
CalcReportBundle Model::generateData()

Method of the Model class. This is a small function whose main task is to request the volume calculation and the surface calculation if required. This method does not accept any arguments, but requires all calculation parameters to be set beforehand.

The return value is a structure containing all calculation parameters and results.

Implementation

A time stamp is saved before the start of any calculation. This time stamp is later used to give auto exported files a unique name. The volume calculation is started. Once this is finished and if the user toggled the option, then the surface calculation is started next.

The generated data is returned as a CalcReportBundle structure.