void CSketchOp::glCommands(bool select, bool marked, bool no_color) { CDepthOp::glCommands(select, marked, no_color); if (select || marked) { // allow sketch operations to be selected HeeksObj* sketch = heeksCAD->GetIDObject(SketchType, m_sketch); if (sketch) { if (select)glPushName(sketch->GetIndex()); sketch->glCommands(select, marked, no_color); if (select)glPopName(); } } }
void ObjList::glCommands(bool select, bool marked, bool no_color) { if(!m_visible) return; HeeksObj::glCommands(select, marked, no_color); std::list<HeeksObj*>::iterator It; for(It=m_objects.begin(); It!=m_objects.end() ;It++) { HeeksObj* object = *It; if(object->OnVisibleLayer() && object->m_visible) { if(select)glPushName(object->GetIndex()); #ifdef HEEKSCAD (*It)->glCommands(select, marked || wxGetApp().m_marked_list->ObjectMarked(object), no_color); #else (*It)->glCommands(select, marked || heeksCAD->ObjectMarked(object), no_color); #endif if(select)glPopName(); } } }