@@ -199,11 +199,11 @@ void GroundPlane::draw(bool isRedraw) {
199
199
200
200
double groundHeight = -777 ;
201
201
switch (options::groundPlaneHeightMode) {
202
- case GroundPlaneHeightMode::Relative : {
202
+ case GroundPlaneHeightMode::Automatic : {
203
203
groundHeight = bboxBottom - sign * (options::groundPlaneHeightFactor.asAbsolute () + heightEPS);
204
204
break ;
205
205
}
206
- case GroundPlaneHeightMode::Absolute : {
206
+ case GroundPlaneHeightMode::Manual : {
207
207
groundHeight = options::groundPlaneHeight;
208
208
break ;
209
209
}
@@ -400,10 +400,10 @@ void GroundPlane::buildGui() {
400
400
401
401
auto heightModeName = [](const GroundPlaneHeightMode& m) -> std::string {
402
402
switch (m) {
403
- case GroundPlaneHeightMode::Relative :
404
- return " Relative " ;
405
- case GroundPlaneHeightMode::Absolute :
406
- return " Absolute " ;
403
+ case GroundPlaneHeightMode::Automatic :
404
+ return " Automatic " ;
405
+ case GroundPlaneHeightMode::Manual :
406
+ return " Manual " ;
407
407
}
408
408
return " " ;
409
409
};
@@ -428,11 +428,11 @@ void GroundPlane::buildGui() {
428
428
// Height
429
429
ImGui::PushItemWidth (80 );
430
430
switch (options::groundPlaneHeightMode) {
431
- case GroundPlaneHeightMode::Relative :
431
+ case GroundPlaneHeightMode::Automatic :
432
432
if (ImGui::SliderFloat (" ##HeightValue" , options::groundPlaneHeightFactor.getValuePtr (), -1.0 , 1.0 ))
433
433
requestRedraw ();
434
434
break ;
435
- case GroundPlaneHeightMode::Absolute :
435
+ case GroundPlaneHeightMode::Manual :
436
436
int iP;
437
437
float sign;
438
438
std::tie (iP, sign) = getGroundPlaneAxisAndSign ();
@@ -448,7 +448,7 @@ void GroundPlane::buildGui() {
448
448
ImGui::SameLine ();
449
449
ImGui::PushItemWidth (100 );
450
450
if (ImGui::BeginCombo (" Height##Mode" , heightModeName (options::groundPlaneHeightMode).c_str ())) {
451
- for (GroundPlaneHeightMode m : {GroundPlaneHeightMode::Relative , GroundPlaneHeightMode::Absolute }) {
451
+ for (GroundPlaneHeightMode m : {GroundPlaneHeightMode::Automatic , GroundPlaneHeightMode::Manual }) {
452
452
std::string mName = heightModeName (m);
453
453
if (ImGui::Selectable (mName .c_str (), options::groundPlaneHeightMode == m)) {
454
454
options::groundPlaneHeightMode = m;
0 commit comments