]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
Setting values in a blackbox and almost setting values in the scene properties
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index d2212d4a860497a721de25b445d3426a54c6e297..e4710a2e30ad3efc0e97aa424172c8916c873b19 100644 (file)
@@ -50,7 +50,6 @@ namespace bbtk
                _xFin = 0;
                _yFin = 0;
                _zFin = 900;
-               _state = NOTHING_HAPPENS;
        }
 
        //=========================================================================
@@ -75,6 +74,14 @@ namespace bbtk
        }
        //=========================================================================
 
+       void GObjectModel::getCenter(double& x, double& y, double& z)
+       {
+               x = (_xInic+_xFin)/2;
+               y = (_yInic+_yFin)/2;
+               z = (_zInic+_zFin)/2;
+       }
+       //=========================================================================
+
        void GObjectModel::setInicPoint(double& x, double& y, double& z)
        {
                _xInic = x;
@@ -92,20 +99,6 @@ namespace bbtk
        }
        //=========================================================================
 
-       void GObjectModel::setState(int state)
-       {
-               _state = state;
-       }
-
-       //=========================================================================
-
-       int GObjectModel::getState()
-       {
-               return _state;
-       }
-
-       //=========================================================================
-
        void GObjectModel::setGObjectType(int gObjectType)
        {
                _gObjectType = gObjectType;
@@ -175,6 +168,27 @@ namespace bbtk
 
        //=========================================================================
 
+       std::string GObjectModel::getStatusText()//virtual
+       {
+               std::string virt = "";
+               return virt;
+       }
+
+       //=========================================================================
+
+       int GObjectModel::getObjectId()
+       {
+               return _objectId;
+       }
+
+       //=========================================================================
+       
+       void GObjectModel::setObjectId(int id)
+       {
+               _objectId=id;
+       }
+
+
 }  // EO namespace bbtk
 
 // EOF