Files
Include/EGkGeoVector3d.h
T
Dario Sassi 247ada06a3 Include :
- modifiche a interfacce di oggetti Geo.
2014-03-26 18:29:20 +00:00

45 lines
1.9 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : EGkGeoVector3d.h Data : 22.11.13 Versione : 1.3a1
// Contenuto : Dichiarazione della interfaccia IGeoVector3d.
//
//
//
// Modifiche : 22.11.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGeoObj.h"
class PolyLine ;
//-----------------------------------------------------------------------------
class __declspec( novtable) IGeoVector3d : public IGeoObj
{
public :
virtual bool Copy( const IGeoObj* pGObjSrc) = 0 ;
virtual bool Set( const Vector3d& vtV) = 0 ;
virtual const Vector3d& GetVector( void) const = 0 ;
virtual bool GetDrawWithArrowHead( double dFrazLenAH, PolyLine& PL) const = 0 ;
} ;
//-----------------------------------------------------------------------------
inline IGeoVector3d* CreateGeoVector3d( void)
{ return (static_cast<IGeoVector3d*>( CreateGeoObj( GEO_VECT3D))) ; }
inline IGeoVector3d* CloneGeoVector3d( const IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_VECT3D)
return nullptr ;
return (static_cast<IGeoVector3d*>(pGObj->Clone())) ; }
inline const IGeoVector3d* GetGeoVector3d( const IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_VECT3D)
return nullptr ;
return (static_cast<const IGeoVector3d*>(pGObj)) ; }
inline IGeoVector3d* GetGeoVector3d( IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != GEO_VECT3D)
return nullptr ;
return (static_cast<IGeoVector3d*>(pGObj)) ; }