Include :

- aggiornamento.
This commit is contained in:
Dario Sassi
2014-07-16 09:08:59 +00:00
parent be2d2c6f8b
commit 23d49a1122
7 changed files with 48 additions and 3 deletions
+29
View File
@@ -0,0 +1,29 @@
//----------------------------------------------------------------------------
// EgalTech 2014-2014
//----------------------------------------------------------------------------
// File : EGkAngle.h Data : 14.07.14 Versione : 1.5g2
// Contenuto : Dichiarazione funzioni per gestione angoli.
//
//
//
// Modifiche : 14.07.14 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include <string>
//----------------------- Macro per import/export ----------------------------
#undef EGK_EXPORT
#if defined( I_AM_EGK) // da definirsi solo nella DLL
#define EGK_EXPORT __declspec( dllexport)
#else
#define EGK_EXPORT __declspec( dllimport)
#endif
//-----------------------------------------------------------------------------
EGK_EXPORT double AngleNearAngle( double dAngDeg, double dAngRefDeg) ;
EGK_EXPORT double DiffAngle( double dAng1Deg, double dAng2Deg) ;
EGK_EXPORT double MediaAngle( double dAng1Deg, double dAng2Deg, double dCoeff) ;
+1 -1
View File
@@ -2,7 +2,7 @@
// EgalTech 2014-2014
//----------------------------------------------------------------------------
// File : EGkColor.h Data : 24.02.14 Versione : 1.5c9
// Contenuto : Implementazione della classe Color.
// Contenuto : Dichiarazione della classe Color.
//
//
//
+8
View File
@@ -110,12 +110,20 @@ class IntersCurveCurve
EGK_EXPORT bool GetCurveClassification( int nCrv, CRVCVECTOR& ccClass) ;
private :
IntersCurveCurve( void) ;
void LineLineCalculate( const ICurve& CurveA, const ICurve& CurveB, bool bAreSegments) ;
void LineArcCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void LineCrvCompoCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void ArcLineCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void ArcArcCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void ArcCrvCompoCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void CrvCompoLineCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void CrvCompoArcCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
void CrvCompoCrvCompoCalculate( const ICurve& CurveA, const ICurve& CurveB) ;
bool SwapInfoAB( ICCIVECTOR& Info, int IndCrvOrd) ;
bool CalcCurveClassification( const ICurve* pCurve, const ICCIVECTOR& Info, CRVCVECTOR& ccClass) ;
bool CalcCurveInOrOut( const ICurve* pCurveA, const ICurve* pCurveB, CRVCVECTOR& ccClass) ;
bool GetCurveOutClass( const ICurve* pCurve, int& nClass) ;
private :
bool m_bOverlaps ;
+3 -2
View File
@@ -80,12 +80,13 @@ class PolyLine
{ return GetFirstULine( nullptr, &ptIni, nullptr, &ptFin) ; }
EGK_EXPORT bool GetNextLine( Point3d& ptIni, Point3d& ptFin) const
{ return GetNextULine( nullptr, &ptIni, nullptr, &ptFin) ; }
EGK_EXPORT bool IsPlanar( Plane3d& plPlane, double dToler = EPS_SMALL) const ;
EGK_EXPORT bool IsPlanar( Plane3d& plPlane, double& dArea, double dToler = EPS_SMALL) const ;
EGK_EXPORT bool GetAreaXY( double& dArea) const ;
EGK_EXPORT bool GetMaxDistanceFromLine( double& dMaxDist, const Point3d& ptAx,
const Vector3d& vtAx, double dLen, bool bIsSegment = true) const ;
private :
bool NewellPlane( Plane3d& plPlane) const ;
bool NewellPlane( Plane3d& plPlane, double& dArea) const ;
private :
int m_nCount ;
+4
View File
@@ -22,6 +22,10 @@ class __declspec( novtable) ICurve : public IGeoObj
public :
enum Side { FROM_MINUS = -1, // da valori inferiori del parametro
FROM_PLUS = 1} ; // da valori superiori del parametro
enum PntPos { PP_NULL = 0, // punto non appartenente alla curva
PP_START = 1, // punto coincidente con l'inizio
PP_MID = 2, // punto appartenente all'interno della curva
PP_END = 3} ; // punto coincidente con la fine
enum OffSide { OFF_RIGHT = -1, // offset a destra
OFF_LEFT = 1} ; // offset a sinistra
enum OffType { OFF_FILLET = 0, // si raccordano con arco gli spigoli esterni
+2
View File
@@ -39,6 +39,8 @@ class __declspec( novtable) ICurveArc : public ICurve
virtual double GetRadius( void) const = 0 ;
virtual double GetAngCenter( void) const = 0 ;
virtual double GetDeltaN( void) const = 0 ;
virtual bool CalcPointAngle( const Point3d& ptP, double& dAngDeg) const = 0 ;
virtual bool CalcPointParamPosiz( const Point3d& ptP, double& dU, int& nPos) const = 0 ;
virtual bool InvertN( void) = 0 ;
virtual bool ChangeRadius( double dNewRadius) = 0 ;
virtual bool ChangeDeltaN( double dNewDeltaN) = 0 ;
+1
View File
@@ -25,6 +25,7 @@ class __declspec( novtable) ICurveLine : public ICurve
virtual bool SetPDL( const Point3d& ptStart, double dDirAngDeg, double dLen) = 0 ;
virtual const Point3d& GetStart( void) const = 0 ;
virtual const Point3d& GetEnd( void) const = 0 ;
virtual bool CalcPointParamPosiz( const Point3d& ptP, bool bOnXY, double& dU, int& nPos) const = 0 ;
} ;
//-----------------------------------------------------------------------------