diff -r 25ee6b988b73 -r 8f987e376035 branchobj.cpp --- a/branchobj.cpp Tue Dec 15 09:14:59 2009 +0000 +++ b/branchobj.cpp Mon Jan 04 20:36:06 2010 +0000 @@ -26,22 +26,6 @@ init(); } -/* -BranchObj::BranchObj (QGraphicsScene* s, LinkableMapObj* p):OrnamentedObj (s)// FIXME-3 needed at all? -{ -// cout << "Const BranchObj (s,p)\n"; - scene=s; - setParObj (p); - if (treeItem->depth()==1) // FIXME-3 needed to recursively calc depth? - // Calc angle to mapCenter if I am a mainbranch - // needed for reordering the mainbranches clockwise - // around mapcenter - angle=getAngle (QPointF (x() - parObj->getChildPos().x() , - (y() - parObj->getChildPos().y() ) ) ); - init(); -} -*/ - BranchObj::~BranchObj () { // cout << "Destr BranchObj of "<getHeading().toStdString()<<")"<isScrolled() ) return r; +/* FIXME-2 really include children _here_ ? likely not needed anymore, but done in TreeItem */ for (int i=0; ibranchCount(); ++i) if (!treeItem->getBranchNum(i)->isHidden()) r=addBBox(treeItem->getBranchObjNum(i)->getTotalBBox(),r); @@ -643,9 +628,11 @@ (have been NULL at least in calcBBoxSizeWithChilds...) */ - for (int i=0; iimageCount(); ++i) +/* FIXME-2 in + for (int i=0; iimageCount(); ++i if (!treeItem->isHidden()) r=addBBox(treeItem->getImageObjNum(i)->getTotalBBox(),r); +*/ return r; } @@ -672,7 +659,7 @@ return MapObj::getBoundingPolygon(); } - calcBBoxSizeWithChildren(); //FIXME-3 really needed? + calcBBoxSizeWithChildren(); //FIXME-2 really needed? QPolygonF p; p<getModel(); - if (model) - return model->getSelectString (this); - else - return QString(); -} - void BranchObj::setAnimation(const AnimPoint &ap) { anim=ap;