d7a307339e
- aggiunte ad interfacce.
57 lines
2.3 KiB
C++
57 lines
2.3 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2013-2013
|
|
//----------------------------------------------------------------------------
|
|
// File : EGkGdbIterator.h Data : 04.12.13 Versione : 1.4a3
|
|
// Contenuto : Dichiarazione della interfaccia IGdbIterator.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 04.12.13 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EGkGeomDB.h"
|
|
|
|
//----------------------- Macro per import/export ----------------------------
|
|
#undef EGK_EXPORT
|
|
#if defined( I_AM_EGK) // da definirsi solo nella DLL
|
|
#define EGK_EXPORT __declspec( dllexport)
|
|
#else
|
|
#define EGK_EXPORT __declspec( dllimport)
|
|
#endif
|
|
|
|
//-----------------------------------------------------------------------------
|
|
class __declspec( novtable) IGdbIterator
|
|
{
|
|
public :
|
|
virtual ~IGdbIterator( void) {}
|
|
virtual bool SetGDB( IGeomDB* pGDB) = 0 ;
|
|
virtual bool GoTo( int nId) = 0 ;
|
|
virtual bool GoToFirstInGroup( int nIdGroup) = 0 ;
|
|
virtual bool GoToNext( void) = 0 ;
|
|
virtual bool GoToLastInGroup( int nIdGroup) = 0 ;
|
|
virtual bool GoToPrev( void) = 0 ;
|
|
|
|
virtual GdbType GetGdbType( void) const = 0 ;
|
|
virtual IGeoObj* GetGeoObj( void) = 0 ;
|
|
virtual IGeoFrame3d* GetGeoFrame( void) = 0 ;
|
|
virtual bool GetGroupFrame( Frame3d& frGlob) const = 0 ;
|
|
virtual bool GetGroupGlobFrame( Frame3d& frGlob) const = 0 ;
|
|
virtual int GetId( void) const = 0 ;
|
|
virtual int GetParentId( void) const = 0 ;
|
|
virtual bool GetGlobFrame( Frame3d& frGlob) const = 0 ;
|
|
virtual bool SetColor( Color cCol) = 0 ;
|
|
virtual bool GetColor( Color& cCol) const = 0 ;
|
|
virtual bool SetName( const std::string& sName) = 0 ;
|
|
virtual bool GetName( std::string& sName) const = 0 ;
|
|
virtual bool RemoveName( void) = 0 ;
|
|
virtual bool SetInfo( const std::string& sKey, const std::string& sInfo) = 0 ;
|
|
virtual bool GetInfo( const std::string& sKey, std::string& sInfo) const = 0 ;
|
|
virtual bool RemoveInfo( const std::string& sKey) = 0 ;
|
|
} ;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
EGK_EXPORT IGdbIterator* CreateGdbIterator( void) ; |