39 lines
1.5 KiB
C++
39 lines
1.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : EgkSurf.h Data : 07.04.14 Versione : 1.5d2
|
|
// Contenuto : Dichiarazione della interfaccia ISurf.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 26.03.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGeoObj.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class __declspec( novtable) ISurf : public IGeoObj
|
|
{
|
|
public :
|
|
virtual bool IsSimple( void) const = 0 ;
|
|
virtual bool IsClosed( void) const = 0 ;
|
|
virtual bool GetArea( double& dArea) const = 0 ;
|
|
virtual bool GetVolume( double& dVolume) const = 0 ;
|
|
virtual bool GetCentroid( Point3d& ptCen) const = 0 ;
|
|
virtual bool Invert( void) = 0 ;
|
|
} ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
inline const ISurf* GetSurf( const IGeoObj* pGObj)
|
|
{ if ( pGObj == nullptr || ( pGObj->GetType() & GEO_SURF) == 0)
|
|
return nullptr ;
|
|
return (static_cast<const ISurf*>(pGObj)) ; }
|
|
inline ISurf* GetSurf( IGeoObj* pGObj)
|
|
{ if ( pGObj == nullptr || ( pGObj->GetType() & GEO_SURF) == 0)
|
|
return nullptr ;
|
|
return (static_cast<ISurf*>(pGObj)) ; }
|