26040a1dd8
- aggiunte quotature (Dimensions).
57 lines
2.6 KiB
C++
57 lines
2.6 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2019-2019
|
|
//----------------------------------------------------------------------------
|
|
// File : EGkExtDimension.h Data : 27.12.19 Versione : 1.5e10
|
|
// Contenuto : Dichiarazione della interfaccia IExtDimension.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 27.12.19 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGeoObj.h"
|
|
#include "/EgtDev/Include/EGkCurve.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class __declspec( novtable) IExtDimension : public IGeoObj
|
|
{
|
|
public :
|
|
enum Type { DT_NONE = 0,
|
|
DT_LINEAR = 1,
|
|
DT_RADIAL = 2,
|
|
DT_DIAMETRAL = 3,
|
|
DT_ANGULAR = 4} ;
|
|
|
|
public :
|
|
virtual bool CopyFrom( const IGeoObj* pGObjSrc) = 0 ;
|
|
virtual bool SetLinear( const Point3d& ptP1, const Point3d& ptP2, const Point3d& ptPos,
|
|
const Vector3d& vtN, const Vector3d& vtDir, const std::string& sText) = 0 ;
|
|
virtual const Vector3d& GetNormVersor( void) const = 0 ;
|
|
virtual bool ApproxWithLines( double dLinTol, double dAngTolDeg, POLYLINELIST& lstPL) const = 0 ;
|
|
} ;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
inline IExtDimension* CreateExtDimension( void)
|
|
{ return (static_cast<IExtDimension*>( CreateGeoObj( EXT_DIMENSION))) ; }
|
|
inline IExtDimension* CloneExtDimension( const IGeoObj* pGObj)
|
|
{ if ( pGObj == nullptr || pGObj->GetType() != EXT_DIMENSION)
|
|
return nullptr ;
|
|
return (static_cast<IExtDimension*>(pGObj->Clone())) ; }
|
|
inline const IExtDimension* GetExtDimension( const IGeoObj* pGObj)
|
|
{ if ( pGObj == nullptr || pGObj->GetType() != EXT_DIMENSION)
|
|
return nullptr ;
|
|
return (static_cast<const IExtDimension*>(pGObj)) ; }
|
|
inline IExtDimension* GetExtDimension( IGeoObj* pGObj)
|
|
{ if ( pGObj == nullptr || pGObj->GetType() != EXT_DIMENSION)
|
|
return nullptr ;
|
|
return (static_cast<IExtDimension*>(pGObj)) ; }
|
|
|
|
//----------------------------------------------------------------------------
|
|
// Raccolte di puntatori a IExtDimension
|
|
typedef std::vector<IExtDimension*> IEXTDIMENSIONPVECTOR ; // vettore di puntatori a IExtDimension
|
|
typedef std::list<IExtDimension*> IEXTDIMENSIONPLIST ; // lista di puntatori a IExtDimension
|