]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
Changes to manage the events capturing in the vtkWorld. Some problems with that ....
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index d871e06c0c2250eed76e9003952a0cc007a9ca9a..47008daac3513b2f9036f02ad3304fb1ae25cbe3 100644 (file)
@@ -50,6 +50,7 @@ namespace bbtk
                _xFin = 0;
                _yFin = 0;
                _zFin = 900;
+               _state = NOTHING_HAPPENS;
        }
 
        //=========================================================================
@@ -69,7 +70,7 @@ namespace bbtk
        void GObjectModel::getFinalPoint(double& x, double& y, double& z)
        {
                x = _xInic+BOX_SIDE;
-               y = _yInic+BOX_SIDE;
+               y = _yInic-BOX_SIDE;
                z = _zFin;
        }
        //=========================================================================
@@ -91,7 +92,29 @@ namespace bbtk
        }
        //=========================================================================
 
+       void GObjectModel::setState(int state)
+       {
+               _state = state;
+       }
+
+       //=========================================================================
+
+       int GObjectModel::getState()
+       {
+               return _state;
+       }
 
+       //=========================================================================
+
+       bool GObjectModel::isPointInside(double x,double y, double z)//virtual
+       {
+               if(x>=_xInic && x<=_xFin && y<=_yInic && y>=_yFin)
+                       return true;
+               else
+                       return false;
+       }
+
+       //=========================================================================
 
 }  // EO namespace bbtk