Files
DarioS c9b38409ca EgtExchange 2.4k2 :
- modifiche in BeamMgr per gestire visualizzazione nomi facce e freccia di carico
- in import BTLX migliorata gestione Shape e visualizzazione Shape a posto di Outline.
2022-11-08 16:40:52 +01:00

61 lines
2.7 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2020-2021
//----------------------------------------------------------------------------
// File : BeamMgr.h Data : 01.06.21 Versione : 2.2f1
// Contenuto : Dichiarazione della classe BeamMgr.
//
//
//
// Modifiche : 30.08.20 DS Creazione modulo.
// 01.06.21 DS Aggiunti parametri vsUAtt per Process.
//
//----------------------------------------------------------------------------
#pragma once
#include "BtlGeom.h"
#include "/EgtDev/Include/EExBeamMgr.h"
//----------------------------------------------------------------------------
class BeamMgr : public IBeamMgr
{
public :
bool Init( IGeomDB* pGDB, int nFlag = 0) override ;
bool SetFlag( int nFlag) override ;
int CreatePart( void) override ;
bool SetPart( int nPartId) override ;
bool ErasePart( void) override ;
bool UpdatePart( void) override ;
bool SetPartProdNbr( int nProdNbr) override ;
bool SetPartName( const std::string& sName) override ;
bool SetPartCount( int nCount) override ;
bool SetPartBox( double dLength, double dHeight, double dWidth, bool bUpdate = true) override ;
bool GetSideData( int nSide, Frame3d& frRef, double& dLength, double& dWidth, double& dHeight) override ;
bool ShowFacesName( bool bShow) override ;
bool ShowLoadingSide( bool bShow, bool bFromLeft) override ;
int AddProcess( int nGroup, int nProc, int nSide, const std::string& sDes, int nProcId,
const Frame3d& frRef, const DBLVECTOR& vdPar, const std::string& sPar, const STRVECTOR& vsUAtt,
int nCrvId, int nCrv2Id, bool bUpdate = true) override ;
int ModifyProcess( int nGeomId, int nGroup, int nProc, int nSide, const std::string& sDes, int nProcId,
const Frame3d& frRef, const DBLVECTOR& vdPar, const std::string& sPar, const STRVECTOR& vsUAtt,
int nCrvId, int nCrv2Id, bool bUpdate = true) override ;
bool EraseProcess( int nGeomId, bool bUpdate = true) override ;
bool EnableProcess( int nGeomId, bool bEnable, bool bUpdate = true) override ;
bool CalcSolid( int nPartId, bool bRecalc = false) override ;
int GetSolid( int nPartId) const override ;
bool ShowSolid( int nPartId, bool bShow) override ;
bool GetBuildingIsOn( void) const override ;
bool ShowBuilding( bool bShow) override ;
public :
BeamMgr( void) ;
private :
bool UpdateFacesName( void) ;
bool UpdateLoadingSide( void) ;
private :
IGeomDB* m_pGDB ;
BtlGeom m_BtlGeom ; // gestore geometria pezzi Btl
} ;