1 // Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include "XGUI_InspectionPanel.h"
21 #include "XGUI_SelectionMgr.h"
22 #include "XGUI_Selection.h"
23 #include "XGUI_Tools.h"
25 #include <ModuleBase_ViewerPrs.h>
26 #include <ModuleBase_Tools.h>
27 #include <ModelAPI_ResultField.h>
29 #include <ModelAPI_Result.h>
31 #include <GeomAPI_Ax3.h>
32 #include <GeomAPI_Box.h>
33 #include <GeomAPI_Circ.h>
34 #include <GeomAPI_Cone.h>
35 #include <GeomAPI_Cylinder.h>
36 #include <GeomAPI_Edge.h>
37 #include <GeomAPI_Ellipse.h>
38 #include <GeomAPI_Face.h>
39 #include <GeomAPI_Pln.h>
40 #include <GeomAPI_Pnt.h>
41 #include <GeomAPI_Shell.h>
42 #include <GeomAPI_Solid.h>
43 #include <GeomAPI_Sphere.h>
44 #include <GeomAPI_Torus.h>
45 #include <GeomAPI_Vertex.h>
46 #include <GeomAPI_Wire.h>
49 #include <QScrollArea>
52 #include <QTableWidget>
53 #include <QHeaderView>
54 #include <QTextBrowser>
55 #include <QResizeEvent>
58 #include <BRepBndLib.hxx>
59 #include <TopoDS_Iterator.hxx>
60 #include <TopTools_MapOfShape.hxx>
61 #include <TopTools_ListOfShape.hxx>
62 #include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic
64 // ================ Auxiliary functions ================
65 #define TITLE(val) ("<b>" + (val) + "</b>")
67 static void appendPointToParameters(const QString& thePointTitle,
68 const GeomPointPtr& theCoord,
71 theParams += TITLE(thePointTitle) +
72 "<br> X: " + QString::number(theCoord->x()) +
73 "<br> Y: " + QString::number(theCoord->y()) +
74 "<br> Z: " + QString::number(theCoord->z()) +
78 static void appendDirToParameters(const QString& theDirTitle,
79 const GeomDirPtr& theDirection,
82 theParams += TITLE(theDirTitle) +
83 "<br> DX: " + QString::number(theDirection->x()) +
84 "<br> DY: " + QString::number(theDirection->y()) +
85 "<br> DZ: " + QString::number(theDirection->z()) +
89 static void appendGroupNameToParameters(const QString& theGroupTitle, QString& theParams)
91 theParams += TITLE(theGroupTitle) + "<br>";
94 static void appendNamedValueToParameters(const QString& theName,
95 const double theValue,
98 theParams += theName + ": " + QString::number(theValue) + "<br>";
101 static void appendNamedValueToParameters(const QString& theName,
105 theParams += theName + ": " + (theValue ? "True" : "False") + "<br>";
109 // ================ XGUI_InspectionPanel ================
111 XGUI_InspectionPanel::XGUI_InspectionPanel(QWidget* theParent, XGUI_SelectionMgr* theMgr)
112 : QDockWidget(theParent),
113 mySelectionMgr(theMgr)
115 setWindowTitle(tr("Inspection Panel"));
116 setObjectName(INSPECTION_PANEL);
117 setStyleSheet("::title { position: relative; padding-left: 5px; text-align: left center }");
119 QSplitter* aSplitter = new QSplitter(Qt::Vertical, this);
121 // Create an internal widget
122 QWidget* aNameWgt = new QWidget(aSplitter);
123 QHBoxLayout* aNameLayout = new QHBoxLayout(aNameWgt);
124 aNameLayout->setContentsMargins(3, 0, 3, 0);
125 aNameLayout->addWidget(new QLabel(tr("Object"), aNameWgt));
126 myNameEdt = new QLineEdit(aNameWgt);
127 myNameEdt->setReadOnly(true);
128 aNameLayout->addWidget(myNameEdt);
130 aSplitter->addWidget(aNameWgt);
132 // Table with sub-shapes
133 mySubShapesTab = new QTableWidget(9, 2, aSplitter);
134 mySubShapesTab->setFocusPolicy(Qt::NoFocus);
135 mySubShapesTab->verticalHeader()->hide();
137 aTitles << tr("Sub-shapes") << tr("Number");
138 mySubShapesTab->setHorizontalHeaderLabels(aTitles);
140 QStringList aSubShapes;
141 aSubShapes << "SHAPE" << "COMPOUND" << "COMPSOLID" <<
142 "SOLID" << "SHELL" << "FACE" << "WIRE" << "EDGE" << "VERTEX";
144 foreach(QString aType, aSubShapes) {
145 QTableWidgetItem* aItem = new QTableWidgetItem(aType);
146 aItem->setFlags(Qt::ItemIsEnabled);
147 mySubShapesTab->setItem(i++, 0, aItem);
149 for (i = 0; i < 9; i++) {
150 QTableWidgetItem* aItem = new QTableWidgetItem("");
151 aItem->setFlags(Qt::ItemIsEnabled);
152 aItem->setTextAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
153 mySubShapesTab->setItem(i, 1, aItem);
155 mySubShapesTab->setColumnWidth(0, 90);
156 mySubShapesTab->setColumnWidth(1, 70);
158 aSplitter->addWidget(mySubShapesTab);
161 QWidget* aTypeWgt = new QWidget(aSplitter);
162 QHBoxLayout* aTypeLayout = new QHBoxLayout(aTypeWgt);
163 aTypeLayout->setContentsMargins(3, 0, 3, 0);
165 aTypeLayout->addWidget(new QLabel(tr("Type:"), aTypeWgt));
166 myTypeLbl = new QLabel("", aTypeWgt);
167 aTypeLayout->addWidget(myTypeLbl);
169 aSplitter->addWidget(aTypeWgt);
171 myTypeParams = new QTextBrowser(aSplitter);
172 myTypeParams->setReadOnly(true);
173 myTypeParams->setFocusPolicy(Qt::NoFocus);
174 myTypeParams->viewport()->setBackgroundRole(QPalette::Window);
176 aSplitter->addWidget(myTypeParams);
178 aSplitter->setCollapsible(0, false);
179 aSplitter->setCollapsible(1, false);
180 aSplitter->setCollapsible(2, false);
181 aSplitter->setCollapsible(3, false);
184 aSizes << 10 << 140 << 10;
185 aSplitter->setSizes(aSizes);
187 setWidget(aSplitter);
189 connect(mySelectionMgr, SIGNAL(selectionChanged()), SLOT(onSelectionChanged()));
192 //********************************************************************
193 XGUI_InspectionPanel::~XGUI_InspectionPanel()
197 //********************************************************************
198 void XGUI_InspectionPanel::setSubShapeValue(SudShape theId, int theVal)
200 mySubShapesTab->item(theId, 1)->setText(QString::number(theVal));
203 //********************************************************************
204 void XGUI_InspectionPanel::clearContent()
207 for (int i = 0; i <= VertexId; i++) {
208 mySubShapesTab->item((SudShape)i, 1)->setText("");
210 myTypeLbl->setText("");
214 //********************************************************************
215 void XGUI_InspectionPanel::onSelectionChanged()
218 XGUI_Selection* aSelection = mySelectionMgr->selection();
219 QList<ModuleBase_ViewerPrsPtr> aSelectedList =
220 aSelection->getSelected(ModuleBase_ISelection::Viewer);
222 QList<ModuleBase_ViewerPrsPtr> anOBSelected =
223 aSelection->getSelected(ModuleBase_ISelection::Browser);
224 if (!anOBSelected.isEmpty())
225 ModuleBase_ISelection::appendSelected(anOBSelected, aSelectedList);
227 if (aSelectedList.count() > 0) {
228 ModuleBase_ViewerPrsPtr aPrs = aSelectedList.first();
230 std::dynamic_pointer_cast<ModelAPI_ResultField::ModelAPI_FieldStep>(aPrs->object());
233 TopoDS_Shape aShape = ModuleBase_Tools::getSelectedShape(aPrs);
234 if (aShape.IsNull()) {
235 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aPrs->object());
237 GeomShapePtr aShpPtr = aRes->shape();
239 aShape = aShpPtr->impl<TopoDS_Shape>();
245 GeomShapePtr aShapePtr(new GeomAPI_Shape());
246 aShapePtr->setImpl(new TopoDS_Shape(aShape));
248 ModuleBase_ViewerPrsPtr aPrsCopy(new ModuleBase_ViewerPrs(aPrs->object(), aShapePtr));
249 setName(XGUI_Tools::generateName(aPrsCopy));
250 setShapeContent(aShape);
251 setShapeParams(aShape);
255 //********************************************************************
256 void XGUI_InspectionPanel::setName(const QString& theName)
258 myNameEdt->setText(theName);
261 //********************************************************************
262 void XGUI_InspectionPanel::setShapeContent(const TopoDS_Shape& theShape)
266 int iType, nbTypes[TopAbs_SHAPE];
267 for (iType = 0; iType < TopAbs_SHAPE; ++iType) {
270 nbTypes[theShape.ShapeType()]++;
272 TopTools_MapOfShape aMapOfShape;
273 aMapOfShape.Add(theShape);
274 TopTools_ListOfShape aListOfShape;
275 aListOfShape.Append(theShape);
277 TopTools_ListIteratorOfListOfShape itL(aListOfShape);
278 for (; itL.More(); itL.Next()) {
279 TopoDS_Shape sp = itL.Value();
280 TopoDS_Iterator it(sp);
281 for (; it.More(); it.Next()) {
282 TopoDS_Shape s = it.Value();
283 if (aMapOfShape.Add(s)) {
284 aListOfShape.Append(s);
285 nbTypes[s.ShapeType()]++;
289 setSubShapeValue(VertexId, nbTypes[TopAbs_VERTEX]);
290 setSubShapeValue(EdgeId, nbTypes[TopAbs_EDGE]);
291 setSubShapeValue(WireId, nbTypes[TopAbs_WIRE]);
292 setSubShapeValue(FaceId, nbTypes[TopAbs_FACE]);
293 setSubShapeValue(ShellId, nbTypes[TopAbs_SHELL]);
294 setSubShapeValue(SolidId, nbTypes[TopAbs_SOLID]);
295 setSubShapeValue(CompsolidId, nbTypes[TopAbs_COMPSOLID]);
296 setSubShapeValue(CompoundId, nbTypes[TopAbs_COMPOUND]);
297 setSubShapeValue(ShapeId, aMapOfShape.Extent());
299 catch (Standard_Failure) {
303 //********************************************************************
304 void XGUI_InspectionPanel::setShapeParams(const TopoDS_Shape& theShape)
306 GeomShapePtr aShape(new GeomAPI_Shape);
307 aShape->setImpl(new TopoDS_Shape(theShape));
309 switch (aShape->shapeType()) {
310 case GeomAPI_Shape::VERTEX:
311 fillVertex(aShape->vertex());
313 case GeomAPI_Shape::EDGE:
314 fillEdge(aShape->edge());
316 case GeomAPI_Shape::FACE:
317 fillFace(aShape->face());
319 case GeomAPI_Shape::SOLID:
320 fillSolid(aShape->solid());
322 case GeomAPI_Shape::WIRE:
323 fillWire(aShape->wire());
325 case GeomAPI_Shape::SHELL:
326 fillShell(aShape->shell());
328 case GeomAPI_Shape::COMPSOLID:
329 case GeomAPI_Shape::COMPOUND:
330 fillContainer(aShape);
335 //********************************************************************
336 void XGUI_InspectionPanel::fillVertex(const GeomVertexPtr& theVertex)
338 GeomPointPtr aPoint = theVertex->point();
340 myTypeLbl->setText(tr("Vertex"));
343 appendPointToParameters(tr("Coordinates"), aPoint, aParams);
344 setParamsText(aParams);
347 //********************************************************************
348 void XGUI_InspectionPanel::fillEdge(const GeomEdgePtr& theEdge)
351 if (theEdge->isDegenerated())
352 appendNamedValueToParameters(tr("Degenerated"), true, aParams);
354 GeomPointPtr aStartPnt = theEdge->firstPoint();
355 GeomPointPtr aEndPnt = theEdge->lastPoint();
356 bool addStartEndPoints = false;
358 if (theEdge->isLine()) {
359 myTypeLbl->setText(tr("Line segment"));
360 addStartEndPoints = true;
363 GeomCirclePtr aCircle = theEdge->circle();
365 addStartEndPoints = aStartPnt->distance(aEndPnt) >= Precision::Confusion();
366 if (addStartEndPoints)
367 myTypeLbl->setText("Arc of circle");
369 myTypeLbl->setText("Circle");
371 appendPointToParameters(tr("Center"), aCircle->center(), aParams);
372 appendDirToParameters(tr("Normal"), aCircle->normal(), aParams);
373 appendGroupNameToParameters(tr("Dimensions"), aParams);
374 appendNamedValueToParameters(tr("Radius"), aCircle->radius(), aParams);
377 GeomEllipsePtr anEllipse = theEdge->ellipse();
379 addStartEndPoints = aStartPnt->distance(aEndPnt) >= Precision::Confusion();
380 if (addStartEndPoints)
381 myTypeLbl->setText("Arc of ellipse");
383 myTypeLbl->setText("Ellipse");
385 appendPointToParameters(tr("Center"), anEllipse->center(), aParams);
386 appendDirToParameters(tr("Normal"), anEllipse->normal(), aParams);
387 appendGroupNameToParameters(tr("Dimensions"), aParams);
388 appendNamedValueToParameters(tr("Major radius"), anEllipse->majorRadius(), aParams);
389 appendNamedValueToParameters(tr("Minor radius"), anEllipse->minorRadius(), aParams);
393 myTypeLbl->setText(tr("Edge"));
397 if (addStartEndPoints) {
398 appendPointToParameters(tr("Start point"), aStartPnt, aParams);
399 appendPointToParameters(tr("End point"), aEndPnt, aParams);
401 setParamsText(aParams);
404 //********************************************************************
405 void XGUI_InspectionPanel::fillWire(const GeomWirePtr& theWire)
408 appendNamedValueToParameters(tr("Closed"), theWire->isClosed(), aParams);
410 // check the wire is a polygon
411 std::list<GeomPointPtr> aPolygonPoints;
412 if (theWire->isPolygon(aPolygonPoints)) {
413 myTypeLbl->setText(tr("Polygon"));
414 int aCornerIndex = 0;
415 for (std::list<GeomPointPtr>::const_iterator aPtIt = aPolygonPoints.begin();
416 aPtIt != aPolygonPoints.end(); ++aPtIt)
417 appendPointToParameters(tr("Point") + " " + QString::number(++aCornerIndex),
421 myTypeLbl->setText(tr("Wire"));
423 setParamsText(aParams);
426 //********************************************************************
427 void XGUI_InspectionPanel::fillFace(const GeomFacePtr& theFace)
430 // 1. Plane and planar faces
431 GeomPlanePtr aPlane = theFace->getPlane();
433 bool isCommonCase = true;
434 // Check face bounded by circle or ellipse
435 std::list<GeomShapePtr> aSubs = theFace->subShapes(GeomAPI_Shape::EDGE);
436 if (aSubs.size() == 1) {
437 GeomEdgePtr anEdge = aSubs.front()->edge();
438 if (anEdge->isCircle() || anEdge->isEllipse()) {
440 isCommonCase = false;
444 // Check face bounded by a single wire which is rectangle
445 aSubs = theFace->subShapes(GeomAPI_Shape::WIRE);
446 if (aSubs.size() == 1) {
447 GeomWirePtr aWire = aSubs.front()->wire();
448 std::list<GeomPointPtr> aCorners;
449 if (aWire->isRectangle(aCorners)) {
450 GeomPointPtr aBaseCorner = aCorners.front();
451 aCorners.pop_front();
453 double aWidth = aBaseCorner->distance(aCorners.front());
454 double aHeight = aBaseCorner->distance(aCorners.back());
456 myTypeLbl->setText(tr("Rectangle"));
457 appendPointToParameters(tr("Corner"), aBaseCorner, aParams);
458 appendDirToParameters(tr("Normal"), aPlane->direction(), aParams);
459 appendGroupNameToParameters(tr("Dimensions"), aParams);
460 appendNamedValueToParameters(tr("Width"), aWidth, aParams);
461 appendNamedValueToParameters(tr("Height"), aHeight, aParams);
462 setParamsText(aParams);
464 isCommonCase = false;
470 setPlaneType(tr("Plane"), aPlane);
474 GeomSpherePtr aSphere = theFace->getSphere();
476 setSphereType(tr("Sphere"), aSphere);
479 GeomCylinderPtr aCylinder = theFace->getCylinder();
481 setCylinderType(tr("Cylinder"), aCylinder);
484 GeomConePtr aCone = theFace->getCone();
486 setConeType(tr("Cone"), aCone);
489 GeomTorusPtr aTorus = theFace->getTorus();
491 setTorusType(tr("Torus"), aTorus);
494 myTypeLbl->setText(tr("Face"));
501 //********************************************************************
502 void XGUI_InspectionPanel::fillShell(const GeomShellPtr& theShell)
505 GeomSpherePtr aSphere = theShell->getSphere();
507 setSphereType(tr("Sphere"), aSphere);
510 GeomCylinderPtr aCylinder = theShell->getCylinder();
512 setCylinderType(tr("Cylinder"), aCylinder);
515 GeomConePtr aCone = theShell->getCone();
517 setConeType(tr("Cone"), aCone);
520 GeomTorusPtr aTorus = theShell->getTorus();
522 setTorusType(tr("Torus"), aTorus);
524 // 5. Axis-aligned/Rotated Box
525 GeomBoxPtr aBox = theShell->getParallelepiped();
527 if (aBox->isAxesAligned())
528 setBoxType(tr("Box"), aBox);
530 setRotatedBoxType(tr("Rotated Box"), aBox);
534 myTypeLbl->setText(tr("Shell"));
541 //********************************************************************
542 void XGUI_InspectionPanel::fillSolid(const GeomSolidPtr& theSolid)
545 GeomSpherePtr aSphere = theSolid->getSphere();
547 setSphereType(tr("Sphere"), aSphere);
550 GeomCylinderPtr aCylinder = theSolid->getCylinder();
552 setCylinderType(tr("Cylinder"), aCylinder);
555 GeomConePtr aCone = theSolid->getCone();
557 setConeType(tr("Cone"), aCone);
560 GeomTorusPtr aTorus = theSolid->getTorus();
562 setTorusType(tr("Torus"), aTorus);
564 // 5. Axis-aligned/Rotated Box
565 GeomBoxPtr aBox = theSolid->getParallelepiped();
567 if (aBox->isAxesAligned())
568 setBoxType(tr("Box"), aBox);
570 setRotatedBoxType(tr("Rotated Box"), aBox);
574 myTypeLbl->setText(tr("Solid"));
581 //********************************************************************
582 void XGUI_InspectionPanel::fillContainer(const GeomShapePtr& theShape)
584 if (theShape->shapeType() == GeomAPI_Shape::COMPSOLID)
585 myTypeLbl->setText("CompSolid");
586 else if (theShape->shapeType() == GeomAPI_Shape::COMPOUND)
587 myTypeLbl->setText("Compound");
590 TopoDS_Shape aShape = theShape->impl<TopoDS_Shape>();
592 BRepBndLib::Add(aShape, aBB);
597 gp_Pnt aMinPnt = aBB.CornerMin();
598 GeomPointPtr aMinPoint(new GeomAPI_Pnt(aMinPnt.X(), aMinPnt.Y(), aMinPnt.Z()));
600 gp_Pnt aMaxPnt = aBB.CornerMax();
601 GeomPointPtr aMaxPoint(new GeomAPI_Pnt(aMaxPnt.X(), aMaxPnt.Y(), aMaxPnt.Z()));
604 appendGroupNameToParameters(tr("Bounding box"), aParams);
605 appendPointToParameters(tr("Minimal corner"), aMinPoint, aParams);
606 appendPointToParameters(tr("Maximal corner"), aMaxPoint, aParams);
609 void XGUI_InspectionPanel::setPlaneType(const QString& theTitle,
610 const std::shared_ptr<GeomAPI_Pln>& thePlane)
612 myTypeLbl->setText(theTitle);
614 appendPointToParameters(tr("Origin"), thePlane->location(), aParams);
615 appendDirToParameters(tr("Normal"), thePlane->direction(), aParams);
616 setParamsText(aParams);
619 void XGUI_InspectionPanel::setSphereType(const QString& theTitle,
620 const std::shared_ptr<GeomAPI_Sphere>& theSphere)
622 myTypeLbl->setText(theTitle);
624 appendPointToParameters(tr("Center"), theSphere->center(), aParams);
625 appendGroupNameToParameters(tr("Dimensions"), aParams);
626 appendNamedValueToParameters(tr("Radius"), theSphere->radius(), aParams);
627 setParamsText(aParams);
630 void XGUI_InspectionPanel::setCylinderType(const QString& theTitle,
631 const std::shared_ptr<GeomAPI_Cylinder>& theCyl)
633 myTypeLbl->setText(theTitle);
635 appendPointToParameters(tr("Position"), theCyl->location(), aParams);
636 appendDirToParameters(tr("Axis"), theCyl->axis(), aParams);
637 appendGroupNameToParameters(tr("Dimensions"), aParams);
638 appendNamedValueToParameters(tr("Radius"), theCyl->radius(), aParams);
639 appendNamedValueToParameters(tr("Height"), theCyl->height(), aParams);
640 setParamsText(aParams);
643 void XGUI_InspectionPanel::setConeType(const QString& theTitle,
644 const std::shared_ptr<GeomAPI_Cone>& theCone)
646 myTypeLbl->setText(theTitle);
648 appendPointToParameters(tr("Position"), theCone->location(), aParams);
649 appendDirToParameters(tr("Axis"), theCone->axis(), aParams);
650 appendGroupNameToParameters(tr("Dimensions"), aParams);
651 appendNamedValueToParameters(tr("Radius 1"), theCone->radius1(), aParams);
652 appendNamedValueToParameters(tr("Radius 2"), theCone->radius2(), aParams);
653 appendNamedValueToParameters(tr("Height"), theCone->height(), aParams);
654 setParamsText(aParams);
657 void XGUI_InspectionPanel::setTorusType(const QString& theTitle,
658 const std::shared_ptr<GeomAPI_Torus>& theTorus)
660 myTypeLbl->setText(theTitle);
662 appendPointToParameters(tr("Center"), theTorus->center(), aParams);
663 appendDirToParameters(tr("Axis"), theTorus->direction(), aParams);
664 appendGroupNameToParameters(tr("Dimensions"), aParams);
665 appendNamedValueToParameters(tr("Major radius"), theTorus->majorRadius(), aParams);
666 appendNamedValueToParameters(tr("Minor radius"), theTorus->minorRadius(), aParams);
667 setParamsText(aParams);
670 void XGUI_InspectionPanel::setBoxType(const QString& theTitle,
671 const std::shared_ptr<GeomAPI_Box>& theBox)
673 myTypeLbl->setText(theTitle);
675 appendPointToParameters(tr("Position"), theBox->axes()->origin(), aParams);
676 appendGroupNameToParameters(tr("Dimensions"), aParams);
677 appendNamedValueToParameters(tr("Width"), theBox->width(), aParams);
678 appendNamedValueToParameters(tr("Depth"), theBox->depth(), aParams);
679 appendNamedValueToParameters(tr("Height"), theBox->height(), aParams);
680 setParamsText(aParams);
683 void XGUI_InspectionPanel::setRotatedBoxType(const QString& theTitle,
684 const std::shared_ptr<GeomAPI_Box>& theBox)
686 myTypeLbl->setText(theTitle);
688 std::shared_ptr<GeomAPI_Ax3> anAxes = theBox->axes();
689 appendPointToParameters(tr("Position"), anAxes->origin(), aParams);
690 appendDirToParameters(tr("Z axis"), anAxes->normal(), aParams);
691 appendDirToParameters(tr("X axis"), anAxes->dirX(), aParams);
692 appendGroupNameToParameters(tr("Dimensions"), aParams);
693 appendNamedValueToParameters(tr("Width"), theBox->width(), aParams);
694 appendNamedValueToParameters(tr("Depth"), theBox->depth(), aParams);
695 appendNamedValueToParameters(tr("Height"), theBox->height(), aParams);
696 setParamsText(aParams);
700 void XGUI_InspectionPanel::setParamsText(const QString& theText)
702 myTypeParams->setText(theText);