EgtGeomKernel :
- a Frame3d aggiunto Set con angolidi eulero (CAC') - corretta geometria da disegnare per vettore nullo - ObjUser ora ha anche puntatore a GeomDB.
This commit is contained in:
+13
-3
@@ -28,6 +28,7 @@ ObjUserDefault::ObjUserDefault( const string& sName)
|
||||
{
|
||||
m_sName = sName ;
|
||||
m_nOwnerId = GDB_ID_NULL ;
|
||||
m_pGeomDB = nullptr ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -40,7 +41,8 @@ ObjUserDefault::Clone( void) const
|
||||
if ( pOUD != nullptr) {
|
||||
try { pOUD->m_sName = m_sName ;
|
||||
pOUD->m_vData = m_vData ;
|
||||
pOUD->m_nOwnerId = GDB_ID_NULL ;
|
||||
pOUD->m_nOwnerId = GDB_ID_NULL ;
|
||||
pOUD->m_pGeomDB = nullptr ;
|
||||
}
|
||||
catch( ...) {
|
||||
delete pOUD ;
|
||||
@@ -87,10 +89,11 @@ ObjUserDefault::Load( const STRVECTOR& vString)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ObjUserDefault::SetOwner( int nId)
|
||||
ObjUserDefault::SetOwner( int nId, IGeomDB* pGDB)
|
||||
{
|
||||
m_nOwnerId = nId ;
|
||||
return true ;
|
||||
m_pGeomDB = pGDB ;
|
||||
return ( m_nOwnerId != GDB_ID_NULL && m_pGeomDB != nullptr) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -99,3 +102,10 @@ ObjUserDefault::GetOwner( void) const
|
||||
{
|
||||
return m_nOwnerId ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
IGeomDB*
|
||||
ObjUserDefault::GetGeomDB( void) const
|
||||
{
|
||||
return m_pGeomDB ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user