Lines Matching refs:cell

2158   RtreeCell cell;  in cellGrowth()  local
2159 memcpy(&cell, p, sizeof(RtreeCell)); in cellGrowth()
2160 area = cellArea(pRtree, &cell); in cellGrowth()
2161 cellUnion(pRtree, &cell, pCell); in cellGrowth()
2162 return (cellArea(pRtree, &cell)-area); in cellGrowth()
2216 RtreeCell cell; in ChooseLeaf() local
2229 nodeGetCell(pRtree, pNode, iCell, &cell); in ChooseLeaf()
2230 growth = cellGrowth(pRtree, &cell, pCell); in ChooseLeaf()
2231 area = cellArea(pRtree, &cell); in ChooseLeaf()
2238 iBest = cell.iRowid; in ChooseLeaf()
2267 RtreeCell cell; in AdjustTree() local
2281 nodeGetCell(pRtree, pParent, iCell, &cell); in AdjustTree()
2282 if( !cellContains(pRtree, &cell, pCell) ){ in AdjustTree()
2283 cellUnion(pRtree, &cell, pCell); in AdjustTree()
2284 nodeOverwriteCell(pRtree, pParent, &cell, iCell); in AdjustTree()
2821 RtreeCell cell; in fixBoundingBox() local
2822 nodeGetCell(pRtree, pNode, ii, &cell); in fixBoundingBox()
2823 cellUnion(pRtree, &box, &cell); in fixBoundingBox()
3017 RtreeCell cell; in reinsertNodeContent() local
3018 nodeGetCell(pRtree, pNode, ii, &cell); in reinsertNodeContent()
3023 rc = ChooseLeaf(pRtree, &cell, (int)pNode->iNode, &pInsert); in reinsertNodeContent()
3026 rc = rtreeInsertCell(pRtree, pInsert, &cell, (int)pNode->iNode); in reinsertNodeContent()
3226 RtreeCell cell; /* New cell to insert if nData>1 */ in rtreeUpdate() local
3238 memset(&cell, 0, sizeof(cell)); in rtreeUpdate()
3268 cell.aCoord[ii].f = rtreeValueDown(aData[ii+3]); in rtreeUpdate()
3269 cell.aCoord[ii+1].f = rtreeValueUp(aData[ii+4]); in rtreeUpdate()
3270 if( cell.aCoord[ii].f>cell.aCoord[ii+1].f ){ in rtreeUpdate()
3279 cell.aCoord[ii].i = sqlite3_value_int(aData[ii+3]); in rtreeUpdate()
3280 cell.aCoord[ii+1].i = sqlite3_value_int(aData[ii+4]); in rtreeUpdate()
3281 if( cell.aCoord[ii].i>cell.aCoord[ii+1].i ){ in rtreeUpdate()
3291 cell.iRowid = sqlite3_value_int64(aData[2]); in rtreeUpdate()
3293 || sqlite3_value_int64(aData[0])!=cell.iRowid in rtreeUpdate()
3296 sqlite3_bind_int64(pRtree->pReadRowid, 1, cell.iRowid); in rtreeUpdate()
3301 rc = rtreeDeleteRowid(pRtree, cell.iRowid); in rtreeUpdate()
3330 rc = rtreeNewRowid(pRtree, &cell.iRowid); in rtreeUpdate()
3332 *pRowid = cell.iRowid; in rtreeUpdate()
3335 rc = ChooseLeaf(pRtree, &cell, 0, &pLeaf); in rtreeUpdate()
3340 rc = rtreeInsertCell(pRtree, pLeaf, &cell, 0); in rtreeUpdate()
3887 RtreeCell cell; in rtreenode() local
3890 nodeGetCell(&tree, &node, ii, &cell); in rtreenode()
3892 sqlite3_str_appendf(pOut, "{%lld", cell.iRowid); in rtreenode()
3895 sqlite3_str_appendf(pOut, " %g", (double)cell.aCoord[jj].f); in rtreenode()
3897 sqlite3_str_appendf(pOut, " %d", cell.aCoord[jj].i); in rtreenode()