403d3a658d
- aggiunte ExeGetPhotoOrigin, ExeGetPhotoCenter, ExeGetPhotoMMxPixel.
53 lines
1.9 KiB
C++
53 lines
1.9 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2015-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : PhotoObj.h Data : 05.10.15 Versione : 1.6j1
|
|
// Contenuto : Dichiarazione della classe PhotoObj.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 05.10.15 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkUserObj.h"
|
|
#include "/EgtDev/Include/EGkPoint3d.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class PhotoObj : public IUserObj
|
|
{
|
|
public : // IUserObj
|
|
virtual PhotoObj* Clone( void) const ;
|
|
virtual const std::string& GetClassName( void) const ;
|
|
virtual bool Dump( std::string& sOut, bool bMM = true, const char* szNewLine = "\n") const ;
|
|
virtual bool ToSave( void) const { return true ; }
|
|
virtual bool Save( STRVECTOR& vString) const ;
|
|
virtual bool Load( const STRVECTOR& vString) ;
|
|
virtual bool SetOwner( int nId, IGeomDB* pGDB) ;
|
|
virtual int GetOwner( void) const ;
|
|
virtual IGeomDB* GetGeomDB( void) const ;
|
|
|
|
public :
|
|
PhotoObj( void) ;
|
|
bool Set( const std::string& sName, const std::string& sPath,
|
|
const Point3d& ptOri, const Point3d& ptCen, double dDimX, double dDimY) ;
|
|
bool GetName( std::string& sName) ;
|
|
bool GetPath( std::string& sPath) ;
|
|
bool ChangePath( const std::string& sPath) ;
|
|
bool GetOrigin( Point3d& ptOri) ;
|
|
bool GetCenter( Point3d& ptCen) ;
|
|
bool GetDimensions( double& dDimX, double& dDimY) ;
|
|
|
|
private :
|
|
int m_nOwnerId ;
|
|
IGeomDB* m_pGeomDB ;
|
|
std::string m_sName ;
|
|
std::string m_sPath ;
|
|
Point3d m_ptOri ;
|
|
Point3d m_ptCen ;
|
|
double m_dDimX ;
|
|
double m_dDimY ;
|
|
} ; |