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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user