Include :

- aggiornamento interfacce.
This commit is contained in:
Dario Sassi
2014-06-06 08:54:10 +00:00
parent 3581e55404
commit 04882c2326
2 changed files with 24 additions and 1 deletions
+23 -1
View File
@@ -23,7 +23,11 @@ class __declspec( novtable) IExtText : public IGeoObj
virtual bool Copy( const IGeoObj* pGObjSrc) = 0 ;
virtual bool Set( const std::string& sText, const Point3d& ptP, double dAngDeg, double dH) = 0 ;
virtual bool Set( const std::string& sText, const Point3d& ptP, double dAngDeg,
const std::string& sFont, int nW, bool bItl, double dH, double dRat, double dAddAdv) = 0 ;
const std::string& sFont, int nW, bool bItl, double dH, double dRat, double dAddAdv,
int nInsPos = 7) = 0 ;
virtual bool Set( const std::string& sText, const Point3d& ptP, const Vector3d& vtN, const Vector3d& vtD,
const std::string& sFont, int nW, bool bItl, double dH, double dRat, double dAddAdv,
int nInsPos = 7) = 0 ;
virtual const Point3d& GetPoint( void) const = 0 ;
virtual const Vector3d& GetNormVersor( void) const = 0 ;
virtual const Vector3d& GetDirVersor( void) const = 0 ;
@@ -34,8 +38,12 @@ class __declspec( novtable) IExtText : public IGeoObj
virtual double GetHeight( void) const = 0 ;
virtual double GetRatio( void) const = 0 ;
virtual double GetAddAdvance( void) const = 0 ;
virtual int GetInsPosition( void) const = 0 ;
virtual bool GetHeightVersor( Vector3d& vtH) const = 0 ;
virtual bool GetStartPoint( Point3d& ptStart) const = 0 ;
virtual bool GetOverStartPoint( Point3d& ptStart) const = 0 ;
virtual bool GetEndPoint( Point3d& ptEnd) const = 0 ;
virtual bool GetOverEndPoint( Point3d& ptEnd) const = 0 ;
virtual bool GetMidPoint( Point3d& ptMid) const = 0 ;
virtual bool GetCenterPoint( Point3d& ptCen) const = 0 ;
virtual bool GetOutline( ICURVEPLIST& lstPC) const = 0 ;
@@ -59,3 +67,17 @@ inline IExtText* GetExtText( IGeoObj* pGObj)
{ if ( pGObj == nullptr || pGObj->GetType() != EXT_TEXT)
return nullptr ;
return (static_cast<IExtText*>(pGObj)) ; }
//------------------------ Costanti per posizione di inserimento -------------
// indica la posizione del punto di inserimento rispetto al testo
enum ExtTextInsPosition { ETXT_IPTL = 1, // top left
ETXT_IPTC = 2, // top center
ETXT_IPTR = 3, // top right
ETXT_IPML = 4, // middle left
ETXT_IPMC = 5, // middle center
ETXT_IPMR = 6, // middle right
ETXT_IPBL = 7, // bottom left
ETXT_IPBC = 8, // bottom center
ETXT_IPBR = 9} ; // bottom right
// stringa per interruzione di riga
const std::string ETXT_LINEBREAK = "<br/>" ;
+1
View File
@@ -28,4 +28,5 @@
EGN_EXPORT bool ExistsFile( const std::string& sFile) ;
EGN_EXPORT bool EraseFile( const std::string& sFile) ;
EGN_EXPORT bool FileExtensionMatches( const std::string& sFile, const std::string& sExt) ;
EGN_EXPORT bool FindFirstFileEgt( const std::string& sFileSpec, std::string& sFileName) ;
EGN_EXPORT bool EmptyDirectory( const std::string& sDir) ;