Skip to content

Commit

Permalink
add minimum factor of safety
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomei committed Jul 1, 2024
1 parent 7a83ac8 commit cdaf251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agrolib/gis/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ bool setSlopeStabilityScale(Crit3DColorScale* myScale)
myScale->keyColor[0] = Crit3DColor(128, 0, 128); /*!< violet */
myScale->keyColor[1] = Crit3DColor(255, 0, 0); /*!< red */
myScale->keyColor[2] = Crit3DColor(255, 255, 0); /*!< yellow */
myScale->keyColor[3] = Crit3DColor(128, 220, 0); /*!< yellow/green */
myScale->keyColor[3] = Crit3DColor(128, 196, 0); /*!< yellow/green */
myScale->keyColor[4] = Crit3DColor(64, 196, 64); /*!< green */
myScale->keyColor[5] = Crit3DColor(64, 196, 64); /*!< green */
myScale->keyColor[6] = Crit3DColor(64, 196, 64); /*!< green */
Expand Down
4 changes: 2 additions & 2 deletions bin/CRITERIA3D/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,7 @@ void MainWindow::showCriteria3DVariable(criteria3DVariable var, int layerIndex,
reverseColorScale(myProject.criteria3DMap.colorScale);
ui->labelOutputRaster->setText("Degree of saturation [-]");
}
else if (current3DVariable == factorOfSafety)
else if (current3DVariable == factorOfSafety || current3DVariable == minimumFactorOfSafety)
{
setSlopeStabilityScale(myProject.criteria3DMap.colorScale);
ui->labelOutputRaster->setText("Factor of safety [-]");
Expand Down Expand Up @@ -3214,7 +3214,7 @@ void MainWindow::on_actionView_factor_of_safety_triggered()

void MainWindow::on_actionView_factor_of_safety_minimum_triggered()
{
showCriteria3DVariable(minimumFactorOfSafety, NODATA, true, 0, 3);
showCriteria3DVariable(minimumFactorOfSafety, NODATA, true, 0, 10);
}


Expand Down

0 comments on commit cdaf251

Please sign in to comment.