From 4fbfc6686b1cca6dfa43d0aa580cfcb2dd62a183 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sun, 23 Mar 2014 21:38:49 +0000 Subject: [PATCH] EgtGraphics : - piccole modifiche per adattarsi a GeomKernel. --- SceneGeom.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/SceneGeom.cpp b/SceneGeom.cpp index aee736b..4c90160 100644 --- a/SceneGeom.cpp +++ b/SceneGeom.cpp @@ -93,12 +93,11 @@ bool Scene::DrawGroup( int nId, int nParentMode, int nParentStat, int nParentMark) { // creo un iteratore - PtrOwner pIter( CreateGdbIterator()) ; + PtrOwner 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 pIter( CreateGdbIterator()) ; + PtrOwner 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 pIter( CreateGdbIterator()) ; + PtrOwner 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