]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
The actual version updates the status bar with the highlighted object ... Also it...
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index f6d8c4d174da9f0fedebfdf3c5806166893797f4..46e77d4888d10e560e581121e139d7f24f11dc25 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;
@@ -147,6 +140,43 @@ namespace bbtk
 
        //=========================================================================
 
+       std::string GObjectModel::getBBTKType()
+       {
+               return _bbtkType; 
+       }
+
+       //=========================================================================
+
+       void GObjectModel::setBBTKType(std::string obtype)
+       {
+               _bbtkType = obtype;
+       }
+
+       //=========================================================================
+               
+       std::string GObjectModel::getBBTKName()
+       {
+               return _bbtkName;
+       }
+
+       //=========================================================================
+
+       void GObjectModel::setBBTKName(std::string obname)
+       {
+               _bbtkName = obname;
+       }
+
+       //=========================================================================
+
+       std::string GObjectModel::getStatusText()//virtual
+       {
+               std::string virt = "";
+               return virt;
+       }
+
+       //=========================================================================
+
+
 }  // EO namespace bbtk
 
 // EOF