]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
First prototype works. Basic boxes construction, evenct handling and colors represent...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index 4ab7fbf4647d3f12b99a463d013e7534bd7bc6af..4752ec9595d6414bc1adc71812582e7d6e081e45 100644 (file)
@@ -69,8 +69,8 @@ namespace bbtk
 
        void GObjectModel::getFinalPoint(double& x, double& y, double& z)
        {
-               x = _xInic+BOX_SIDE;
-               y = _yInic-BOX_SIDE;
+               x = _xFin;
+               y = _yFin;
                z = _zFin;
        }
        //=========================================================================
@@ -123,9 +123,13 @@ namespace bbtk
        bool GObjectModel::isPointInside(double x,double y, double z)//virtual
        {
                if(x>=_xInic && x<=_xFin && y<=_yInic && y>=_yFin)
+               {
                        return true;
+               }
                else
+               {
                        return false;
+               }
        }
 
        //=========================================================================