_xInic = 0;
_yInic = 0;
- _zInic = 900;
+ _zInic = GPOSITION_Z;
_xFin = 0;
_yFin = 0;
- _zFin = 900;
- _state = NOTHING_HAPPENS;
+ _zFin = GPOSITION_Z;
}
//=========================================================================
}
//=========================================================================
+ 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;
}
//=========================================================================
- void GObjectModel::setState(int state)
- {
- _state = state;
- }
-
- //=========================================================================
-
- int GObjectModel::getState()
- {
- return _state;
- }
-
- //=========================================================================
-
void GObjectModel::setGObjectType(int gObjectType)
{
_gObjectType = gObjectType;
//=========================================================================
- void GObjectModel::updateBlackBox(BlackBoxDescriptor::Pointer descriptor)//virtual
- {
- }
-
- //=========================================================================
-
void GObjectModel::move(double xx,double yy,double zz)//virtual
{
setInicPoint(xx,yy,zz);
//=========================================================================
+ std::string GObjectModel::getStatusText()//virtual
+ {
+ std::string virt = "";
+ return virt;
+ }
+
+ //=========================================================================
+
+ int GObjectModel::getObjectId()
+ {
+ return _objectId;
+ }
+
+ //=========================================================================
+
+ void GObjectModel::setObjectId(int id)
+ {
+ _objectId=id;
+ }
+
+ //=========================================================================
+
+ void GObjectModel::save(std::string &content)
+ {
+ //virtual
+ }
+
+ //=========================================================================
+
} // EO namespace bbtk
// EOF