3e0e4e55a2
- aggiunta gestione ObjNewGraphics e ObjOldGraphics.
39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : ObjEGrGraphics.h Data : 13.02.14 Versione : 1.5b2
|
|
// Contenuto : Dichiarazione della classe grafica di un oggetto geometrico.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 13.02.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "GraphObjs.h"
|
|
#include "/EgtDev/Include/EgkObjGraphics.h"
|
|
#include "/EgtDev/Include/EgkGeoObj.h"
|
|
#include "/EgtDev/Include/EGkPolyLine.h"
|
|
|
|
class Scene ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class ObjEGrGraphics : public IObjGraphics
|
|
{
|
|
public :
|
|
virtual bool IsValid( void) = 0 ;
|
|
virtual void SetScene( Scene* pScene) = 0 ;
|
|
virtual Scene* GetScene( void) = 0 ;
|
|
virtual bool AddPolyLine( const PolyLine& PL) = 0 ;
|
|
virtual bool Draw( void) = 0 ;
|
|
} ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
inline const ObjEGrGraphics* GetObjEGrGraphics( const IGeoObj* pGObj)
|
|
{ return (dynamic_cast<const ObjEGrGraphics*>(pGObj->GetObjGraphics())) ; }
|
|
inline ObjEGrGraphics* GetObjEGrGraphics( IGeoObj* pGObj)
|
|
{ return (dynamic_cast<ObjEGrGraphics*>(pGObj->GetObjGraphics())) ; }
|