-// GEOM GEOMGUI : GUI for Geometry component
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// File : MeasureGUI_WhatisDlg.cxx
-// Author : Nicolas REJNERI
-// Module : GEOM
-// $Header$
+// GEOM GEOMGUI : GUI for Geometry component
+// File : MeasureGUI_WhatisDlg.cxx
+// Author : Nicolas REJNERI, Open CASCADE S.A.S.
+//
#include "MeasureGUI_WhatisDlg.h"
+#include "MeasureGUI_Widgets.h"
+
+#include <DlgRef.h>
+#include <GEOMBase.h>
-#include <TopTools_MapOfShape.hxx>
-#include <TCollection_AsciiString.hxx>
-#include <TopTools_ListOfShape.hxx>
-#include <TopTools_ListIteratorOfListOfShape.hxx>
-#include <TopoDS_Iterator.hxx>
+#include <SUIT_Session.h>
+#include <SUIT_ResourceMgr.h>
+#include <SalomeApp_Tools.h>
-#include <qtextedit.h>
+#include <QGroupBox>
+#include <QScrollBar>
+#include <QMessageBox>
-#include <BRep_Tool.hxx>
+class MeasureGUI_WhatisDlg::Whatis : public QGroupBox
+{
+public:
+ Whatis( QWidget* parent );
+ ~Whatis();
-#include "utilities.h"
+ QLabel* TextLabel1;
+ QPushButton* PushButton1;
+ QLineEdit* LineEdit1;
+
+ QTextEdit* TextEdit1;
+
+ QLabel* TextLabel2;
+ QLineEdit* LineEdit2;
+ QPushButton* PushButton2;
+};
+
+//=================================================================================
+// Constructs a MeasureGUI_Whatis_QTD which is a child of 'parent', with the
+// name 'name' and widget flags set to 'f'
+//=================================================================================
+MeasureGUI_WhatisDlg::Whatis::Whatis( QWidget* parent )
+ : QGroupBox( parent )
+{
+ QGridLayout* topLayout = new QGridLayout( this );
+ topLayout->setMargin( 11 );
+ topLayout->setSpacing( 6 );
+
+ TextLabel1 = new QLabel( this );
+ PushButton1 = new QPushButton( this );
+ LineEdit1 = new QLineEdit( this );
+ TextEdit1 = new QTextEdit( this );
+ TextLabel2 = new QLabel( this );
+ LineEdit2 = new QLineEdit( this);
+ PushButton2 = new QPushButton( this );
+
+ topLayout->addWidget( TextLabel1, 0, 0 );
+ topLayout->addWidget( PushButton1, 0, 1 );
+ topLayout->addWidget( LineEdit1, 0, 2, 1, 2 );
+ topLayout->addWidget( TextEdit1, 1, 0, 1, 4 );
+ topLayout->addWidget( TextLabel2 , 2, 0 );
+ topLayout->addWidget( LineEdit2 , 2, 1, 1, 2 );
+ topLayout->addWidget( PushButton2, 2, 3 );
+}
-using namespace std;
+//=================================================================================
+// Destroys the object and frees any allocated resources
+//=================================================================================
+MeasureGUI_WhatisDlg::Whatis::~Whatis()
+{
+}
//=================================================================================
-// class : MeasureGUI_WhatisDlg()
-// purpose : Constructs a MeasureGUI_WhatisDlg which is a child of 'parent', with the
+// class : MeasureGUI_WhatisDlg( )
+// purpose : Constructs a MeasureGUI_WhatisDlg which is a child of 'parent', with the
// name 'name' and widget flags set to 'f'.
// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
+// true to construct a modal dialog.
//=================================================================================
-MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg(QWidget* parent, const char* name, SALOME_Selection* Sel, bool modal, WFlags fl)
- :MeasureGUI_Skeleton(parent, name, Sel, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
+MeasureGUI_WhatisDlg::MeasureGUI_WhatisDlg( GeometryGUI* GUI, QWidget* parent )
+ : MeasureGUI_Skeleton( GUI, parent )
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_DLG_WHATIS")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap("GEOM",tr("ICON_SELECT")));
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ QPixmap image0( resMgr->loadPixmap( "GEOM", tr( "ICON_DLG_WHATIS" ) ) );
+ QPixmap image1( resMgr->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
- setCaption(tr("GEOM_WHATIS_TITLE"));
+ setWindowTitle( tr( "GEOM_WHATIS_TITLE" ) );
/***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_WHATIS"));
- RadioButton1->setPixmap(image0);
+
+ mainFrame()->GroupConstructors->setTitle( tr( "GEOM_WHATIS" ) );
+ mainFrame()->RadioButton1->setIcon( image0 );
- GroupC1 = new MeasureGUI_1Sel1TextView_QTD(this, "GroupC1");
- GroupC1->GroupBox1->setTitle(tr("GEOM_WHATIS_OBJECT"));
- GroupC1->TextLabel1->setText(tr("GEOM_OBJECT"));
- GroupC1->TextEdit1->setReadOnly(TRUE);
- GroupC1->PushButton1->setPixmap(image1);
+ myGrp = new Whatis( this );
+
+ myGrp->setTitle( tr( "GEOM_WHATIS_OBJECT" ) );
+
+ myGrp->TextLabel1->setText( tr( "GEOM_OBJECT" ) );
+ myGrp->PushButton1->setIcon( image1 );
+ myGrp->PushButton1->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+ myGrp->LineEdit1->setReadOnly( true );
+
+ myGrp->TextEdit1->setReadOnly( true );
+ // fix height to fit all text
+ myGrp->TextEdit1->setLineWrapMode( QTextEdit::NoWrap );
+ // myGrp->TextEdit1->setTextFormat( Qt::PlainText ); // VSR : TODO
+ QString allLines ("\n\n\n\n\n\n\n\n\n"); // 10 lines
+ myGrp->TextEdit1->setText( allLines );
+ int sbHeight = myGrp->TextEdit1->horizontalScrollBar()->height();
+ myGrp->TextEdit1->setFixedHeight( myGrp->TextEdit1->document()->size().height() + sbHeight );
+
+ myGrp->TextLabel2->setText( tr( "GEOM_KIND_OF_SHAPE" ) );
+ myGrp->LineEdit2->setReadOnly( true );
+ myGrp->LineEdit2->setMinimumWidth( 150 );
+ myGrp->PushButton2->setText( tr( "GEOM_PROPERTIES" ) );
+ myGrp->PushButton2->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) );
+
+ QVBoxLayout* layout = new QVBoxLayout( centralWidget() );
+ layout->setMargin( 0 ); layout->setSpacing( 6 );
+ layout->addWidget( myGrp );
+
+ // Properties dialog
+ myParamsDlg = new QMessageBox(QMessageBox::Information, "", "", QMessageBox::Ok, this);
+ myParamsDlg->setModal( false );
- Layout1->addWidget(GroupC1, 1, 0);
/***************************************************************/
+ myHelpFileName = "using_measurement_tools_page.html#whatis_anchor";
+
/* Initialisation */
Init();
}
-
//=================================================================================
// function : ~MeasureGUI_WhatisDlg()
// purpose : Destroys the object and frees any allocated resources
//=================================================================================
MeasureGUI_WhatisDlg::~MeasureGUI_WhatisDlg()
{
- // no need to delete child widgets, Qt does it all for us
}
-
//=================================================================================
// function : Init()
// purpose :
//=================================================================================
void MeasureGUI_WhatisDlg::Init()
{
- /* init variables */
- myEditCurrentArgument = GroupC1->LineEdit1;
-
- /* signals and slots connections */
- connect(GroupC1->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupC1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
+ mySelBtn = myGrp->PushButton1;
+ mySelEdit = myGrp->LineEdit1;
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
+ connect( myGrp->PushButton2, SIGNAL( clicked() ), this, SLOT( ClickOnProperties() ) );
- /* displays Dialog */
- GroupC1->show();
- this->show();
-
- return;
+ MeasureGUI_Skeleton::Init();
}
-
//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
+// function : processObject
+// purpose :
//=================================================================================
-void MeasureGUI_WhatisDlg::SelectionIntoArgument()
+void MeasureGUI_WhatisDlg::processObject()
{
- myGeomBase->EraseSimulationShape();
- mySimulationTopoDs.Nullify();
-
- myEditCurrentArgument->setText("");
- SelectedName = ""; /* future the name of selection */
- GroupC1->TextEdit1->setText("");
-
- int nbSel = myGeomBase->GetNameOfSelectedIObjects(mySelection, SelectedName);
- if(nbSel != 1)
- return;
-
- /* nbSel == 1 */
- TopoDS_Shape S;
- if(!myGeomBase->GetTopoFromSelection(mySelection, S))
- return;
-
- if(S.IsNull())
- return;
-
- /* Try to display of a cone simulation shape to show direction of a linear edge only in OCC viewer */
- if(myGeomBase->CreateArrowForLinearEdge(S, mySimulationTopoDs))
- myGeomBase->DisplaySimulationShape(mySimulationTopoDs);
-
- GroupC1->LineEdit1->setText(SelectedName);
- this->CalculateWhatis(S);
-
- return;
+ QString aText;
+ myGrp->TextEdit1->setText( getParameters( aText ) ? aText : QString( "" ) );
+
+ QString aParameters;
+ QString aKind = getKindOfShape( aParameters );
+ myGrp->LineEdit2->setText( aKind );
+ myGrp->PushButton2->setEnabled( !aParameters.isEmpty());
+ myParamsDlg->setWindowTitle(aKind + " " + tr("GEOM_PROPERTIES"));
+ myParamsDlg->setText(aParameters);
+ myParamsDlg->adjustSize();
}
-
//=================================================================================
-// function : SetEditCurrentArgument()
+// function : ClickOnProperties()
// purpose :
//=================================================================================
-void MeasureGUI_WhatisDlg::SetEditCurrentArgument()
+void MeasureGUI_WhatisDlg::ClickOnProperties()
{
- QPushButton* send = (QPushButton*)sender();
-
- if(send == GroupC1->PushButton1) {
- GroupC1->LineEdit1->setFocus();
- myEditCurrentArgument = GroupC1->LineEdit1;
- }
-
- this->SelectionIntoArgument();
- return;
+ myParamsDlg->show();
}
-
//=================================================================================
-// function : LineEditReturnPressed()
+// function : getParameters
// purpose :
//=================================================================================
-void MeasureGUI_WhatisDlg::LineEditReturnPressed()
+bool MeasureGUI_WhatisDlg::getParameters( QString& theText )
{
- QLineEdit* send = (QLineEdit*)sender();
- if(send == GroupC1->LineEdit1)
- myEditCurrentArgument = GroupC1->LineEdit1;
- else
- return;
-
- MeasureGUI_Skeleton::LineEditReturnPressed();
- return;
-}
+ if ( myObj->_is_nil() )
+ return false;
+ GEOM::GEOM_IMeasureOperations_var anOper = GEOM::GEOM_IMeasureOperations::_narrow( getOperation() );
+ try
+ {
+ theText = anOper->WhatIs( myObj );
+ }
+ catch( const SALOME::SALOME_Exception& e )
+ {
+ SalomeApp_Tools::QtCatchCorbaException( e );
+ return false;
+ }
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void MeasureGUI_WhatisDlg::ActivateThisDialog()
-{
- MeasureGUI_Skeleton::ActivateThisDialog();
- connect(mySelection, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- if(!mySimulationTopoDs.IsNull())
- myGeomBase->DisplaySimulationShape(mySimulationTopoDs);
- return;
+ return anOper->IsDone();
}
-
//=================================================================================
-// function : enterEvent()
+// function : getKindOfShape
// purpose :
//=================================================================================
-void MeasureGUI_WhatisDlg::enterEvent(QEvent* e)
+QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
{
- if(GroupConstructors->isEnabled())
- return;
- this->ActivateThisDialog();
- return;
-}
+ QString aKindStr("");
+ theParameters = "";
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ int aLenPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
-//=================================================================================
-// function : CalculateWhatis()
-// purpose :
-//=================================================================================
-void MeasureGUI_WhatisDlg::CalculateWhatis(const TopoDS_Shape& S)
-{
- if(S.IsNull())
- return;
+ if ( myObj->_is_nil() )
+ return aKindStr;
- TCollection_AsciiString Astr;
+ GEOM::GEOM_IKindOfShape::shape_kind aKind;
+ GEOM::ListOfLong_var anInts;
+ GEOM::ListOfDouble_var aDbls;
- if ( S.ShapeType() == TopAbs_EDGE ) {
- if( BRep_Tool::Degenerated(TopoDS::Edge(S)) ) {
- Astr = Astr + " " + CORBA::string_dup(SelectedName.latin1()) + " is a degenerated edge \n";
- }
- }
-
- Astr = Astr + " Number of shapes in " + CORBA::string_dup(SelectedName.latin1()) + " : \n";
-
- try {
- int iType, nbTypes [TopAbs_SHAPE];
- for(iType = 0; iType < TopAbs_SHAPE; ++iType)
- nbTypes[iType] = 0;
- nbTypes[S.ShapeType()]++;
-
- TopTools_MapOfShape aMapOfShape;
- aMapOfShape.Add(S);
- TopTools_ListOfShape aListOfShape;
- aListOfShape.Append(S);
-
- TopTools_ListIteratorOfListOfShape itL(aListOfShape);
- for(; itL.More(); itL.Next()) {
- TopoDS_Iterator it(itL.Value());
- for(; it.More(); it.Next()) {
- TopoDS_Shape s = it.Value();
- if(aMapOfShape.Add(s)) {
- aListOfShape.Append(s);
- nbTypes[s.ShapeType()]++;
- }
- }
- }
+ GEOM::GEOM_IMeasureOperations_var anOper = GEOM::GEOM_IMeasureOperations::_narrow( getOperation() );
- Astr = Astr + " VERTEX : " + TCollection_AsciiString(nbTypes[TopAbs_VERTEX]) + "\n";
- Astr = Astr + " EDGE : " + TCollection_AsciiString(nbTypes[TopAbs_EDGE]) + "\n";
- Astr = Astr + " WIRE : " + TCollection_AsciiString(nbTypes[TopAbs_WIRE]) + "\n";
- Astr = Astr + " FACE : " + TCollection_AsciiString(nbTypes[TopAbs_FACE]) + "\n";
- Astr = Astr + " SHELL : " + TCollection_AsciiString(nbTypes[TopAbs_SHELL]) + "\n";
- Astr = Astr + " SOLID : " + TCollection_AsciiString(nbTypes[TopAbs_SOLID]) + "\n";
- Astr = Astr + " COMPSOLID : " + TCollection_AsciiString(nbTypes[TopAbs_COMPSOLID]) + "\n";
- Astr = Astr + " COMPOUND : " + TCollection_AsciiString(nbTypes[TopAbs_COMPOUND]) + "\n";
- Astr = Astr + " SHAPE : " + TCollection_AsciiString(aMapOfShape.Extent());
-
- GroupC1->TextEdit1->setText(Astr.ToCString());
+ try
+ {
+ aKind = anOper->KindOfShape( myObj, anInts, aDbls );
}
- catch(Standard_Failure) {
- MESSAGE("Catch intercepted in CalculateWhatis()");
+ catch( const SALOME::SALOME_Exception& e ) {
+ SalomeApp_Tools::QtCatchCorbaException( e );
+ return aKindStr;
}
- return;
+
+ if ( !anOper->IsDone() )
+ return aKindStr;
+
+#define PRINT_DOUBLE(val, tol) DlgRef::PrintDoubleValue( val, tol )
+ switch ( aKind )
+ {
+ case GEOM::GEOM_IKindOfShape::COMPOUND:
+ aKindStr = tr( "GEOM_COMPOUND" );
+ break;
+ case GEOM::GEOM_IKindOfShape::COMPSOLID:
+ aKindStr = tr( "GEOM_COMPOUNDSOLID" );
+ break;
+ case GEOM::GEOM_IKindOfShape::SHELL:
+ aKindStr = tr( "GEOM_SHELL" );
+ if ( anInts[0] == 1 )
+ theParameters = tr( "GEOM_CLOSED" );
+ else if ( anInts[0] == 2 )
+ theParameters = tr( "GEOM_UNCLOSED" );
+ else
+ theParameters = tr( "GEOM_CLOSEDUNCLOSED" );
+ break;
+ case GEOM::GEOM_IKindOfShape::WIRE:
+ aKindStr = tr( "GEOM_WIRE" );
+ if ( anInts[0] == 1 )
+ theParameters = tr( "GEOM_CLOSED" );
+ else if ( anInts[0] == 2 )
+ theParameters = tr( "GEOM_UNCLOSED" );
+ else
+ theParameters = tr( "GEOM_CLOSEDUNCLOSED" );
+ break;
+ // SOLIDs
+ case GEOM::GEOM_IKindOfShape::SPHERE:
+ aKindStr = tr( "GEOM_SPHERE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::CYLINDER:
+ aKindStr = tr( "GEOM_CYLINDER" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::BOX:
+ aKindStr = tr( "GEOM_BOX" );
+ theParameters = tr( "GEOM_CENTER") +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + "Ax :" + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + "Ay :" + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + "Az :" + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::ROTATED_BOX:
+ aKindStr = tr( "GEOM_BOX" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\nZ Axis:" +
+ "\n" + "Zx :" + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + "Zy :" + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + "Zz :" + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\nX Axis:" +
+ "\n" + tr( "GEOM_X_I" ).arg( "x" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_X_I" ).arg( "y" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "\n" + tr( "GEOM_X_I" ).arg( "z" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "\nDimensions along local axes:" +
+ "\n" + "Ax :" + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "\n" + "Ay :" + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "\n" + "Az :" + PRINT_DOUBLE( aDbls[11], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::TORUS:
+ aKindStr = tr( "GEOM_TORUS" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::CONE:
+ aKindStr = tr( "GEOM_CONE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::POLYHEDRON:
+ aKindStr = tr( "GEOM_POLYHEDRON" );
+ break;
+ case GEOM::GEOM_IKindOfShape::SOLID:
+ aKindStr = tr( "GEOM_SOLID" );
+ break;
+ // FACEs
+ case GEOM::GEOM_IKindOfShape::SPHERE2D:
+ aKindStr = tr( "GEOM_SURFSPHERE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::CYLINDER2D:
+ aKindStr = tr( "GEOM_SURFCYLINDER" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::TORUS2D:
+ aKindStr = tr( "GEOM_SURFTORUS" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::CONE2D:
+ aKindStr = tr( "GEOM_SURFCONE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_AXIS" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::DISK_CIRCLE:
+ aKindStr = tr( "GEOM_DISK_CIRCLE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::DISK_ELLIPSE:
+ aKindStr = tr( "GEOM_DISK_ELLIPSE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::POLYGON:
+ aKindStr = tr( "GEOM_POLYGON" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::PLANE:
+ aKindStr = tr( "GEOM_PLANE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::PLANAR:
+ aKindStr = tr( "GEOM_PLANAR_FACE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::FACE:
+ aKindStr = tr( "GEOM_FACE" );
+ break;
+ // EDGEs
+ case GEOM::GEOM_IKindOfShape::CIRCLE:
+ aKindStr = tr( "GEOM_CIRCLE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::ARC_CIRCLE:
+ aKindStr = tr( "GEOM_ARC" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::ELLIPSE:
+ aKindStr = tr( "GEOM_ELLIPSE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::ARC_ELLIPSE:
+ aKindStr = tr( "GEOM_ARC_ELLIPSE" );
+ theParameters = tr( "GEOM_CENTER" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_NORMAL" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIMENSIONS" ) +
+ "\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
+ "\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
+ "\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
+ "\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[13], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::LINE:
+ aKindStr = tr( "GEOM_LINE" );
+ theParameters = tr( "GEOM_POSITION" ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_DIRECTION" ) +
+ "\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::SEGMENT:
+ aKindStr = tr( "GEOM_SEGMENT" );
+ theParameters = tr( "GEOM_POINT_I" ).arg( 1 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
+ "\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
+ "\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::EDGE:
+ aKindStr = tr( "GEOM_EDGE" );
+ break;
+ case GEOM::GEOM_IKindOfShape::VERTEX:
+ aKindStr = tr( "GEOM_VERTEX" );
+ theParameters = tr( "GEOM_COORDINATES" ) +
+ "\n" + tr( "GEOM_X" ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
+ "\n" + tr( "GEOM_Y" ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
+ "\n" + tr( "GEOM_Z" ) + PRINT_DOUBLE( aDbls[2], aLenPrecision );
+ break;
+ case GEOM::GEOM_IKindOfShape::ADVANCED:
+ {
+ QString strid = QString( "GEOM_ADVANCED_%1" ).arg( myObj->GetType() );
+ aKindStr = tr( strid.toLatin1().constData() ) == strid ?
+ tr( "GEOM_ADVANCED" ).arg( myObj->GetType() ) :
+ tr( strid.toLatin1().constData() );
+ break;
+ }
+ default:
+ break;
+ }
+
+ return aKindStr;
}