Files
EgtGeomKernel/GeoVector3d.h
T
Dario Sassi 8a416970a3 EgtGeomKernel :
- correzione a PolyLine (Splice)
- impostazione Reset grafica sulle diverse entità geometriche.
2014-02-17 09:39:49 +00:00

74 lines
3.2 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : GeoVector3d.h Data : 22.11.13 Versione : 1.3a1
// Contenuto : Dichiarazione della classe Vettore Geometrico 3d.
//
//
//
// Modifiche : 10.10.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "ObjGraphicsMgr.h"
#include "/EgtDev/Include/EGkGeoVector3d.h"
//----------------------------------------------------------------------------
class GeoVector3d : public IGeoVector3d
{
public :
virtual ~GeoVector3d( void) ;
virtual GeoVector3d* Clone( void) const ;
virtual GeoObjType GetType( void) const
{ return GEO_VECT3D ; }
virtual const std::string& GetKey( void) const ;
virtual bool IsValid( void) const
{ return true ; }
virtual bool Save( std::ostream& osOut) const ;
virtual bool Load( Scanner& TheScanner) ;
virtual bool GetLocalBBox( BBox3d& b3Loc) const ;
virtual bool GetBBox( const Frame3d& frRef, BBox3d& b3Ref) const ;
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)
{ m_OGrMgr.Reset() ; 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 Frame3d& frRef, double dCoeffX, double dCoeffY, double dCoeffZ)
{ m_OGrMgr.Reset() ; return m_vtV.Scale( frRef, dCoeffX, dCoeffY, dCoeffZ) ;}
virtual bool Mirror( const Point3d& ptOn, const Vector3d& vtNorm)
{ m_OGrMgr.Reset() ; return m_vtV.Mirror( vtNorm) ;}
virtual bool ToGlob( const Frame3d& frRef)
{ m_OGrMgr.Reset() ; return m_vtV.ToGlob( frRef) ;}
virtual bool ToLoc( const Frame3d& frRef)
{ m_OGrMgr.Reset() ; return m_vtV.ToLoc( frRef) ;}
virtual void SetObjGraphics( IObjGraphics* pOGr)
{ m_OGrMgr.SetObjGraphics( pOGr) ; }
virtual IObjGraphics* GetObjGraphics( void)
{ return m_OGrMgr.GetObjGraphics() ; }
virtual const IObjGraphics* GetObjGraphics( void) const
{ return m_OGrMgr.GetObjGraphics() ; }
public :
virtual bool Set( const Vector3d& vtV) ;
virtual const Vector3d& GetVector( void) const
{ return m_vtV ; }
public :
GeoVector3d( void) ;
inline const GeoVector3d& operator =( const GeoVector3d& gvSrc)
{ if ( &gvSrc != this)
Set( gvSrc.m_vtV) ;
return *this ; }
public :
ObjGraphicsMgr m_OGrMgr ; // gestore grafica dell'oggetto
Vector3d m_vtV ; // oggetto
} ;