QList<GEOM::GeomObjPtr> RepairGUI_ChangeOrientationDlg::getSourceObjects()
{
QList<GEOM::GeomObjPtr> res;
- GEOM::GeomObjPtr aGeomObjPtr(myObject);
- res << aGeomObjPtr;
+ if ( GroupPoints->CheckButton1->isChecked() ) {
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ }
return res;
}
//=================================================================================
QList<GEOM::GeomObjPtr> TransformationGUI_MirrorDlg::getSourceObjects()
{
- QList<GEOM::GeomObjPtr> res(myObjects);
- res << myArgument;
+ QList<GEOM::GeomObjPtr> res;
+ if ( GroupPoints->CheckButton1->isChecked() ) {
+ res.append(myObjects);
+ res << myArgument;
+ }
return res;
}
//=================================================================================
QList<GEOM::GeomObjPtr> TransformationGUI_OffsetDlg::getSourceObjects()
{
- return myObjects;
+ QList<GEOM::GeomObjPtr> res;
+ if ( GroupPoints->CheckButton1->isChecked() )
+ res.append( myObjects );
+ return res;
}
//=================================================================================
QList<GEOM::GeomObjPtr> TransformationGUI_PositionDlg::getSourceObjects()
{
- QList<GEOM::GeomObjPtr> res(myObjects);
- res << myStartLCS << myEndLCS << myPath;
+ QList<GEOM::GeomObjPtr> res;
+ if ( Group1->CheckButton1->isChecked() ) {
+ res.append(myObjects);
+ res << myStartLCS << myEndLCS << myPath;
+ }
return res;
}
//=================================================================================
QList<GEOM::GeomObjPtr> TransformationGUI_RotationDlg::getSourceObjects()
{
- QList<GEOM::GeomObjPtr> res(myObjects);
- res << myAxis << myCentPoint << myPoint1 << myPoint2;
+ QList<GEOM::GeomObjPtr> res;
+ if ( GroupPoints->CheckButton1->isChecked() ) {
+ res.append(myObjects);
+ res << myAxis << myCentPoint << myPoint1 << myPoint2;
+ }
return res;
}
QList<GEOM::GeomObjPtr> TransformationGUI_ScaleDlg::getSourceObjects()
{
QList<GEOM::GeomObjPtr> res(myObjects);
- res << myPoint;
+ if ( CheckBoxCopy->isChecked() )
+ res << myPoint;
return res;
}
//=================================================================================
QList<GEOM::GeomObjPtr> TransformationGUI_TranslationDlg::getSourceObjects()
{
- QList<GEOM::GeomObjPtr> res(myObjects);
- res << myVector << myPoint1 << myPoint2;
+ QList<GEOM::GeomObjPtr> res;
+ if ( GroupPoints->CheckBox2->isChecked() ) {
+ res.append(myObjects);
+ res << myVector << myPoint1 << myPoint2;
+ }
return res;
}