Files
Include/EGkGeoFrame3d.h
T
2013-12-21 16:19:58 +00:00

47 lines
2.1 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : EGkGeoFrame3d.h Data : 02.12.13 Versione : 1.4a3
// Contenuto : Dichiarazione della interfaccia IGeoFrame3d.
//
//
//
// Modifiche : 02.12.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGeoObj.h"
//-----------------------------------------------------------------------------
class __declspec( novtable) IGeoFrame3d : public IGeoObj
{
public :
virtual bool Set( const Point3d& ptOrig, const Vector3d& vtDirX,
const Vector3d& vtDirY, const Vector3d& vtDirZ) = 0 ;
virtual bool Set( const Frame3d& frF) = 0 ;
virtual const Frame3d& GetFrame( void) const = 0 ;
} ;
//-----------------------------------------------------------------------------
inline IGeoFrame3d* CreateGeoFrame3d( void)
{ return (static_cast<IGeoFrame3d*>( CreateGeoObj( GEO_FRAME3D))) ; }
inline IGeoFrame3d* CloneGeoFrame3d( const IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_FRAME3D)
return nullptr ;
return (static_cast<IGeoFrame3d*>(pGObj->Clone())) ; }
inline bool CopyGeoFrame3d( const IGeoFrame3d* pGFSou, IGeoFrame3d* pGFDest)
{ if ( pGFSou == nullptr || pGFDest == nullptr)
return false ;
return pGFDest->Set( pGFSou->GetFrame()) ; }
inline const IGeoFrame3d* GetGeoFrame3d( const IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_FRAME3D)
return nullptr ;
return (static_cast<const IGeoFrame3d*>(pGObj)) ; }
inline IGeoFrame3d* GetGeoFrame3d( IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_FRAME3D)
return nullptr ;
return (static_cast<IGeoFrame3d*>(pGObj)) ; }