From: Eduardo DAVILA Date: Wed, 19 Jan 2022 08:02:15 +0000 (+0100) Subject: Clean Code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=438304b9ee4f7e542c137c41ad899f358230a27d;p=bbtkGEditor.git Clean Code --- diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.cxx index 7365e98..4beaf1c 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/InterpreterBBS.cxx @@ -84,7 +84,7 @@ namespace bbtk _factory = factory; _sceneManager = sceneManager; - _xGeneral = -100; + _xGeneral = -50; _yGeneral = 100; _zGeneral = GPOSITION_Z; // ????? @@ -115,10 +115,9 @@ namespace bbtk _countBoxes++; //EED 2022-01-16 // double px = _xGeneral + (_countBoxes%2)*100; -// _yGeneral = _yGeneral - 30; - double px = _xGeneral + (_countBoxes%2)*70; - _yGeneral = _yGeneral - 9; - +// _yGeneral = _yGeneral - 30; + double px = _xGeneral + (_countBoxes%2)*BOX_WIDTH*3.0; + _yGeneral = _yGeneral - BOX_HEIGHT*3.0; double py = _yGeneral; _sceneManager->configGBlackBox(idBox, px,py,_zGeneral,boxName, false , px+BOX_WIDTH, py-BOX_HEIGHT , _zGeneral ); }