2004-01-07 20:46:21 +05:00
|
|
|
// GEOM GEOMGUI : GUI for Geometry component
|
|
|
|
//
|
|
|
|
// 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
|
2008-03-07 12:45:34 +05:00
|
|
|
// 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
|
2004-01-07 20:46:21 +05:00
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : BasicGUI_PointDlg.cxx
|
|
|
|
// Author : Lucien PIGNOLONI
|
|
|
|
// Module : GEOM
|
|
|
|
// $Header$
|
|
|
|
|
|
|
|
#include "BasicGUI_PointDlg.h"
|
|
|
|
|
2005-06-02 13:17:09 +06:00
|
|
|
#include "SUIT_Session.h"
|
|
|
|
#include "SalomeApp_Application.h"
|
2005-11-03 13:30:14 +05:00
|
|
|
#include "LightApp_SelectionMgr.h"
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#include "GEOMImpl_Types.hxx"
|
|
|
|
|
2005-06-02 13:17:09 +06:00
|
|
|
#include <qlabel.h>
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
#include "utilities.h"
|
|
|
|
|
|
|
|
#include <gp_Pnt.hxx>
|
|
|
|
#include <TopoDS_Shape.hxx>
|
|
|
|
#include <TopoDS_Vertex.hxx>
|
|
|
|
#include <TopAbs_ShapeEnum.hxx>
|
|
|
|
#include <TopoDS.hxx>
|
2004-01-07 20:46:21 +05:00
|
|
|
#include <BRep_Tool.hxx>
|
2005-11-30 17:34:46 +05:00
|
|
|
#include <TopExp.hxx>
|
|
|
|
#include <TColStd_IndexedMapOfInteger.hxx>
|
|
|
|
#include <TopTools_IndexedMapOfShape.hxx>
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
#include <qapplication.h>
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2005-08-19 17:51:38 +06:00
|
|
|
using namespace std;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
//=================================================================================
|
|
|
|
// class : BasicGUI_PointDlg()
|
2008-03-07 12:45:34 +05:00
|
|
|
// purpose : Constructs a BasicGUI_PointDlg which is a child of 'parent', with the
|
2004-01-07 20:46:21 +05:00
|
|
|
// 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.
|
|
|
|
//=================================================================================
|
2006-05-06 14:44:32 +06:00
|
|
|
BasicGUI_PointDlg::BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent,
|
|
|
|
const char* name, bool modal, WFlags fl)
|
|
|
|
:GEOMBase_Skeleton(theGeometryGUI, parent, name, modal, fl )
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2005-06-02 13:17:09 +06:00
|
|
|
QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
|
|
|
|
QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
|
|
|
|
QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
|
|
|
|
QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
|
2008-03-07 12:45:34 +05:00
|
|
|
QPixmap image4(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_LINES")));
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
setCaption(tr("GEOM_POINT_TITLE"));
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
QGroupBox* aFrame = new QGroupBox( 1, Qt::Horizontal, this );
|
|
|
|
aFrame->setInsideMargin( 0 );
|
|
|
|
aFrame->setFrameStyle( QFrame::NoFrame );
|
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
/***************************************************************/
|
|
|
|
GroupConstructors->setTitle(tr("GEOM_POINTS"));
|
|
|
|
RadioButton1->setPixmap(image0);
|
2004-12-01 15:39:14 +05:00
|
|
|
RadioButton2->setPixmap(image3);
|
|
|
|
RadioButton3->setPixmap(image1);
|
2008-03-07 12:45:34 +05:00
|
|
|
RadioButton4->show();
|
|
|
|
RadioButton4->setPixmap(image4);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
GroupXYZ = new DlgRef_3Spin( aFrame, "GroupXYZ" );
|
|
|
|
GroupXYZ->GroupBox1->setTitle(tr("GEOM_COORDINATES"));
|
|
|
|
GroupXYZ->TextLabel1->setText(tr("GEOM_X"));
|
|
|
|
GroupXYZ->TextLabel2->setText(tr("GEOM_Y"));
|
|
|
|
GroupXYZ->TextLabel3->setText(tr("GEOM_Z"));
|
|
|
|
|
|
|
|
GroupOnCurve = new DlgRef_1Sel1Spin( aFrame, "GroupOnCurve" );
|
|
|
|
GroupOnCurve->GroupBox1->setTitle(tr("GEOM_PARAM_POINT"));
|
|
|
|
GroupOnCurve->TextLabel1->setText(tr("GEOM_EDGE"));
|
|
|
|
GroupOnCurve->TextLabel2->setText(tr("GEOM_PARAMETER"));
|
|
|
|
GroupOnCurve->PushButton1->setPixmap(image2);
|
|
|
|
|
|
|
|
GroupRefPoint = new DlgRef_1Sel3Spin( aFrame, "GoupRefPoint" );
|
|
|
|
GroupRefPoint->GroupBox1->setTitle(tr("GEOM_REF_POINT"));
|
|
|
|
GroupRefPoint->TextLabel1->setText(tr("GEOM_POINT"));
|
|
|
|
GroupRefPoint->PushButton1->setPixmap(image2);
|
|
|
|
GroupRefPoint->TextLabel2->setText(tr("GEOM_DX"));
|
|
|
|
GroupRefPoint->TextLabel3->setText(tr("GEOM_DY"));
|
|
|
|
GroupRefPoint->TextLabel4->setText(tr("GEOM_DZ"));
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupLineIntersection = new DlgRef_2Sel_QTD (aFrame, "GroupLineIntersection");
|
|
|
|
GroupLineIntersection->GroupBox1->setTitle(tr("GEOM_LINE_INTERSECTION"));
|
|
|
|
GroupLineIntersection->TextLabel1->setText(tr("GEOM_LINE1"));
|
|
|
|
GroupLineIntersection->PushButton1->setPixmap(image2);
|
|
|
|
GroupLineIntersection->TextLabel2->setText(tr("GEOM_LINE2"));
|
|
|
|
GroupLineIntersection->PushButton2->setPixmap(image2);
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
Layout1->addWidget( aFrame, 2, 0 );
|
2004-01-07 20:46:21 +05:00
|
|
|
/***************************************************************/
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
myCoordGrp = new QGroupBox( 2, Qt::Horizontal, tr( "GEOM_COORDINATES" ), aFrame );
|
|
|
|
new QLabel( tr( "GEOM_X" ), myCoordGrp );
|
|
|
|
myX = new QLineEdit( myCoordGrp );
|
|
|
|
new QLabel( tr( "GEOM_Y" ), myCoordGrp );
|
|
|
|
myY = new QLineEdit( myCoordGrp );
|
|
|
|
new QLabel( tr( "GEOM_Z" ), myCoordGrp );
|
|
|
|
myZ = new QLineEdit( myCoordGrp );
|
|
|
|
|
|
|
|
myX->setReadOnly( true );
|
|
|
|
myY->setReadOnly( true );
|
|
|
|
myZ->setReadOnly( true );
|
|
|
|
|
|
|
|
myX->setEnabled( false );
|
|
|
|
myY->setEnabled( false );
|
|
|
|
myZ->setEnabled( false );
|
|
|
|
|
|
|
|
QPalette aPal = myX->palette();
|
|
|
|
aPal.setColor( QPalette::Disabled, QColorGroup::Text, QColor( 0, 0, 0 ) ) ;
|
|
|
|
myX->setPalette( aPal );
|
|
|
|
myY->setPalette( aPal );
|
|
|
|
myZ->setPalette( aPal );
|
2006-05-06 14:44:32 +06:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
// setHelpFileName("create_point_page.html");
|
2006-05-06 14:44:32 +06:00
|
|
|
setHelpFileName("point.htm");
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
Init();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-01-07 20:46:21 +05:00
|
|
|
// function : ~BasicGUI_PointDlg()
|
|
|
|
// purpose : Destructor
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-01-07 20:46:21 +05:00
|
|
|
BasicGUI_PointDlg::~BasicGUI_PointDlg()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : Init()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
void BasicGUI_PointDlg::Init()
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
GroupOnCurve->LineEdit1->setReadOnly( true );
|
|
|
|
GroupRefPoint->LineEdit1->setReadOnly( true );
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupLineIntersection->LineEdit1->setReadOnly( true );
|
|
|
|
GroupLineIntersection->LineEdit2->setReadOnly( true );
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
myEdge = GEOM::GEOM_Object::_nil();
|
|
|
|
myRefPoint = GEOM::GEOM_Object::_nil();
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
myEditCurrentArgument = 0;
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
/* Get setting of step value from file configuration */
|
2005-06-02 13:17:09 +06:00
|
|
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
|
|
|
double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
/* min, max, step and decimals for spin boxes */
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupXYZ->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
|
|
|
GroupXYZ->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
|
|
|
GroupXYZ->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
2004-12-01 15:39:14 +05:00
|
|
|
GroupXYZ->SpinBox_DX->SetValue(0.0);
|
|
|
|
GroupXYZ->SpinBox_DY->SetValue(0.0);
|
|
|
|
GroupXYZ->SpinBox_DZ->SetValue(0.0);
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupRefPoint->SpinBox_DX->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
|
|
|
GroupRefPoint->SpinBox_DY->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
|
|
|
GroupRefPoint->SpinBox_DZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, step, DBL_DIGITS_DISPLAY);
|
2004-12-01 15:39:14 +05:00
|
|
|
GroupRefPoint->SpinBox_DX->SetValue(0.0);
|
|
|
|
GroupRefPoint->SpinBox_DY->SetValue(0.0);
|
|
|
|
GroupRefPoint->SpinBox_DZ->SetValue(0.0);
|
|
|
|
|
|
|
|
step = 0.1;
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupOnCurve->SpinBox_DX->RangeStepAndValidator(0., 1., step, DBL_DIGITS_DISPLAY);
|
2004-12-01 15:39:14 +05:00
|
|
|
GroupOnCurve->SpinBox_DX->SetValue( 0.5 );
|
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
/* signals and slots connections */
|
|
|
|
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
|
2006-05-06 14:44:32 +06:00
|
|
|
connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
|
|
|
connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
|
|
|
connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
connect(GroupOnCurve->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
|
|
|
|
connect(GroupOnCurve->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
|
2008-03-07 12:45:34 +05:00
|
|
|
connect(GroupLineIntersection->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
|
|
|
|
connect(GroupLineIntersection->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
|
|
|
|
connect(GroupLineIntersection->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
|
|
|
|
connect(GroupLineIntersection->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
connect(GroupOnCurve->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupXYZ->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupXYZ->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupXYZ->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupRefPoint->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupRefPoint->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
|
|
|
connect(GroupRefPoint->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
|
|
|
|
connect(myGeomGUI, SIGNAL(SignalDefaultStepValueChanged(double)),
|
|
|
|
GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
|
|
|
|
|
|
|
|
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
|
|
|
this, SLOT(SelectionIntoArgument()));
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
initName( tr("GEOM_VERTEX") );
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
ConstructorsClicked( 0 );
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ConstructorsClicked()
|
|
|
|
// purpose : Radio button management
|
|
|
|
//=================================================================================
|
2008-03-07 12:45:34 +05:00
|
|
|
void BasicGUI_PointDlg::ConstructorsClicked (int constructorId)
|
|
|
|
{
|
|
|
|
globalSelection(); // close local contexts, if any
|
|
|
|
|
|
|
|
switch (constructorId)
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
GroupRefPoint->hide();
|
|
|
|
GroupOnCurve->hide();
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupLineIntersection->hide();
|
2004-12-01 15:39:14 +05:00
|
|
|
GroupXYZ->show();
|
|
|
|
myCoordGrp->hide();
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1:
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
myEditCurrentArgument = GroupRefPoint->LineEdit1;
|
|
|
|
myEditCurrentArgument->setText("");
|
|
|
|
myRefPoint = GEOM::GEOM_Object::_nil();
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
GroupXYZ->hide();
|
|
|
|
GroupOnCurve->hide();
|
|
|
|
GroupRefPoint->show();
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupLineIntersection->hide();
|
2004-12-01 15:39:14 +05:00
|
|
|
myCoordGrp->show();
|
|
|
|
break;
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
2004-12-01 15:39:14 +05:00
|
|
|
case 2:
|
|
|
|
{
|
|
|
|
myEditCurrentArgument = GroupOnCurve->LineEdit1;
|
|
|
|
myEditCurrentArgument->setText("");
|
|
|
|
myEdge = GEOM::GEOM_Object::_nil();
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
GroupXYZ->hide();
|
|
|
|
GroupRefPoint->hide();
|
|
|
|
GroupOnCurve->show();
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupLineIntersection->hide();
|
2004-12-01 15:39:14 +05:00
|
|
|
myCoordGrp->show();
|
|
|
|
break;
|
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
case 3:
|
|
|
|
{
|
|
|
|
myEditCurrentArgument = GroupLineIntersection->LineEdit1;
|
|
|
|
GroupLineIntersection->LineEdit1->setText("");
|
|
|
|
GroupLineIntersection->LineEdit2->setText("");
|
|
|
|
myLine1 = GEOM::GEOM_Object::_nil();
|
|
|
|
myLine2 = GEOM::GEOM_Object::_nil();
|
|
|
|
|
|
|
|
localSelection(GEOM::GEOM_Object::_nil(), TopAbs_EDGE);
|
|
|
|
|
|
|
|
GroupXYZ->hide();
|
|
|
|
GroupRefPoint->hide();
|
|
|
|
GroupOnCurve->hide();
|
|
|
|
GroupLineIntersection->show();
|
|
|
|
myCoordGrp->hide();
|
|
|
|
break;
|
|
|
|
}
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
myX->setText( "" );
|
|
|
|
myY->setText( "" );
|
|
|
|
myZ->setText( "" );
|
|
|
|
|
|
|
|
qApp->processEvents();
|
|
|
|
updateGeometry();
|
|
|
|
resize( minimumSize() );
|
|
|
|
|
2005-06-23 17:27:59 +06:00
|
|
|
SelectionIntoArgument();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ClickOnOk()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::ClickOnOk()
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
if (onAccept())
|
2004-12-01 15:39:14 +05:00
|
|
|
ClickOnCancel();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ClickOnApply()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
bool BasicGUI_PointDlg::ClickOnApply()
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
if (!onAccept())
|
2004-12-01 15:39:14 +05:00
|
|
|
return false;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
initName();
|
2008-03-07 12:45:34 +05:00
|
|
|
ConstructorsClicked(getConstructorId());
|
2004-12-01 15:39:14 +05:00
|
|
|
return true;
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-01-07 20:46:21 +05:00
|
|
|
// function : ClickOnCancel()
|
|
|
|
// purpose :
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-01-07 20:46:21 +05:00
|
|
|
void BasicGUI_PointDlg::ClickOnCancel()
|
|
|
|
{
|
|
|
|
GEOMBase_Skeleton::ClickOnCancel();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : SelectionIntoArgument()
|
|
|
|
// purpose : Called when selection as changed (for constructors not using local context)
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::SelectionIntoArgument()
|
|
|
|
{
|
2005-06-02 13:17:09 +06:00
|
|
|
const int id = getConstructorId();
|
2004-12-01 15:39:14 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
if ((id == 1 || id == 2) && myEditCurrentArgument != 0)
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
|
|
|
myEditCurrentArgument->setText("");
|
|
|
|
myX->setText( "" );
|
|
|
|
myY->setText( "" );
|
|
|
|
myZ->setText( "" );
|
|
|
|
myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
|
|
|
|
}
|
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
if (IObjectCount() == 1)
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
|
|
|
Standard_Boolean aRes = Standard_False;
|
|
|
|
Handle(SALOME_InteractiveObject) anIO = firstIObject();
|
2008-03-07 12:45:34 +05:00
|
|
|
GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(anIO, aRes);
|
|
|
|
if (!CORBA::is_nil(aSelectedObject) && aRes)
|
2005-06-02 13:17:09 +06:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
QString aName = GEOMBase::GetName(aSelectedObject);
|
2006-05-06 14:44:32 +06:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
TopoDS_Shape aShape;
|
|
|
|
if (GEOMBase::GetShape(aSelectedObject, aShape, TopAbs_SHAPE) && !aShape.IsNull())
|
|
|
|
{
|
|
|
|
TopAbs_ShapeEnum aNeedType = TopAbs_VERTEX;
|
|
|
|
if (id == 2 || id == 3)
|
|
|
|
aNeedType = TopAbs_EDGE;
|
|
|
|
|
|
|
|
LightApp_SelectionMgr* aSelMgr = myGeomGUI->getApp()->selectionMgr();
|
|
|
|
TColStd_IndexedMapOfInteger aMap;
|
|
|
|
aSelMgr->GetIndexes(firstIObject(), aMap);
|
|
|
|
if (aMap.Extent() == 1) // Local Selection
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
int anIndex = aMap(1);
|
|
|
|
if (aNeedType == TopAbs_EDGE)
|
|
|
|
aName += QString(":edge_%1").arg(anIndex);
|
2006-05-06 14:44:32 +06:00
|
|
|
else
|
2008-03-07 12:45:34 +05:00
|
|
|
aName += QString(":vertex_%1").arg(anIndex);
|
|
|
|
|
|
|
|
//Find SubShape Object in Father
|
|
|
|
GEOM::GEOM_Object_var aFindedObject = GEOMBase_Helper::findObjectInFather(aSelectedObject, aName);
|
|
|
|
|
|
|
|
if ( aFindedObject == GEOM::GEOM_Object::_nil() ) { // Object not found in study
|
|
|
|
GEOM::GEOM_IShapesOperations_var aShapesOp = getGeomEngine()->GetIShapesOperations(getStudyId());
|
|
|
|
aSelectedObject = aShapesOp->GetSubShape(aSelectedObject, anIndex);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
aSelectedObject = aFindedObject; // get Object from study
|
2006-05-06 14:44:32 +06:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
else // Global Selection
|
|
|
|
{
|
|
|
|
if (aShape.ShapeType() != aNeedType) {
|
|
|
|
aSelectedObject = GEOM::GEOM_Object::_nil();
|
|
|
|
aName = "";
|
|
|
|
if (id == 0) return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2006-05-06 14:44:32 +06:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
if (id == 0)
|
|
|
|
{
|
|
|
|
if (aShape.IsNull()) return;
|
2006-05-06 14:44:32 +06:00
|
|
|
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
|
|
|
GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
|
|
|
|
GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
|
|
|
|
GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
|
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
else if (id == 1)
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
|
|
|
myRefPoint = aSelectedObject;
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupRefPoint->LineEdit1->setText(aName);
|
2006-05-06 14:44:32 +06:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
else if (id == 2)
|
2006-05-06 14:44:32 +06:00
|
|
|
{
|
|
|
|
myEdge = aSelectedObject;
|
2008-03-07 12:45:34 +05:00
|
|
|
GroupOnCurve->LineEdit1->setText(aName);
|
|
|
|
}
|
|
|
|
else if (id == 3)
|
|
|
|
{
|
|
|
|
if (myEditCurrentArgument == GroupLineIntersection->LineEdit1) {
|
|
|
|
myLine1 = aSelectedObject;
|
|
|
|
myEditCurrentArgument->setText(aName);
|
|
|
|
}
|
|
|
|
else if (myEditCurrentArgument == GroupLineIntersection->LineEdit2) {
|
|
|
|
myLine2 = aSelectedObject;
|
|
|
|
myEditCurrentArgument->setText(aName);
|
|
|
|
}
|
2006-05-06 14:44:32 +06:00
|
|
|
}
|
2005-06-02 13:17:09 +06:00
|
|
|
}
|
2006-05-06 14:44:32 +06:00
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
displayPreview();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : LineEditReturnPressed()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::LineEditReturnPressed()
|
|
|
|
{
|
|
|
|
QLineEdit* send = (QLineEdit*)sender();
|
2008-03-07 12:45:34 +05:00
|
|
|
if ( send == GroupRefPoint->LineEdit1 || send == GroupOnCurve->LineEdit1 ||
|
|
|
|
send == GroupLineIntersection->LineEdit1 || send == GroupLineIntersection->LineEdit2 )
|
|
|
|
{
|
|
|
|
myEditCurrentArgument = send;
|
|
|
|
GEOMBase_Skeleton::LineEditReturnPressed();
|
|
|
|
}
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : SetEditCurrentArgument()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::SetEditCurrentArgument()
|
|
|
|
{
|
2008-03-07 12:45:34 +05:00
|
|
|
globalSelection(); // close local contexts, if any
|
|
|
|
|
2004-01-07 20:46:21 +05:00
|
|
|
QPushButton* send = (QPushButton*)sender();
|
2008-03-07 12:45:34 +05:00
|
|
|
globalSelection( GEOM_POINT); // to break previous local selection
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
if ( send == GroupRefPoint->PushButton1 )
|
|
|
|
{
|
|
|
|
GroupRefPoint->LineEdit1->setFocus();
|
|
|
|
myEditCurrentArgument = GroupRefPoint->LineEdit1;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
else if ( send == GroupOnCurve->PushButton1 )
|
|
|
|
{
|
|
|
|
GroupOnCurve->LineEdit1->setFocus();
|
|
|
|
myEditCurrentArgument = GroupOnCurve->LineEdit1;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
else if ( send == GroupLineIntersection->PushButton1 )
|
|
|
|
{
|
|
|
|
GroupLineIntersection->LineEdit1->setFocus();
|
|
|
|
myEditCurrentArgument = GroupLineIntersection->LineEdit1;
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2008-03-07 12:45:34 +05:00
|
|
|
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
|
|
|
}
|
|
|
|
else if ( send == GroupLineIntersection->PushButton2 )
|
|
|
|
{
|
|
|
|
GroupLineIntersection->LineEdit2->setFocus();
|
|
|
|
myEditCurrentArgument = GroupLineIntersection->LineEdit2;
|
|
|
|
|
|
|
|
localSelection( GEOM::GEOM_Object::_nil(), TopAbs_EDGE );
|
|
|
|
}
|
|
|
|
}
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : enterEvent()
|
|
|
|
// purpose : to reactivate this dialog box when mouse enter onto the window
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::enterEvent(QEvent* e)
|
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
if ( !GroupConstructors->isEnabled() )
|
|
|
|
ActivateThisDialog();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ActivateThisDialog()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::ActivateThisDialog( )
|
|
|
|
{
|
|
|
|
GEOMBase_Skeleton::ActivateThisDialog();
|
2006-05-06 14:44:32 +06:00
|
|
|
// myGeomGUI->SetState( 0 );
|
2004-12-01 15:39:14 +05:00
|
|
|
ConstructorsClicked( getConstructorId() );
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : DeactivateActiveDialog()
|
|
|
|
// purpose : public slot to deactivate if active
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::DeactivateActiveDialog()
|
|
|
|
{
|
2006-05-06 14:44:32 +06:00
|
|
|
// myGeomGUI->SetState( -1 );
|
2004-01-07 20:46:21 +05:00
|
|
|
GEOMBase_Skeleton::DeactivateActiveDialog();
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : ValueChangedInSpinBox()
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::ValueChangedInSpinBox(double newValue)
|
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
displayPreview();
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
// funcion : getParameter()
|
|
|
|
// purpose :
|
2006-05-06 14:44:32 +06:00
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
double BasicGUI_PointDlg::getParameter() const
|
|
|
|
{
|
|
|
|
return GroupOnCurve->SpinBox_DX->GetValue();
|
|
|
|
}
|
2004-01-07 20:46:21 +05:00
|
|
|
|
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
// function : OnPointSelected
|
|
|
|
// purpose :
|
2004-01-07 20:46:21 +05:00
|
|
|
//=================================================================================
|
2004-12-01 15:39:14 +05:00
|
|
|
void BasicGUI_PointDlg::OnPointSelected( const gp_Pnt& thePnt )
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2004-12-01 15:39:14 +05:00
|
|
|
if ( getConstructorId() == 0 )
|
|
|
|
{
|
|
|
|
GroupXYZ->SpinBox_DX->SetValue( thePnt.X() );
|
|
|
|
GroupXYZ->SpinBox_DY->SetValue( thePnt.Y() );
|
|
|
|
GroupXYZ->SpinBox_DZ->SetValue( thePnt.Z() );
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
displayPreview();
|
|
|
|
}
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=================================================================================
|
|
|
|
// function : createOperation
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
|
|
|
|
{
|
2006-05-06 14:44:32 +06:00
|
|
|
return myGeomGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
2004-01-07 20:46:21 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
//=================================================================================
|
|
|
|
// function : isValid
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
bool BasicGUI_PointDlg::isValid( QString& msg )
|
2004-01-07 20:46:21 +05:00
|
|
|
{
|
2005-06-02 13:17:09 +06:00
|
|
|
const int id = getConstructorId();
|
|
|
|
if ( id == 0 )
|
|
|
|
return true;
|
|
|
|
else if ( id == 1 )
|
|
|
|
return !myRefPoint->_is_nil();
|
|
|
|
else if ( id == 2 )
|
|
|
|
return !myEdge->_is_nil();
|
2008-03-07 12:45:34 +05:00
|
|
|
else if ( id == 3)
|
|
|
|
return ( !myLine1->_is_nil() && !myLine2->_is_nil() );
|
2005-06-02 13:17:09 +06:00
|
|
|
return false;
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : execute
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
bool BasicGUI_PointDlg::execute( ObjectList& objects )
|
|
|
|
{
|
|
|
|
bool res = false;
|
|
|
|
|
|
|
|
GEOM::GEOM_Object_var anObj;
|
|
|
|
|
|
|
|
switch ( getConstructorId() )
|
|
|
|
{
|
|
|
|
case 0 :
|
|
|
|
{
|
|
|
|
double x = GroupXYZ->SpinBox_DX->GetValue();
|
|
|
|
double y = GroupXYZ->SpinBox_DY->GetValue();
|
|
|
|
double z = GroupXYZ->SpinBox_DZ->GetValue();
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointXYZ( x,y,z );
|
|
|
|
res = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 1 :
|
|
|
|
{
|
|
|
|
double dx = GroupRefPoint->SpinBox_DX->GetValue();
|
|
|
|
double dy = GroupRefPoint->SpinBox_DY->GetValue();
|
|
|
|
double dz = GroupRefPoint->SpinBox_DZ->GetValue();
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2006-05-06 14:44:32 +06:00
|
|
|
anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->
|
|
|
|
MakePointWithReference( myRefPoint, dx, dy, dz );
|
2005-06-02 13:17:09 +06:00
|
|
|
res = true;
|
2004-12-01 15:39:14 +05:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case 2 :
|
2006-05-06 14:44:32 +06:00
|
|
|
anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->
|
|
|
|
MakePointOnCurve( myEdge, getParameter() );
|
2004-12-01 15:39:14 +05:00
|
|
|
res = true;
|
|
|
|
break;
|
2008-03-07 12:45:34 +05:00
|
|
|
case 3 :
|
|
|
|
anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->
|
|
|
|
MakePointOnLinesIntersection( myLine1, myLine2 );
|
|
|
|
res = true;
|
|
|
|
break;
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
2004-12-01 15:39:14 +05:00
|
|
|
|
|
|
|
if ( getConstructorId() == 1 || getConstructorId() == 2 )
|
2005-06-03 16:39:10 +06:00
|
|
|
{
|
|
|
|
TopoDS_Shape aShape;
|
|
|
|
if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
|
|
|
|
{
|
|
|
|
gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
|
|
|
|
myX->setText( QString( "%1" ).arg( aPnt.X() ) );
|
|
|
|
myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
|
|
|
|
myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
|
|
|
|
}
|
|
|
|
else
|
2004-12-01 15:39:14 +05:00
|
|
|
{
|
2005-06-03 16:39:10 +06:00
|
|
|
myX->setText( "" );
|
|
|
|
myY->setText( "" );
|
|
|
|
myZ->setText( "" );
|
2004-12-01 15:39:14 +05:00
|
|
|
}
|
2005-06-03 16:39:10 +06:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
if ( !anObj->_is_nil() )
|
2005-06-03 16:39:10 +06:00
|
|
|
{
|
|
|
|
//printf( "--> a valid point is created\n" );
|
2004-12-01 15:39:14 +05:00
|
|
|
objects.push_back( anObj._retn() );
|
2005-06-03 16:39:10 +06:00
|
|
|
}
|
|
|
|
|
2004-12-01 15:39:14 +05:00
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : closeEvent
|
|
|
|
// purpose :
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::closeEvent( QCloseEvent* e )
|
|
|
|
{
|
|
|
|
GEOMBase_Skeleton::closeEvent( e );
|
2004-01-07 20:46:21 +05:00
|
|
|
}
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
//=================================================================================
|
|
|
|
// function : addSubshapeToStudy
|
|
|
|
// purpose : virtual method to add new SubObjects if local selection
|
|
|
|
//=================================================================================
|
|
|
|
void BasicGUI_PointDlg::addSubshapesToStudy()
|
|
|
|
{
|
|
|
|
QMap<QString, GEOM::GEOM_Object_var> objMap;
|
|
|
|
|
|
|
|
switch (getConstructorId())
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
objMap[GroupRefPoint->LineEdit1->text()] = myRefPoint;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
objMap[GroupOnCurve->LineEdit1->text()] = myEdge;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
objMap[GroupLineIntersection->LineEdit1->text()] = myLine1;
|
|
|
|
objMap[GroupLineIntersection->LineEdit2->text()] = myLine2;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
addSubshapesToFather( objMap );
|
|
|
|
}
|