8a416970a3
- correzione a PolyLine (Splice) - impostazione Reset grafica sulle diverse entità geometriche.
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : ObjGraphicsMgr.h Data : 11.02.14 Versione : 1.5b2
|
|
// Contenuto : Dichiarazione del gestore di IObjGraphics.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 11.02.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkObjGraphics.h"
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
class ObjGraphicsMgr
|
|
{
|
|
public :
|
|
ObjGraphicsMgr( void) : m_pOGr( nullptr) {}
|
|
~ObjGraphicsMgr( void)
|
|
{ if ( m_pOGr != nullptr)
|
|
delete m_pOGr ;
|
|
m_pOGr = nullptr ; }
|
|
void SetObjGraphics( IObjGraphics* pOGr)
|
|
{ if ( m_pOGr != nullptr)
|
|
delete m_pOGr ;
|
|
m_pOGr = pOGr ; }
|
|
IObjGraphics* GetObjGraphics( void)
|
|
{ return m_pOGr ; }
|
|
const IObjGraphics* GetObjGraphics( void) const
|
|
{ return m_pOGr ; }
|
|
void Reset( void)
|
|
{ if ( m_pOGr != nullptr)
|
|
m_pOGr->Reset() ; }
|
|
|
|
private :
|
|
IObjGraphics* m_pOGr ;
|
|
} ;
|