//=================================================================================
bool BuildGUI_CompoundDlg::execute( ObjectList& objects )
{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow( getOperation() )->MakeCompound( myShapes );
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+ GEOM::GEOM_Object_var anObj = anOper->MakeCompound( myShapes );
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
//=================================================================================
bool BuildGUI_EdgeDlg::execute (ObjectList& objects)
{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow(getOperation())->MakeEdge(myPoint1, myPoint2);
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+ GEOM::GEOM_Object_var anObj = anOper->MakeEdge(myPoint1, myPoint2);
if (!anObj->_is_nil())
objects.push_back(anObj._retn());
//=================================================================================
bool BuildGUI_FaceDlg::execute( ObjectList& objects )
{
- GEOM::GEOM_Object_var anObj;
-
- bool isPlanarWanted = GroupWire->CheckButton1->isChecked();
- anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeFaceWires( myWires, isPlanarWanted );
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+ GEOM::GEOM_Object_var anObj = anOper->MakeFaceWires( myWires, GroupWire->CheckButton1->isChecked() );
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
//=================================================================================
bool BuildGUI_ShellDlg::execute( ObjectList& objects )
{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeShell( myFacesAndShells );
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+ GEOM::GEOM_Object_var anObj = anOper->MakeShell( myFacesAndShells );
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
return false;
}
- GEOM::GEOM_IMeasureOperations_ptr anOp = myGeomGUI->GetGeomGen()->GetIMeasureOperations( getStudyId() );
-
- // GEOM::GEOM_IMeasureOperations_var anOp = GEOM::GEOM_IMeasureOperations::_narrow( getOperation() );
+ GEOM::GEOM_IMeasureOperations_var anOp = myGeomGUI->GetGeomGen()->GetIMeasureOperations( getStudyId() );
// Detect kind of shape and parameters
aKind = anOp->KindOfShape(aShape, anInts, aDbls);
{
bool toCreateSingleSolid = GroupSolid->CheckButton1->isChecked();
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+
if ( toCreateSingleSolid ) {
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeSolidShells( myShells );
+ GEOM::GEOM_Object_var anObj = anOper->MakeSolidShells( myShells );
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
}
else {
for ( int i = 0, n = myShells.length(); i< n; i++ ) {
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeSolidShell( myShells[ i ] );
+ GEOM::GEOM_Object_var anObj = anOper->MakeSolidShell( myShells[ i ] );
if ( !anObj->_is_nil() )
objects.push_back( anObj._retn() );
//=================================================================================
bool BuildGUI_WireDlg::execute (ObjectList& objects)
{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow(getOperation())->
- MakeWire(myEdgesAndWires, GroupArgs->SpinBox_DX->value());
+ GEOM::GEOM_IShapesOperations_var anOper = GEOM::GEOM_IShapesOperations::_narrow( getOperation() );
+ GEOM::GEOM_Object_var anObj = anOper->MakeWire(myEdgesAndWires, GroupArgs->SpinBox_DX->value());
if (!anObj->_is_nil())
objects.push_back(anObj._retn());