Files
EgtGeomKernel/GeoVector3d.h
T
2013-11-21 13:30:00 +00:00

62 lines
2.5 KiB
C++

//----------------------------------------------------------------------------
// EgalS
//----------------------------------------------------------------------------
// File : GeoVector3d.h Data : 10.10.13 Versione : 1.2a3
// Contenuto : Dichiarazione della classe Segmento di Linea.
//
//
//
// Modifiche : 10.10.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGeoObj.h"
//----------------------------------------------------------------------------
class GeoVector3d : public IGeoObj
{
public :
GeoVector3d( void) ;
bool Set( const Vector3d& vtV) ;
inline const GeoVector3d& operator =( const GeoVector3d& gvSrc)
{ if ( &gvSrc != this)
m_vtV = gvSrc.m_vtV ;
return *this ; }
public :
virtual ~GeoVector3d( void) ;
virtual GeoVector3d* Clone( void) const ;
virtual GeoObjType GetType( void) const { return GEO_VECT3D ; }
virtual std::string GetKey( void) const { return KEY_GEO_VECT3D ; }
virtual bool IsValid( void) const { return true ; }
virtual bool Save( std::ostream& osOut) const ;
virtual bool Load( CScan& TheScanner) ;
virtual bool GetVector( Vector3d& vtV) const
{ vtV = m_vtV ; return true ;}
virtual bool Translate( const Vector3d& vtMove)
{ return true ; }
virtual bool Rotate( const Point3d& ptAx, const Vector3d& vtAx, double dCosAng, double dSinAng)
{ return m_vtV.Rotate( 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_vtV.Scale( dCoeffX, dCoeffY, dCoeffZ) ;}
virtual bool Mirror( const Point3d& ptOn, const Vector3d& vtNorm)
{ return m_vtV.Mirror( vtNorm) ;}
virtual bool ToGlob( const Frame3d& frRef)
{ return m_vtV.ToGlob( frRef) ;}
virtual bool ToLoc( const Frame3d& frRef)
{ return m_vtV.ToLoc( frRef) ;}
public :
inline const Vector3d* GetVector( void) const
{ return &m_vtV ; }
public :
Vector3d m_vtV ;
} ;