e2b0a333da
- la versione x64 compilata con clang-cl - migliorie e correzioni suggerite dal nuovo compilatore.
55 lines
2.1 KiB
C++
55 lines
2.1 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
|
|
PhotoObj* Clone( void) const override ;
|
|
const std::string& GetClassName( void) const override ;
|
|
bool Dump( std::string& sOut, bool bMM = true, const char* szNewLine = "\n") const override ;
|
|
bool ToSave( void) const override { return true ; }
|
|
bool Save( int nBaseId, STRVECTOR& vString) const override ;
|
|
bool Load( const STRVECTOR& vString, int nBaseGdbId) override ;
|
|
bool SetOwner( int nId, IGeomDB* pGDB) override ;
|
|
int GetOwner( void) const override ;
|
|
IGeomDB* GetGeomDB( void) const override ;
|
|
bool GetDimensions( double& dDimX, double& dDimY) const override ;
|
|
|
|
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) const ;
|
|
bool GetPath( std::string& sPath) const ;
|
|
bool ChangePath( const std::string& sPath) ;
|
|
bool GetOrigin( Point3d& ptOri) const ;
|
|
bool ChangeOrigin( const Point3d& ptOri) ;
|
|
bool GetCenter( Point3d& ptCen) const ;
|
|
bool ChangeCenter( const Point3d& ptCen) ;
|
|
|
|
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 ;
|
|
} ; |