const char* tmpName = "__InPlaceObj__";
// remove old InPlaceObj
if ( !myInPlaceObj->_is_nil() ) {
+ if ( myInPlaceObjSelectWay == GET_IN_PLACE ) // hide temporary object
+ GEOM_Displayer(getStudy()).Erase( myInPlaceObj, true );
if (_PTR(SObject) SO = getStudy()->studyDS()->FindObject( tmpName )) {
getStudy()->studyDS()->NewBuilder()->RemoveObjectWithChildren( SO );
getGeomEngine()->RemoveObject(myInPlaceObj);
myMain2InPlaceIndices.Bind( aMainIndex, aPlaceIndex );
}
}
+ myInPlaceObjSelectWay = subSelectionWay();
}
//=================================================================================
GEOM::GEOM_Object_var myMainObj;
GEOM::GEOM_Object_var myGroup;
GEOM::GEOM_Object_var myInPlaceObj;
+ int myInPlaceObjSelectWay;
TColStd_DataMapOfIntegerInteger myMain2InPlaceIndices;
QPushButton* mySelBtn;
QPushButton* mySelBtn2;
QLineEdit* myShape2Name;
QButtonGroup* mySelectionWayGroup;
- //QRadioButton* mySelSubBtn;
- //QCheckBox* myPlaceCheckBox;
QPushButton* mySelAllBtn;
QPushButton* myAddBtn;
QPushButton* myRemBtn;