EgtGraphics 2.1k6 :
- aggiunta possibilità di impostare spessore linee e grandezza punti.
This commit is contained in:
+37
-4
@@ -19,10 +19,7 @@
|
||||
#include "ObjMultiGraphics.h"
|
||||
#include "EGrUtils.h"
|
||||
#include "DllMain.h"
|
||||
#include "/EgtDev/Include/EgtILogger.h"
|
||||
#include "/EgtDev/Include/EGnStringUtils.h"
|
||||
#include "/EgtDev/Include/EGkFrame3d.h"
|
||||
#include "/EgtDev/Include/EgtPointerOwner.h"
|
||||
#include "/EgtDev/Include/EGkGdbIterator.h"
|
||||
#include "/EgtDev/Include/EGkGeoVector3d.h"
|
||||
#include "/EgtDev/Include/EGkGeoPoint3d.h"
|
||||
@@ -33,6 +30,10 @@
|
||||
#include "/EgtDev/Include/EGkVolZmap.h"
|
||||
#include "/EgtDev/Include/EGkExtText.h"
|
||||
#include "/EgtDev/Include/EGkGdbFunct.h"
|
||||
#include "/EgtDev/Include/EGnStringUtils.h"
|
||||
#include "/EgtDev/Include/EgtNumUtils.h"
|
||||
#include "/EgtDev/Include/EgtPointerOwner.h"
|
||||
#include "/EgtDev/Include/EgtILogger.h"
|
||||
|
||||
using namespace std ;
|
||||
|
||||
@@ -57,7 +58,6 @@ bool
|
||||
Scene::SetMark( Color colMark)
|
||||
{
|
||||
m_colMark = colMark ;
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,40 @@ bool
|
||||
Scene::SetSelSurf( Color colSelSurf)
|
||||
{
|
||||
m_colSelSurf = colSelSurf ;
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Scene::SetLineWidth( int nW)
|
||||
{
|
||||
nW = Clamp( nW, 1, 3) ;
|
||||
switch ( nW) {
|
||||
case 1 :
|
||||
m_dLineWidth = 1 ;
|
||||
m_dSelLineWidth = 2 ;
|
||||
m_dMarkLineWidth = 5 ;
|
||||
m_dPointSize = 3 ;
|
||||
m_dSelPointSize = 5 ;
|
||||
m_dMarkPointSize = 7 ;
|
||||
break ;
|
||||
case 2 :
|
||||
m_dLineWidth = 2 ;
|
||||
m_dSelLineWidth = 4 ;
|
||||
m_dMarkLineWidth = 7 ;
|
||||
m_dPointSize = 4 ;
|
||||
m_dSelPointSize = 7 ;
|
||||
m_dMarkPointSize = 9 ;
|
||||
break ;
|
||||
case 3 :
|
||||
m_dLineWidth = 3 ;
|
||||
m_dSelLineWidth = 6 ;
|
||||
m_dMarkLineWidth = 9 ;
|
||||
m_dPointSize = 5 ;
|
||||
m_dSelPointSize = 9 ;
|
||||
m_dMarkPointSize = 11 ;
|
||||
break ;
|
||||
}
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user