EgtGraphics 1.5c5 :

- nel disegno si tiene conto dello stato dell'oggetto (ON, SEL, OFF)
- gli oggetti selezionati vengono evidenziati.
This commit is contained in:
Dario Sassi
2014-03-14 18:40:18 +00:00
parent 46df22d5ed
commit ec813123d0
9 changed files with 73 additions and 27 deletions
+15 -1
View File
@@ -17,6 +17,7 @@
#include "OpenGL.h"
#include "/EgtDev/Include/EGkColor.h"
#include "/EgtDev/Include/EGkPolyLine.h"
#include "/EgtDev/Include/EGkGdbConst.h"
//----------------------------------------------------------------------------
ObjOldGraphics::~ObjOldGraphics( void)
@@ -82,12 +83,19 @@ ObjOldGraphics::AddPolyLine( const PolyLine& PL)
//----------------------------------------------------------------------------
bool
ObjOldGraphics::Draw( void)
ObjOldGraphics::Draw( int nStat)
{
// se vuoto non faccio alcunché
if ( m_ogaList.size() == 0)
return true ;
if ( nStat == GDB_ST_OFF)
return true ;
if ( nStat == GDB_ST_SEL) {
glPointSize( 5) ;
glLineWidth( 3) ;
}
// ciclo di disegno
OGALIST::iterator iIter ;
for ( iIter = m_ogaList.begin() ; iIter != m_ogaList.end() ; ++ iIter) {
@@ -107,5 +115,11 @@ ObjOldGraphics::Draw( void)
}
}
// se necessario, ripristino la normale visualizzazione
if ( nStat == GDB_ST_SEL) {
glPointSize( 3) ;
glLineWidth( 1) ;
}
return true ;
}