EgtGraphics 1.6c3 :

- possibilità di filtrare selezione per tipologia di entità
- filtro per snap punto ricondotto al caso precedente.
This commit is contained in:
Dario Sassi
2015-03-18 13:54:57 +00:00
parent f3eb14ff8f
commit ff8c9fa37c
6 changed files with 58 additions and 50 deletions
+18
View File
@@ -109,6 +109,24 @@ Scene::Select( const Point3d& ptSelCenter, int nW, int nH, int& nSel)
return true ;
}
//----------------------------------------------------------------------------
bool
Scene::SetObjFilterForSelect( bool bZerodim, bool bCurve, bool bSurf, bool bVolume, bool bExtra)
{
m_nObjFilterForSelect = 0 ;
if ( bZerodim)
m_nObjFilterForSelect |= GEO_ZERODIM ;
if ( bCurve)
m_nObjFilterForSelect |= GEO_CURVE ;
if ( bSurf)
m_nObjFilterForSelect |= GEO_SURF ;
if ( bVolume)
m_nObjFilterForSelect |= GEO_VOLUME ;
if ( bExtra)
m_nObjFilterForSelect |= GEO_EXTRA ;
return true ;
}
//----------------------------------------------------------------------------
bool
Scene::GetSelectedObjs( INTVECTOR& nIds)