diff --git a/EGrScene.h b/EGrScene.h index a5c649c..42b0edb 100644 --- a/EGrScene.h +++ b/EGrScene.h @@ -75,6 +75,8 @@ class IEGrScene virtual bool ZoomChange( double dCoeff) = 0 ; virtual bool ZoomOnPoint( const Point3d& ptWin, double dCoeff) = 0 ; virtual bool ZoomWin( const Point3d& ptWin1, const Point3d& ptWin2) = 0 ; + virtual bool SetCameraType( bool bOrthoOrPersp) = 0 ; + virtual bool SetZoomType( int nZoomMode) = 0 ; // ShowMode virtual bool SetShowMode( int nShowMode) = 0 ; virtual int GetShowMode( void) const = 0 ; @@ -171,6 +173,9 @@ enum CameraDir { CT_NONE = 0, CT_ISO_NE = 9, CT_ISO_NW = 10, CT_CPLANE = 11} ; +//------------------------ Costanti per tipologia di zoom nel caso prospettico --------------------- +enum PerspZoom { ZT_STD = 0, + ZT_DOLLY = 1} ; //------------------------ Costanti per tipo di visualizzazione -------------- enum ShowMode { SM_WIREFRAME = 0, SM_HIDDENLINE = 1, diff --git a/EInAPI.h b/EInAPI.h index a45d76d..d8aeba1 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -1070,6 +1070,8 @@ EIN_EXPORT BOOL __stdcall EgtGetTextureDimensions( const wchar_t* wsName, double EIN_EXPORT BOOL __stdcall EgtChangeTextureDimensions( const wchar_t* wsName, double dDimX, double dDimY) ; EIN_EXPORT BOOL __stdcall EgtGetImage( int nShowMode, const int TopCol[4], const int BottomCol[4], int nWidth, int nHeight, const wchar_t* wsName) ; +EIN_EXPORT BOOL __stdcall EgtSetCameraType( BOOL bOrthoOrPersp, BOOL bRedraw) ; +EIN_EXPORT BOOL __stdcall EgtSetZoomType( int nZoomType, BOOL bRedraw) ; // Image EIN_EXPORT BOOL __stdcall EgtGetImagePixels( const wchar_t* wsFile, int* pnPixelX, int* pnPixelY) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index d1b8ca6..0498744 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -1380,6 +1380,8 @@ EXE_EXPORT bool ExeGetTextureDimensions( const std::string& sName, double& dDimX EXE_EXPORT bool ExeChangeTextureDimensions( const std::string& sName, double dDimX, double dDimY) ; EXE_EXPORT bool ExeGetImage( int nShowMode, Color colBackTop, Color colBackBottom, int nWidth, int nHeight, const std::string& sFile) ; +EXE_EXPORT bool ExeSetCameraType( bool bOrthoOrPersp, bool bRedraw) ; +EXE_EXPORT bool ExeSetZoomType( int nMode, bool bRedraw) ; // Image EXE_EXPORT bool ExeGetImagePixels( const std::string& sFile, int& nPixelX, int& nPixelY) ;