mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: pass position and gridColor on construction of axes
This is less hassle, than passing these around as parameters. Note: The values are stored but not yet used ("position" has not use yet and gridColor is still passed as parameter). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
766546fc19
commit
277b9234ab
3 changed files with 21 additions and 14 deletions
|
@ -70,13 +70,13 @@ ProfileScene::ProfileScene(double dpr, bool printMode, bool isGrayscale) :
|
|||
maxtime(-1),
|
||||
maxdepth(-1),
|
||||
dataModel(new DivePlotDataModel(this)),
|
||||
profileYAxis(new DepthAxis(dpr, printMode, *this)),
|
||||
gasYAxis(new PartialGasPressureAxis(*dataModel, dpr, printMode, *this)),
|
||||
temperatureAxis(new TemperatureAxis(dpr, printMode, *this)),
|
||||
timeAxis(new TimeAxis(dpr, printMode, *this)),
|
||||
cylinderPressureAxis(new DiveCartesianAxis(dpr, printMode, *this)),
|
||||
heartBeatAxis(new DiveCartesianAxis(dpr, printMode, *this)),
|
||||
percentageAxis(new DiveCartesianAxis(dpr, printMode, *this)),
|
||||
profileYAxis(new DepthAxis(DiveCartesianAxis::Position::Left, TIME_GRID, dpr, printMode, *this)),
|
||||
gasYAxis(new PartialGasPressureAxis(*dataModel, DiveCartesianAxis::Position::Right, TIME_GRID, dpr, printMode, *this)),
|
||||
temperatureAxis(new TemperatureAxis(DiveCartesianAxis::Position::Right, TIME_GRID, dpr, printMode, *this)),
|
||||
timeAxis(new TimeAxis(DiveCartesianAxis::Position::Bottom, TIME_GRID, dpr, printMode, *this)),
|
||||
cylinderPressureAxis(new DiveCartesianAxis(DiveCartesianAxis::Position::Right, TIME_GRID, dpr, printMode, *this)),
|
||||
heartBeatAxis(new DiveCartesianAxis(DiveCartesianAxis::Position::Left, HR_AXIS, dpr, printMode, *this)),
|
||||
percentageAxis(new DiveCartesianAxis(DiveCartesianAxis::Position::Right, TIME_GRID, dpr, printMode, *this)),
|
||||
diveProfileItem(createItem<DiveProfileItem>(*profileYAxis, DivePlotDataModel::DEPTH, 0, dpr)),
|
||||
temperatureItem(createItem<DiveTemperatureItem>(*temperatureAxis, DivePlotDataModel::TEMPERATURE, 1, dpr)),
|
||||
meanDepthItem(createItem<DiveMeanDepthItem>(*profileYAxis, DivePlotDataModel::INSTANT_MEANDEPTH, 1, dpr)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue