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:
+15
-1
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user