MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / removeObject

Method removeObject

src/Mod/CAM/App/FeaturePathCompound.cpp:102–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void FeatureCompound::removeObject(DocumentObject* obj)
103{
104 std::vector<DocumentObject*> grp = Group.getValues();
105 for (std::vector<DocumentObject*>::iterator it = grp.begin(); it != grp.end(); ++it) {
106 if (*it == obj) {
107 grp.erase(it);
108 Group.setValues(grp);
109 break;
110 }
111 }
112}
113
114PyObject* FeatureCompound::getPyObject()
115{

Callers 15

_setup_cyl_stockFunction · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
tearDownMethod · 0.45
test_early_tool_prepMethod · 0.45
dragObjectMethod · 0.45
opExecuteMethod · 0.45

Calls 5

getValuesMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
setValuesMethod · 0.45

Tested by 10

_setup_cyl_stockFunction · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36
tearDownMethod · 0.36
test_early_tool_prepMethod · 0.36