Files
EgtGeomKernel/GdbIterator.h
T
Dario Sassi 0b8a267b7b EgtGeomKernel 1.6a4 :
- DistPointLine correnta per versore non normalizzato
- aggiunta GetGeoType a GeomDB e a GdbIterator
- in lettura NGE binari aggiunta protezione da contemporanea scrittura
- in PolyLine aggiunta funzione per inserimento punti onde raggiungere massima distanza
- aggiunto oggetto VolZmap per virtual milling (per ora vuoto)
- nuova versione file NGE 1009.
2015-01-26 07:49:18 +00:00

107 lines
5.0 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2013-2013
//----------------------------------------------------------------------------
// File : GdbIterator.h Data : 04.12.13 Versione : 1.4a3
// Contenuto : Dichiarazione della classe GdbIterator.
//
//
//
// Modifiche : 04.12.13 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "/EgtDev/Include/EGkGdbIterator.h"
#include "GeomDB.h"
//-----------------------------------------------------------------------------
class GdbIterator : public IGdbIterator
{
public :
virtual ~GdbIterator( void) ;
virtual bool SetGDB( IGeomDB* pGDB) ;
virtual GeomDB* GetGDB( void) const
{ return m_pGDB ; }
virtual bool GoTo( int nId) ;
virtual bool GoToFirstInGroup( int nIdGroup) ;
virtual bool GoToFirstInGroup( const IGdbIterator& iIter) ;
virtual bool GoToNext( void) ;
virtual bool GoToLastInGroup( int nIdGroup) ;
virtual bool GoToLastInGroup( const IGdbIterator& iIter) ;
virtual bool GoToPrev( void) ;
virtual bool EraseAndGoToNext( void) ;
virtual bool EraseAndGoToPrev( void) ;
virtual int GetGdbType( void) const ;
virtual int GetGeoType( void) const ;
virtual IGeoObj* GetGeoObj( void) ;
virtual const IGeoObj* GetGeoObj( void) const ;
virtual Frame3d* GetGroupFrame( void) ;
virtual const Frame3d* GetGroupFrame( void) const ;
virtual bool GetGroupFrame( Frame3d& frGlob) const ;
virtual bool GetGroupGlobFrame( Frame3d& frGlob) const ;
virtual int GetGroupObjs( void) const ;
virtual int GetId( void) const ;
virtual int GetParentId( void) const ;
virtual bool GetGlobFrame( Frame3d& frGlob) const ;
virtual bool GetLocalBBox( BBox3d& b3Loc, int nFlag = BBF_STANDARD) const ;
virtual bool GetGlobalBBox( BBox3d& b3Glob, int nFlag = BBF_STANDARD) const ;
virtual bool GetRefBBox( const Frame3d& frRef, BBox3d& b3Ref, int nFlag = BBF_STANDARD) const ;
virtual bool SetLevel( int nLevel) ;
virtual bool RevertLevel( void) ;
virtual bool GetLevel( int& nLevel) const ;
virtual bool GetCalcLevel( int& nLevel) const ;
virtual bool SetMode( int nMode) ;
virtual bool RevertMode( void) ;
virtual bool GetMode( int& nMode) const ;
virtual bool GetCalcMode( int& nMode) const ;
virtual bool SetStatus( int nStat) ;
virtual bool RevertStatus( void) ;
virtual bool GetStatus( int& nStat) const ;
virtual bool GetCalcStatus( int& nStat) const ;
virtual bool SetMark( void) ;
virtual bool ResetMark( void) ;
virtual bool GetMark( int& nMark) const ;
virtual bool GetCalcMark( int& nMark) const ;
virtual bool SetMaterial( int nMat) ;
virtual bool SetMaterial( int nMat, const std::string& sMatName) ;
virtual bool SetMaterial( Color cCol) ;
virtual bool GetMaterial( int& nMat) const ;
virtual bool GetMaterial( Material& mMat) const ;
virtual bool GetMaterial( Color& cCol) const ;
virtual bool GetCalcMaterial( int& nMat) const ;
virtual bool GetCalcMaterial( Material& mMat) const ;
virtual bool GetCalcMaterial( Color& cCol) const ;
virtual bool SetName( const std::string& sName) ;
virtual bool GetName( std::string& sName) const ;
virtual bool ExistsName( void) const ;
virtual bool RemoveName( void) ;
virtual bool SetInfo( const std::string& sKey, const std::string& sInfo) ;
virtual bool SetInfo( const std::string& sKey, bool bInfo) ;
virtual bool SetInfo( const std::string& sKey, int nInfo) ;
virtual bool SetInfo( const std::string& sKey, double dInfo) ;
virtual bool SetInfo( const std::string& sKey, const Point3d& ptInfo) ;
virtual bool SetInfo( const std::string& sKey, const Vector3d& vtInfo) ;
virtual bool SetInfo( const std::string& sKey, const Frame3d& frInfo) ;
virtual bool GetInfo( const std::string& sKey, std::string& sInfo) const ;
virtual bool GetInfo( const std::string& sKey, bool& bInfo) const ;
virtual bool GetInfo( const std::string& sKey, int& nInfo) const ;
virtual bool GetInfo( const std::string& sKey, double& dInfo) const ;
virtual bool GetInfo( const std::string& sKey, Point3d& ptInfo) const ;
virtual bool GetInfo( const std::string& sKey, Vector3d& vtInfo) const ;
virtual bool GetInfo( const std::string& sKey, Frame3d& frInfo) const ;
virtual bool ExistsInfo( const std::string& sKey) const ;
virtual bool RemoveInfo( const std::string& sKey) ;
public :
GdbIterator( IGeomDB* pGDB = nullptr) ;
void ResetCurrObjIfSame( GdbObj* pObj)
{ if ( m_pCurrObj == pObj)
m_pCurrObj = nullptr ; }
private :
GeomDB* m_pGDB ;
GdbObj* m_pCurrObj ;
} ;