EgtGraphics :
- piccole modifiche per adattarsi a GeomKernel.
This commit is contained in:
+3
-6
@@ -93,12 +93,11 @@ bool
|
||||
Scene::DrawGroup( int nId, int nParentMode, int nParentStat, int nParentMark)
|
||||
{
|
||||
// creo un iteratore
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator()) ;
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator( m_pGeomDB)) ;
|
||||
if ( ! ::IsValid( pIter))
|
||||
return false ;
|
||||
|
||||
// recupero il gruppo
|
||||
pIter->SetGDB( m_pGeomDB) ;
|
||||
if ( ! pIter->GoTo( nId))
|
||||
return false ;
|
||||
|
||||
@@ -123,11 +122,10 @@ Scene::DrawGroup( const IGdbIterator& iIter, int nParentMode, int nParentStat, i
|
||||
glMultMatrixd( Matrix) ;
|
||||
}
|
||||
// creo un iteratore
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator()) ;
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator( m_pGeomDB)) ;
|
||||
if ( ! ::IsValid( pIter))
|
||||
return false ;
|
||||
// scandisco il gruppo
|
||||
pIter->SetGDB( m_pGeomDB) ;
|
||||
bool bNext = pIter->GoToFirstInGroup( iIter) ;
|
||||
while ( bNext) {
|
||||
// leggo il tipo di oggetto
|
||||
@@ -263,11 +261,10 @@ bool
|
||||
Scene::DeleteObjGraphicsGroup( int nId)
|
||||
{
|
||||
// creo un iteratore
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator()) ;
|
||||
PtrOwner<IGdbIterator> pIter( CreateGdbIterator( m_pGeomDB)) ;
|
||||
if ( ! ::IsValid( pIter))
|
||||
return false ;
|
||||
// scandisco il gruppo
|
||||
pIter->SetGDB( m_pGeomDB) ;
|
||||
bool bNext = pIter->GoToFirstInGroup( nId) ;
|
||||
while ( bNext) {
|
||||
// leggo il tipo di nodo
|
||||
|
||||
Reference in New Issue
Block a user