]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsKernelEditorGraphic/GObjectModel.cxx
Properties panel and black box text info
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsKernelEditorGraphic / GObjectModel.cxx
index 47008daac3513b2f9036f02ad3304fb1ae25cbe3..d2212d4a860497a721de25b445d3426a54c6e297 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;
        }
        //=========================================================================
@@ -106,12 +106,71 @@ namespace bbtk
 
        //=========================================================================
 
+       void GObjectModel::setGObjectType(int gObjectType)
+       {
+               _gObjectType = gObjectType;
+       }
+
+       //=========================================================================
+
+       int GObjectModel::getGObjectType()
+       {
+               return _gObjectType;
+       }
+
+       //=========================================================================
+
        bool GObjectModel::isPointInside(double x,double y, double z)//virtual
        {
                if(x>=_xInic && x<=_xFin && y<=_yInic && y>=_yFin)
+               {
                        return true;
+               }
                else
+               {
                        return false;
+               }
+       }
+
+       //=========================================================================
+
+       void GObjectModel::updateBlackBox(BlackBoxDescriptor::Pointer descriptor)//virtual
+       {
+       }
+
+       //=========================================================================
+
+       void GObjectModel::move(double xx,double yy,double zz)//virtual
+       {
+               setInicPoint(xx,yy,zz);
+       }
+
+       //=========================================================================
+
+       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;
        }
 
        //=========================================================================