EgtGraphics :

- modifica GetgridParam.
This commit is contained in:
Riccardo Elitropi
2022-10-05 12:11:31 +02:00
parent f22863bff6
commit 9989ea95d7
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ class Scene : public IEGrScene
bool SetGridShow( bool bShowGrid, bool bShowFrame) override ;
bool SetGridGeo( double dSnapStep, int nMinLineSstep, int nMajLineSstep, int nExtSstep) override ;
bool SetGridColor( Color colMinLine, Color colMajLine) override ;
void GetGridParam( double* pdSnapStep, int* pnExtStep) const override ;
void GetGridParam( double& dSnapStep, int& nExtStep) const override ;
// Glob Frame
bool SetGlobFrameShow( bool bShow) override ;
// Direct
+3 -5
View File
@@ -200,10 +200,8 @@ Scene::DrawGrid( void)
//----------------------------------------------------------------------------
void
Scene::GetGridParam(double* pdSnapStep, int* pnExtStep) const
Scene::GetGridParam(double& dSnapStep, int& nExtStep) const
{
if ( pdSnapStep != nullptr)
*pdSnapStep = m_dSnapStep ;
if ( pnExtStep != nullptr)
*pnExtStep = m_nExtSstep ;
dSnapStep = m_dSnapStep ;
nExtStep = m_nExtSstep ;
}