64 lines
2.6 KiB
C++
64 lines
2.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2013-2013
|
|
//----------------------------------------------------------------------------
|
|
// File : GeoFrame3d.h Data : 02.12.13 Versione : 1.4a3
|
|
// Contenuto : Dichiarazione della classe Riferimento Geometrico 3d.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 02.12.13 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGeoFrame3d.h"
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
class GeoFrame3d : public IGeoFrame3d
|
|
{
|
|
public :
|
|
virtual ~GeoFrame3d( void) ;
|
|
virtual GeoFrame3d* Clone( void) const ;
|
|
virtual GeoObjType GetType( void) const { return GEO_FRAME3D ; }
|
|
virtual const std::string& GetKey( void) const ;
|
|
virtual bool IsValid( void) const { return ( m_frF.GetType() != Frame3d::ERR) ; }
|
|
virtual bool Save( std::ostream& osOut) const ;
|
|
virtual bool Load( Scanner& TheScanner) ;
|
|
virtual bool GetFrame( Frame3d& frF) const
|
|
{ frF = m_frF ; return true ;}
|
|
virtual bool Translate( const Vector3d& vtMove)
|
|
{ m_frF.Translate( vtMove) ; return true ; }
|
|
virtual bool Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng)
|
|
{ return m_frF.Rotate( ptAx, vtAx, dCosAng, dSinAng) ; }
|
|
virtual bool Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dAngRad)
|
|
{ return Rotate( ptAx, vtAx, cos( dAngRad), sin( dAngRad)) ; }
|
|
virtual bool Scale( const Point3d& ptCen, double dCoeffX, double dCoeffY, double dCoeffZ)
|
|
{ return false ; }
|
|
virtual bool Mirror( const Point3d& ptOn, const Vector3d& vtNorm)
|
|
{ return false ; }
|
|
virtual bool ToGlob( const Frame3d& frRef)
|
|
{ return m_frF.ToGlob( frRef) ;}
|
|
virtual bool ToLoc( const Frame3d& frRef)
|
|
{ return m_frF.ToLoc( frRef) ;}
|
|
|
|
public :
|
|
virtual bool Set( const Point3d& ptOrig, const Vector3d& vtDirX,
|
|
const Vector3d& vtDirY, const Vector3d& vtDirZ) ;
|
|
virtual bool Set( const Frame3d& frF) ;
|
|
virtual const Frame3d& GetFrame( void) const
|
|
{ return m_frF ; }
|
|
|
|
public :
|
|
GeoFrame3d( void) ;
|
|
inline const GeoFrame3d& operator =( const GeoFrame3d& gvSrc)
|
|
{ if ( &gvSrc != this)
|
|
m_frF = gvSrc.m_frF ;
|
|
return *this ; }
|
|
|
|
public :
|
|
Frame3d m_frF ;
|
|
} ;
|