Gui: Scene inspector improvements (#18781)

* Improve naming for root scene graph switch/separator nodes.

* Improve scene graph inspector.

This commit improves the scene graph inspector by improving the UI
layout and displaying information in a more human-readable way.

Instead of having a main generic string column for all node-specific
data, introduce specific columns for node name, memory address and data.

Better visualization was also added for `SoDrawStyle`, `SoPickStyle`
and `SoCoordinate3` node types.
This commit is contained in:
João Matos
2025-01-14 03:38:41 +00:00
committed by GitHub
parent fe60505c17
commit 6222b935f0
8 changed files with 192 additions and 39 deletions

View File

@@ -101,12 +101,15 @@ ViewProviderGeometryObject::ViewProviderGeometryObject()
pcShapeMaterial = new SoMaterial;
setCoinAppearance(mat);
pcShapeMaterial->ref();
pcShapeMaterial->setName("ShapeMaterial");
pcBoundingBox = new Gui::SoFCBoundingBox;
pcBoundingBox->ref();
pcBoundingBox->setName("BoundingBox");
pcBoundColor = new SoBaseColor();
pcBoundColor->ref();
pcBoundColor->setName("BoundColor");
sPixmap = "Feature";
}
@@ -302,6 +305,7 @@ void ViewProviderGeometryObject::showBoundingBox(bool show)
blue = ((bbcol >> 8) & 0xff) / 255.0F;
pcBoundSwitch = new SoSwitch();
pcBoundSwitch->setName("BoundSwitch");
auto pBoundingSep = new SoSeparator();
auto lineStyle = new SoDrawStyle;
lineStyle->lineWidth = 2.0F;