//---------------------------------------------------------------------------- // EgalTech 2015-2015 //---------------------------------------------------------------------------- // File : Table.h Data : 25.05.15 Versione : 1.6e7 // Contenuto : Dichiarazione della classe Table. // // // // Modifiche : 25.05.15 DS Creazione modulo. // // //---------------------------------------------------------------------------- #pragma once #include "Machine.h" #include "/EgtDev/Include/EGkUserObj.h" #include "/EgtDev/Include/EGkPoint3d.h" //---------------------------------------------------------------------------- class Table : public IUserObj { public : // IUserObj Table* 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 SetOwner( int nId, IGeomDB* pGDB) override ; int GetOwner( void) const override ; IGeomDB* GetGeomDB( void) const override ; public : Table( void) ; bool Set( const std::string& sName, int nType, const Point3d& ptRef1, const BBox3d& b3Area1) ; const std::string& GetName( void) { return m_sName ; } int GetType( void) { return m_nType ; } const Point3d& GetRef1( void) { return m_ptRef1 ; } const BBox3d& GetArea1( void) { return m_b3Area1 ; } private : int m_nOwnerId ; IGeomDB* m_pGeomDB ; std::string m_sName ; int m_nType ; Point3d m_ptRef1 ; BBox3d m_b3Area1 ; } ;