cc2db726db
aggiunto map da sKey a nType.
62 lines
2.5 KiB
C++
62 lines
2.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2013-2013
|
|
//----------------------------------------------------------------------------
|
|
// File : GeoPoint3d.h Data : 22.11.13 Versione : 1.3a1
|
|
// Contenuto : Dichiarazione della classe Punto Geometrico 3d.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 10.10.13 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGeoPoint3d.h"
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
class GeoPoint3d : public IGeoPoint3d
|
|
{
|
|
public :
|
|
virtual ~GeoPoint3d( void) ;
|
|
virtual GeoPoint3d* Clone( void) const ;
|
|
virtual GeoObjType GetType( void) const { return GEO_PNT3D ; }
|
|
virtual const std::string& GetKey( void) const ;
|
|
virtual bool IsValid( void) const { return true ; }
|
|
virtual bool Save( std::ostream& osOut) const ;
|
|
virtual bool Load( CScan& TheScanner) ;
|
|
virtual bool GetPoint( Point3d& ptP) const
|
|
{ ptP = m_ptP ; return true ;}
|
|
virtual bool Translate( const Vector3d& vtMove)
|
|
{ m_ptP.Translate( vtMove) ; return true ; }
|
|
virtual bool Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng)
|
|
{ return m_ptP.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 m_ptP.Scale( ptCen, dCoeffX, dCoeffY, dCoeffZ) ;}
|
|
virtual bool Mirror( const Point3d& ptOn, const Vector3d& vtNorm)
|
|
{ return m_ptP.Mirror( ptOn, vtNorm) ;}
|
|
virtual bool ToGlob( const Frame3d& frRef)
|
|
{ return m_ptP.ToGlob( frRef) ;}
|
|
virtual bool ToLoc( const Frame3d& frRef)
|
|
{ return m_ptP.ToLoc( frRef) ;}
|
|
|
|
public :
|
|
virtual bool Set( const Point3d& ptP) ;
|
|
virtual const Point3d& GetPoint( void) const
|
|
{ return m_ptP ; }
|
|
|
|
public :
|
|
GeoPoint3d( void) ;
|
|
const GeoPoint3d& operator =( const GeoPoint3d& gpSrc)
|
|
{ if ( &gpSrc != this)
|
|
m_ptP = gpSrc.m_ptP ;
|
|
return *this ; }
|
|
|
|
public :
|
|
Point3d m_ptP ;
|
|
} ;
|