mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-30 19:30:36 +05:00
0020979: EDF 1168 GEOM: non coherence of display of decimal values
This commit is contained in:
parent
851a66da48
commit
c48cfadada
@ -899,9 +899,11 @@ bool BasicGUI_PointDlg::execute( ObjectList& objects )
|
|||||||
if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() &&
|
if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() &&
|
||||||
aShape.ShapeType() == TopAbs_VERTEX ) {
|
aShape.ShapeType() == TopAbs_VERTEX ) {
|
||||||
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
||||||
myX->setText( DlgRef::PrintDoubleValue( aPnt.X() ) );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myY->setText( DlgRef::PrintDoubleValue( aPnt.Y() ) );
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
myZ->setText( DlgRef::PrintDoubleValue( aPnt.Z() ) );
|
myX->setText( DlgRef::PrintDoubleValue( aPnt.X(), aPrecision ) );
|
||||||
|
myY->setText( DlgRef::PrintDoubleValue( aPnt.Y(), aPrecision ) );
|
||||||
|
myZ->setText( DlgRef::PrintDoubleValue( aPnt.Z(), aPrecision ) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myX->setText( "" );
|
myX->setText( "" );
|
||||||
|
@ -781,12 +781,12 @@ QString DlgRef::PrintDoubleValue( double theValue, int thePrecision )
|
|||||||
if ( qAbs(theValue) < prec )
|
if ( qAbs(theValue) < prec )
|
||||||
return "0";
|
return "0";
|
||||||
|
|
||||||
QString aRes = QLocale().toString( theValue, 'g', qAbs( thePrecision ) );
|
QString aRes = QLocale().toString( theValue, thePrecision >= 0 ? 'f' : 'g', qAbs( thePrecision ) );
|
||||||
|
|
||||||
if ( prec > 0 ) {
|
if ( prec > 0 ) {
|
||||||
int p = 0;
|
int p = 0;
|
||||||
while ( p < thePrecision ) {
|
while ( p < thePrecision ) {
|
||||||
QString aRes = QLocale().toString( theValue, 'g', qAbs( p++ ) );
|
QString aRes = QLocale().toString( theValue, thePrecision >= 0 ? 'f' : 'g', qAbs( p++ ) );
|
||||||
double v = aRes.toDouble();
|
double v = aRes.toDouble();
|
||||||
double err = qAbs( theValue - v );
|
double err = qAbs( theValue - v );
|
||||||
if ( err > 0 && err <= prec )
|
if ( err > 0 && err <= prec )
|
||||||
@ -795,21 +795,19 @@ QString DlgRef::PrintDoubleValue( double theValue, int thePrecision )
|
|||||||
}
|
}
|
||||||
|
|
||||||
// remove trailing zeroes
|
// remove trailing zeroes
|
||||||
QString delim( QLocale().decimalPoint() );
|
|
||||||
|
|
||||||
int idx = aRes.lastIndexOf( delim );
|
QRegExp expre( QString( "(%1|%2)[+-]?[0-9]+$" ).arg( QLocale().exponential().toLower(),
|
||||||
if ( idx == -1 )
|
QLocale().exponential().toUpper() ) );
|
||||||
return aRes;
|
|
||||||
|
|
||||||
QString iPart = aRes.left( idx );
|
int idx = aRes.indexOf( expre );
|
||||||
QString fPart = aRes.mid( idx + 1 );
|
QString aResExp = "";
|
||||||
|
if ( idx >= 0 ) {
|
||||||
|
aResExp = aRes.mid( idx );
|
||||||
|
aRes = aRes.left( idx );
|
||||||
|
}
|
||||||
|
|
||||||
while ( !fPart.isEmpty() && fPart.at( fPart.length() - 1 ) == '0' )
|
if ( aRes.contains( QLocale().decimalPoint() ) )
|
||||||
fPart.remove( fPart.length() - 1, 1 );
|
aRes.remove( QRegExp( QString( "(\\%1|0)0*$" ).arg( QLocale().decimalPoint() ) ) );
|
||||||
|
|
||||||
aRes = iPart;
|
return aRes == "-0" ? QString( "0" ) : aRes + aResExp;
|
||||||
if ( !fPart.isEmpty() )
|
|
||||||
aRes += delim + fPart;
|
|
||||||
|
|
||||||
return aRes;
|
|
||||||
}
|
}
|
||||||
|
@ -118,5 +118,5 @@ libMeasureGUI_la_CPPFLAGS = \
|
|||||||
|
|
||||||
libMeasureGUI_la_LDFLAGS = \
|
libMeasureGUI_la_LDFLAGS = \
|
||||||
$(CAS_LDFLAGS) -lTKGeomBase \
|
$(CAS_LDFLAGS) -lTKGeomBase \
|
||||||
../GEOMBase/libGEOMBase.la
|
../GEOMBase/libGEOMBase.la ../DlgRef/libDlgRef.la
|
||||||
|
|
||||||
|
@ -196,7 +196,9 @@ void MeasureGUI_AngleDlg::processObject()
|
|||||||
|
|
||||||
double anAngle = 0.;
|
double anAngle = 0.;
|
||||||
if (getParameters(anAngle)) {
|
if (getParameters(anAngle)) {
|
||||||
myGrp->LineEdit3->setText(DlgRef::PrintDoubleValue(anAngle));
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
int aPrecision = resMgr->integerValue( "Geometry", "angle_precision", 6 );
|
||||||
|
myGrp->LineEdit3->setText(DlgRef::PrintDoubleValue(anAngle, aPrecision));
|
||||||
redisplayPreview();
|
redisplayPreview();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "GeometryGUI.h"
|
#include "GeometryGUI.h"
|
||||||
|
|
||||||
#include <GEOMBase.h>
|
#include <GEOMBase.h>
|
||||||
|
#include <DlgRef.h>
|
||||||
|
|
||||||
#include <GEOM_Function.hxx>
|
#include <GEOM_Function.hxx>
|
||||||
#include <GEOM_Object.hxx>
|
#include <GEOM_Object.hxx>
|
||||||
@ -143,14 +144,17 @@ void MeasureGUI_BndBoxDlg::processObject()
|
|||||||
myGrp->LineEdit32->setText( "" );
|
myGrp->LineEdit32->setText( "" );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myGrp->LineEdit11->setText( tr( "%1" ).arg( aXMin, 12, 'f', 6 ) );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myGrp->LineEdit12->setText( tr( "%1" ).arg( aXMax, 12, 'f', 6 ) );
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
|
|
||||||
myGrp->LineEdit21->setText( tr( "%1" ).arg( aYMin, 12, 'f', 6 ) );
|
myGrp->LineEdit11->setText( DlgRef::PrintDoubleValue( aXMin, aPrecision ) );
|
||||||
myGrp->LineEdit22->setText( tr( "%1" ).arg( aYMax, 12, 'f', 6 ) );
|
myGrp->LineEdit12->setText( DlgRef::PrintDoubleValue( aXMax, aPrecision ) );
|
||||||
|
|
||||||
myGrp->LineEdit31->setText( tr( "%1" ).arg( aZMin, 12, 'f', 6 ) );
|
myGrp->LineEdit21->setText( DlgRef::PrintDoubleValue( aYMin, aPrecision ) );
|
||||||
myGrp->LineEdit32->setText( tr( "%1" ).arg( aZMax, 12, 'f', 6 ) );
|
myGrp->LineEdit22->setText( DlgRef::PrintDoubleValue( aYMax, aPrecision ) );
|
||||||
|
|
||||||
|
myGrp->LineEdit31->setText( DlgRef::PrintDoubleValue( aZMin, aPrecision ) );
|
||||||
|
myGrp->LineEdit32->setText( DlgRef::PrintDoubleValue( aZMax, aPrecision ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,9 +244,12 @@ void MeasureGUI_CenterMassDlg::processObject()
|
|||||||
getParameters( x, y, z );
|
getParameters( x, y, z );
|
||||||
|
|
||||||
myGrp->LineEdit1->setText( GEOMBase::GetName( myObj ) );
|
myGrp->LineEdit1->setText( GEOMBase::GetName( myObj ) );
|
||||||
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( x ) );
|
|
||||||
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( y ) );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( z ) );
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
|
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( x, aPrecision ) );
|
||||||
|
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( y, aPrecision ) );
|
||||||
|
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( z, aPrecision ) );
|
||||||
|
|
||||||
displayPreview();
|
displayPreview();
|
||||||
}
|
}
|
||||||
|
@ -180,12 +180,15 @@ void MeasureGUI_DistanceDlg::processObject()
|
|||||||
gp_Pnt aPnt1, aPnt2;
|
gp_Pnt aPnt1, aPnt2;
|
||||||
double aDist = 0.;
|
double aDist = 0.;
|
||||||
if (getParameters(aDist, aPnt1, aPnt2)) {
|
if (getParameters(aDist, aPnt1, aPnt2)) {
|
||||||
myGrp->LineEdit3->setText(DlgRef::PrintDoubleValue(aDist));
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
|
|
||||||
|
myGrp->LineEdit3->setText(DlgRef::PrintDoubleValue(aDist, aPrecision));
|
||||||
|
|
||||||
gp_XYZ aVec = aPnt2.XYZ() - aPnt1.XYZ();
|
gp_XYZ aVec = aPnt2.XYZ() - aPnt1.XYZ();
|
||||||
myGrp->LineEdit4->setText(DlgRef::PrintDoubleValue(aVec.X()));
|
myGrp->LineEdit4->setText(DlgRef::PrintDoubleValue(aVec.X(), aPrecision));
|
||||||
myGrp->LineEdit5->setText(DlgRef::PrintDoubleValue(aVec.Y()));
|
myGrp->LineEdit5->setText(DlgRef::PrintDoubleValue(aVec.Y(), aPrecision));
|
||||||
myGrp->LineEdit6->setText(DlgRef::PrintDoubleValue(aVec.Z()));
|
myGrp->LineEdit6->setText(DlgRef::PrintDoubleValue(aVec.Z(), aPrecision));
|
||||||
|
|
||||||
redisplayPreview();
|
redisplayPreview();
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "MeasureGUI_Widgets.h"
|
#include "MeasureGUI_Widgets.h"
|
||||||
|
|
||||||
#include <GEOMBase.h>
|
#include <GEOMBase.h>
|
||||||
|
#include <DlgRef.h>
|
||||||
|
|
||||||
#include <gp_XYZ.hxx>
|
#include <gp_XYZ.hxx>
|
||||||
|
|
||||||
@ -142,21 +143,21 @@ void MeasureGUI_InertiaDlg::processObject()
|
|||||||
myGrp->LineEdit43->setText( "" );
|
myGrp->LineEdit43->setText( "" );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myGrp->LineEdit11->setText( QString( "%1" ).arg( aMat( 1, 1 ), 12, 'e', 4 ) );
|
myGrp->LineEdit11->setText( DlgRef::PrintDoubleValue( aMat( 1, 1 ), -6 ) );
|
||||||
myGrp->LineEdit12->setText( QString( "%1" ).arg( aMat( 1, 2 ), 12, 'e', 4 ) );
|
myGrp->LineEdit12->setText( DlgRef::PrintDoubleValue( aMat( 1, 2 ), -6 ) );
|
||||||
myGrp->LineEdit13->setText( QString( "%1" ).arg( aMat( 1, 3 ), 12, 'e', 4 ) );
|
myGrp->LineEdit13->setText( DlgRef::PrintDoubleValue( aMat( 1, 3 ), -6 ) );
|
||||||
|
|
||||||
myGrp->LineEdit21->setText( QString( "%1" ).arg( aMat( 2, 1 ), 12, 'e', 4 ) );
|
myGrp->LineEdit21->setText( DlgRef::PrintDoubleValue( aMat( 2, 1 ), -6 ) );
|
||||||
myGrp->LineEdit22->setText( QString( "%1" ).arg( aMat( 2, 2 ), 12, 'e', 4 ) );
|
myGrp->LineEdit22->setText( DlgRef::PrintDoubleValue( aMat( 2, 2 ), -6 ) );
|
||||||
myGrp->LineEdit23->setText( QString( "%1" ).arg( aMat( 2, 3 ), 12, 'e', 4 ) );
|
myGrp->LineEdit23->setText( DlgRef::PrintDoubleValue( aMat( 2, 3 ), -6 ) );
|
||||||
|
|
||||||
myGrp->LineEdit31->setText( QString( "%1" ).arg( aMat( 3, 1 ), 12, 'e', 4 ) );
|
myGrp->LineEdit31->setText( DlgRef::PrintDoubleValue( aMat( 3, 1 ), -6 ) );
|
||||||
myGrp->LineEdit32->setText( QString( "%1" ).arg( aMat( 3, 2 ), 12, 'e', 4 ) );
|
myGrp->LineEdit32->setText( DlgRef::PrintDoubleValue( aMat( 3, 2 ), -6 ) );
|
||||||
myGrp->LineEdit33->setText( QString( "%1" ).arg( aMat( 3, 3 ), 12, 'e', 4 ) );
|
myGrp->LineEdit33->setText( DlgRef::PrintDoubleValue( aMat( 3, 3 ), -6 ) );
|
||||||
|
|
||||||
myGrp->LineEdit41->setText( QString( "%1" ).arg( anIXYZ.X(), 12, 'e', 4 ) );
|
myGrp->LineEdit41->setText( DlgRef::PrintDoubleValue( anIXYZ.X(), -6 ) );
|
||||||
myGrp->LineEdit42->setText( QString( "%1" ).arg( anIXYZ.Y(), 12, 'e', 4 ) );
|
myGrp->LineEdit42->setText( DlgRef::PrintDoubleValue( anIXYZ.Y(), -6 ) );
|
||||||
myGrp->LineEdit43->setText( QString( "%1" ).arg( anIXYZ.Z(), 12, 'e', 4 ) );
|
myGrp->LineEdit43->setText( DlgRef::PrintDoubleValue( anIXYZ.Z(), -6 ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
//
|
//
|
||||||
#include "MeasureGUI_MaxToleranceDlg.h"
|
#include "MeasureGUI_MaxToleranceDlg.h"
|
||||||
#include "MeasureGUI_Widgets.h"
|
#include "MeasureGUI_Widgets.h"
|
||||||
|
#include "DlgRef.h"
|
||||||
|
|
||||||
#include <SUIT_Session.h>
|
#include <SUIT_Session.h>
|
||||||
#include <SUIT_ResourceMgr.h>
|
#include <SUIT_ResourceMgr.h>
|
||||||
@ -131,14 +132,17 @@ void MeasureGUI_MaxToleranceDlg::processObject()
|
|||||||
double invalidMin = RealLast();
|
double invalidMin = RealLast();
|
||||||
double invalidMax = -RealLast();
|
double invalidMax = -RealLast();
|
||||||
|
|
||||||
myGrp->LineEdit11->setText( aMinFaceToler != invalidMin ? QString( "%1" ).arg( aMinFaceToler, 5, 'e', 8 ) : QString("") );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myGrp->LineEdit12->setText( aMaxFaceToler != invalidMax ? QString( "%1" ).arg( aMaxFaceToler, 5, 'e', 8 ) : QString("") );
|
int aPrecision = resMgr->integerValue( "Geometry", "len_tol_precision", -9);
|
||||||
|
|
||||||
myGrp->LineEdit21->setText( aMinEdgeToler != invalidMin ? QString( "%1" ).arg( aMinEdgeToler, 5, 'e', 8 ) : QString("") );
|
myGrp->LineEdit11->setText( aMinFaceToler != invalidMin ? DlgRef::PrintDoubleValue( aMinFaceToler, aPrecision ) : QString("") );
|
||||||
myGrp->LineEdit22->setText( aMaxEdgeToler != invalidMax ? QString( "%1" ).arg( aMaxEdgeToler, 5, 'e', 8 ) : QString("") );
|
myGrp->LineEdit12->setText( aMaxFaceToler != invalidMax ? DlgRef::PrintDoubleValue( aMaxFaceToler, aPrecision ) : QString("") );
|
||||||
|
|
||||||
myGrp->LineEdit31->setText( aMinVertexToler != invalidMin ? QString( "%1" ).arg( aMinVertexToler, 5, 'e', 8 ) : QString("") );
|
myGrp->LineEdit21->setText( aMinEdgeToler != invalidMin ? DlgRef::PrintDoubleValue( aMinEdgeToler, aPrecision ) : QString("") );
|
||||||
myGrp->LineEdit32->setText( aMaxVertexToler != invalidMax ? QString( "%1" ).arg( aMaxVertexToler, 5, 'e', 8 ) : QString("") );
|
myGrp->LineEdit22->setText( aMaxEdgeToler != invalidMax ? DlgRef::PrintDoubleValue( aMaxEdgeToler, aPrecision ) : QString("") );
|
||||||
|
|
||||||
|
myGrp->LineEdit31->setText( aMinVertexToler != invalidMin ? DlgRef::PrintDoubleValue( aMinVertexToler, aPrecision ) : QString("") );
|
||||||
|
myGrp->LineEdit32->setText( aMaxVertexToler != invalidMax ? DlgRef::PrintDoubleValue( aMaxVertexToler, aPrecision ) : QString("") );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -172,9 +172,11 @@ void MeasureGUI_PointDlg::SelectionIntoArgument()
|
|||||||
if ( !aPoint.IsNull() ) {
|
if ( !aPoint.IsNull() ) {
|
||||||
gp_Pnt aPnt = BRep_Tool::Pnt( aPoint );
|
gp_Pnt aPnt = BRep_Tool::Pnt( aPoint );
|
||||||
myGrp->LineEdit1->setText( aName );
|
myGrp->LineEdit1->setText( aName );
|
||||||
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( aPnt.X() ) );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( aPnt.Y() ) );
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( aPnt.Z() ) );
|
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( aPnt.X(), aPrecision ) );
|
||||||
|
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( aPnt.Y(), aPrecision ) );
|
||||||
|
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( aPnt.Z(), aPrecision ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
|
@ -139,9 +139,11 @@ void MeasureGUI_PropertiesDlg::processObject()
|
|||||||
myGrp->LineEdit4->setText( "" );
|
myGrp->LineEdit4->setText( "" );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( aLength ) );
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( anArea ) );
|
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( aVolume ) );
|
myGrp->LineEdit2->setText( DlgRef::PrintDoubleValue( aLength, aPrecision ) );
|
||||||
|
myGrp->LineEdit3->setText( DlgRef::PrintDoubleValue( anArea, aPrecision ) );
|
||||||
|
myGrp->LineEdit4->setText( DlgRef::PrintDoubleValue( aVolume, aPrecision ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -232,6 +232,9 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
QString aKindStr("");
|
QString aKindStr("");
|
||||||
theParameters = "";
|
theParameters = "";
|
||||||
|
|
||||||
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
int aLenPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
|
||||||
|
|
||||||
if ( myObj->_is_nil() )
|
if ( myObj->_is_nil() )
|
||||||
return aKindStr;
|
return aKindStr;
|
||||||
|
|
||||||
@ -253,7 +256,7 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
if ( !anOper->IsDone() )
|
if ( !anOper->IsDone() )
|
||||||
return aKindStr;
|
return aKindStr;
|
||||||
|
|
||||||
#define PRINT_DOUBLE(val) QString(" %1").arg( DlgRef::PrintDoubleValue( val ) )
|
#define PRINT_DOUBLE(val, tol) DlgRef::PrintDoubleValue( val, tol )
|
||||||
switch ( aKind )
|
switch ( aKind )
|
||||||
{
|
{
|
||||||
case GEOM::GEOM_IKindOfShape::COMPOUND:
|
case GEOM::GEOM_IKindOfShape::COMPOUND:
|
||||||
@ -284,84 +287,84 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
case GEOM::GEOM_IKindOfShape::SPHERE:
|
case GEOM::GEOM_IKindOfShape::SPHERE:
|
||||||
aKindStr = tr( "GEOM_SPHERE" );
|
aKindStr = tr( "GEOM_SPHERE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3] );
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::CYLINDER:
|
case GEOM::GEOM_IKindOfShape::CYLINDER:
|
||||||
aKindStr = tr( "GEOM_CYLINDER" );
|
aKindStr = tr( "GEOM_CYLINDER" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::BOX:
|
case GEOM::GEOM_IKindOfShape::BOX:
|
||||||
aKindStr = tr( "GEOM_BOX" );
|
aKindStr = tr( "GEOM_BOX" );
|
||||||
theParameters = tr( "GEOM_CENTER") +
|
theParameters = tr( "GEOM_CENTER") +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + "Ax :" + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + "Ax :" + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + "Ay :" + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + "Ay :" + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + "Az :" + PRINT_DOUBLE( aDbls[5] );
|
"\n" + "Az :" + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::ROTATED_BOX:
|
case GEOM::GEOM_IKindOfShape::ROTATED_BOX:
|
||||||
aKindStr = tr( "GEOM_BOX" );
|
aKindStr = tr( "GEOM_BOX" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\nZ Axis:" +
|
"\nZ Axis:" +
|
||||||
"\n" + "Zx :" + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + "Zx :" + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + "Zy :" + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + "Zy :" + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + "Zz :" + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + "Zz :" + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\nX Axis:" +
|
"\nX Axis:" +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( "x" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( "x" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( "y" ) + PRINT_DOUBLE( aDbls[7] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( "y" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( "z" ) + PRINT_DOUBLE( aDbls[8] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( "z" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
|
||||||
"\nDimensions along local axes:" +
|
"\nDimensions along local axes:" +
|
||||||
"\n" + "Ax :" + PRINT_DOUBLE( aDbls[9] ) +
|
"\n" + "Ax :" + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
|
||||||
"\n" + "Ay :" + PRINT_DOUBLE( aDbls[10] ) +
|
"\n" + "Ay :" + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
|
||||||
"\n" + "Az :" + PRINT_DOUBLE( aDbls[11] );
|
"\n" + "Az :" + PRINT_DOUBLE( aDbls[11], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::TORUS:
|
case GEOM::GEOM_IKindOfShape::TORUS:
|
||||||
aKindStr = tr( "GEOM_TORUS" );
|
aKindStr = tr( "GEOM_TORUS" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::CONE:
|
case GEOM::GEOM_IKindOfShape::CONE:
|
||||||
aKindStr = tr( "GEOM_CONE" );
|
aKindStr = tr( "GEOM_CONE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8] );
|
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::POLYHEDRON:
|
case GEOM::GEOM_IKindOfShape::POLYHEDRON:
|
||||||
aKindStr = tr( "GEOM_POLYHEDRON" );
|
aKindStr = tr( "GEOM_POLYHEDRON" );
|
||||||
@ -373,114 +376,114 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
case GEOM::GEOM_IKindOfShape::SPHERE2D:
|
case GEOM::GEOM_IKindOfShape::SPHERE2D:
|
||||||
aKindStr = tr( "GEOM_SURFSPHERE" );
|
aKindStr = tr( "GEOM_SURFSPHERE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3] );
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::CYLINDER2D:
|
case GEOM::GEOM_IKindOfShape::CYLINDER2D:
|
||||||
aKindStr = tr( "GEOM_SURFCYLINDER" );
|
aKindStr = tr( "GEOM_SURFCYLINDER" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::TORUS2D:
|
case GEOM::GEOM_IKindOfShape::TORUS2D:
|
||||||
aKindStr = tr( "GEOM_SURFTORUS" );
|
aKindStr = tr( "GEOM_SURFTORUS" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::CONE2D:
|
case GEOM::GEOM_IKindOfShape::CONE2D:
|
||||||
aKindStr = tr( "GEOM_SURFCONE" );
|
aKindStr = tr( "GEOM_SURFCONE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_AXIS" ) +
|
"\n" + tr( "GEOM_AXIS" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7] ) +
|
"\n" + tr( "GEOM_RADIUS_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8] );
|
"\n" + tr( "GEOM_HEIGHT" ) + PRINT_DOUBLE( aDbls[8], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::DISK_CIRCLE:
|
case GEOM::GEOM_IKindOfShape::DISK_CIRCLE:
|
||||||
aKindStr = tr( "GEOM_DISK_CIRCLE" );
|
aKindStr = tr( "GEOM_DISK_CIRCLE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6] );
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::DISK_ELLIPSE:
|
case GEOM::GEOM_IKindOfShape::DISK_ELLIPSE:
|
||||||
aKindStr = tr( "GEOM_DISK_ELLIPSE" );
|
aKindStr = tr( "GEOM_DISK_ELLIPSE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::POLYGON:
|
case GEOM::GEOM_IKindOfShape::POLYGON:
|
||||||
aKindStr = tr( "GEOM_POLYGON" );
|
aKindStr = tr( "GEOM_POLYGON" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] );
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::PLANE:
|
case GEOM::GEOM_IKindOfShape::PLANE:
|
||||||
aKindStr = tr( "GEOM_PLANE" );
|
aKindStr = tr( "GEOM_PLANE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] );
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::PLANAR:
|
case GEOM::GEOM_IKindOfShape::PLANAR:
|
||||||
aKindStr = tr( "GEOM_PLANAR_FACE" );
|
aKindStr = tr( "GEOM_PLANAR_FACE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] );
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::FACE:
|
case GEOM::GEOM_IKindOfShape::FACE:
|
||||||
aKindStr = tr( "GEOM_FACE" );
|
aKindStr = tr( "GEOM_FACE" );
|
||||||
@ -489,94 +492,94 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
case GEOM::GEOM_IKindOfShape::CIRCLE:
|
case GEOM::GEOM_IKindOfShape::CIRCLE:
|
||||||
aKindStr = tr( "GEOM_CIRCLE" );
|
aKindStr = tr( "GEOM_CIRCLE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6] );
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::ARC_CIRCLE:
|
case GEOM::GEOM_IKindOfShape::ARC_CIRCLE:
|
||||||
aKindStr = tr( "GEOM_ARC" );
|
aKindStr = tr( "GEOM_ARC" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
|
"\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[7] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[10] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12] );
|
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::ELLIPSE:
|
case GEOM::GEOM_IKindOfShape::ELLIPSE:
|
||||||
aKindStr = tr( "GEOM_ELLIPSE" );
|
aKindStr = tr( "GEOM_ELLIPSE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7] );
|
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::ARC_ELLIPSE:
|
case GEOM::GEOM_IKindOfShape::ARC_ELLIPSE:
|
||||||
aKindStr = tr( "GEOM_ARC_ELLIPSE" );
|
aKindStr = tr( "GEOM_ARC_ELLIPSE" );
|
||||||
theParameters = tr( "GEOM_CENTER" ) +
|
theParameters = tr( "GEOM_CENTER" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_NORMAL" ) +
|
"\n" + tr( "GEOM_NORMAL" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] ) +
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
"\n" + tr( "GEOM_DIMENSIONS" ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6] ) +
|
"\n" + tr( "GEOM_RADIUS_MAJOR" ) + PRINT_DOUBLE( aDbls[6], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7] ) +
|
"\n" + tr( "GEOM_RADIUS_MINOR" ) + PRINT_DOUBLE( aDbls[7], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
|
"\n" + tr( "GEOM_POINT_I" ).arg( 1 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[8], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[9], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[10] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[10], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[11], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[12], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[13] );
|
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[13], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::LINE:
|
case GEOM::GEOM_IKindOfShape::LINE:
|
||||||
aKindStr = tr( "GEOM_LINE" );
|
aKindStr = tr( "GEOM_LINE" );
|
||||||
theParameters = tr( "GEOM_POSITION" ) +
|
theParameters = tr( "GEOM_POSITION" ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 0 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DIRECTION" ) +
|
"\n" + tr( "GEOM_DIRECTION" ) +
|
||||||
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_DX" ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_DY" ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5] );
|
"\n" + tr( "GEOM_DZ" ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::SEGMENT:
|
case GEOM::GEOM_IKindOfShape::SEGMENT:
|
||||||
aKindStr = tr( "GEOM_SEGMENT" );
|
aKindStr = tr( "GEOM_SEGMENT" );
|
||||||
theParameters = tr( "GEOM_POINT_I" ).arg( 1 ) +
|
theParameters = tr( "GEOM_POINT_I" ).arg( 1 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[2] ) +
|
"\n" + tr( "GEOM_Z_I" ).arg( 1 ) + PRINT_DOUBLE( aDbls[2], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
"\n" + tr( "GEOM_POINT_I" ).arg( 2 ) +
|
||||||
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[3] ) +
|
"\n" + tr( "GEOM_X_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[3], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[4] ) +
|
"\n" + tr( "GEOM_Y_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[4], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[5] );
|
"\n" + tr( "GEOM_Z_I" ).arg( 2 ) + PRINT_DOUBLE( aDbls[5], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::EDGE:
|
case GEOM::GEOM_IKindOfShape::EDGE:
|
||||||
aKindStr = tr( "GEOM_EDGE" );
|
aKindStr = tr( "GEOM_EDGE" );
|
||||||
@ -584,9 +587,9 @@ QString MeasureGUI_WhatisDlg::getKindOfShape( QString& theParameters )
|
|||||||
case GEOM::GEOM_IKindOfShape::VERTEX:
|
case GEOM::GEOM_IKindOfShape::VERTEX:
|
||||||
aKindStr = tr( "GEOM_VERTEX" );
|
aKindStr = tr( "GEOM_VERTEX" );
|
||||||
theParameters = tr( "GEOM_COORDINATES" ) +
|
theParameters = tr( "GEOM_COORDINATES" ) +
|
||||||
"\n" + tr( "GEOM_X" ) + PRINT_DOUBLE( aDbls[0] ) +
|
"\n" + tr( "GEOM_X" ) + PRINT_DOUBLE( aDbls[0], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Y" ) + PRINT_DOUBLE( aDbls[1] ) +
|
"\n" + tr( "GEOM_Y" ) + PRINT_DOUBLE( aDbls[1], aLenPrecision ) +
|
||||||
"\n" + tr( "GEOM_Z" ) + PRINT_DOUBLE( aDbls[2] );
|
"\n" + tr( "GEOM_Z" ) + PRINT_DOUBLE( aDbls[2], aLenPrecision );
|
||||||
break;
|
break;
|
||||||
case GEOM::GEOM_IKindOfShape::ADVANCED:
|
case GEOM::GEOM_IKindOfShape::ADVANCED:
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user