• Home
  • Raw
  • Download

Lines Matching refs:vtx

2962 cvGraphRemoveVtxByPtr( CvGraph* graph, CvGraphVtx* vtx )  in cvGraphRemoveVtxByPtr()  argument
2970 if( !graph || !vtx ) in cvGraphRemoveVtxByPtr()
2973 if( !CV_IS_SET_ELEM(vtx)) in cvGraphRemoveVtxByPtr()
2979 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtxByPtr()
2982 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] ); in cvGraphRemoveVtxByPtr()
2985 cvSetRemoveByPtr( (CvSet*)graph, vtx ); in cvGraphRemoveVtxByPtr()
2998 CvGraphVtx *vtx = 0; in cvGraphRemoveVtx() local
3007 vtx = cvGetGraphVtx( graph, index ); in cvGraphRemoveVtx()
3008 if( !vtx ) in cvGraphRemoveVtx()
3014 CvGraphEdge *edge = vtx->first; in cvGraphRemoveVtx()
3019 cvGraphRemoveEdgeByPtr( graph, edge->vtx[0], edge->vtx[1] ); in cvGraphRemoveVtx()
3022 cvSetRemoveByPtr( (CvSet*)graph, vtx ); in cvGraphRemoveVtx()
3059 ofs = start_vtx == edge->vtx[1]; in cvFindGraphEdgeByPtr()
3060 assert( ofs == 1 || start_vtx == edge->vtx[0] ); in cvFindGraphEdgeByPtr()
3061 if( edge->vtx[1] == end_vtx ) in cvFindGraphEdgeByPtr()
3140 edge->vtx[0] = start_vtx; in cvGraphAddEdgeByPtr()
3141 edge->vtx[1] = end_vtx; in cvGraphAddEdgeByPtr()
3229 ofs = start_vtx == edge->vtx[1]; in cvGraphRemoveEdgeByPtr()
3230 assert( ofs == 1 || start_vtx == edge->vtx[0] ); in cvGraphRemoveEdgeByPtr()
3231 if( edge->vtx[1] == end_vtx ) in cvGraphRemoveEdgeByPtr()
3247 ofs = end_vtx == edge->vtx[1]; in cvGraphRemoveEdgeByPtr()
3248 assert( ofs == 1 || end_vtx == edge->vtx[0] ); in cvGraphRemoveEdgeByPtr()
3249 if( edge->vtx[0] == start_vtx ) in cvGraphRemoveEdgeByPtr()
3349 CvGraphVtx* vtx; member
3448 cvCreateGraphScanner( CvGraph* graph, CvGraphVtx* vtx, int mask ) in cvCreateGraphScanner() argument
3467 scanner->vtx = vtx; in cvCreateGraphScanner()
3468 scanner->index = vtx == 0 ? 0 : -1; in cvCreateGraphScanner()
3526 CvGraphVtx* vtx; in cvNextGraphItem() local
3535 vtx = scanner->vtx; in cvNextGraphItem()
3544 scanner->vtx = vtx = dst; in cvNextGraphItem()
3545 edge = vtx->first; in cvNextGraphItem()
3550 scanner->vtx = vtx; in cvNextGraphItem()
3551 scanner->edge = vtx->first; in cvNextGraphItem()
3560 dst = edge->vtx[vtx == edge->vtx[0]]; in cvNextGraphItem()
3565 if( !CV_IS_GRAPH_ORIENTED( scanner->graph ) || dst != edge->vtx[0] ) in cvNextGraphItem()
3571 item.vtx = vtx; in cvNextGraphItem()
3574 vtx->flags |= CV_GRAPH_SEARCH_TREE_NODE_FLAG; in cvNextGraphItem()
3581 scanner->vtx = vtx; in cvNextGraphItem()
3601 scanner->vtx = vtx; in cvNextGraphItem()
3618 edge = CV_NEXT_GRAPH_EDGE( edge, vtx ); in cvNextGraphItem()
3626 vtx = 0; in cvNextGraphItem()
3632 vtx = item.vtx; in cvNextGraphItem()
3633 vtx->flags &= ~CV_GRAPH_SEARCH_TREE_NODE_FLAG; in cvNextGraphItem()
3639 scanner->vtx = vtx; in cvNextGraphItem()
3641 scanner->dst = edge->vtx[vtx == edge->vtx[0]]; in cvNextGraphItem()
3648 if( !vtx ) in cvNextGraphItem()
3650 vtx = (CvGraphVtx*)icvSeqFindNextElem( (CvSeq*)(scanner->graph), in cvNextGraphItem()
3654 if( !vtx ) in cvNextGraphItem()
3661 dst = vtx; in cvNextGraphItem()
3666 scanner->vtx = 0; in cvNextGraphItem()
3718 CvGraphVtx* vtx = (CvGraphVtx*)reader.ptr; in cvCloneGraph() local
3720 CV_CALL( cvGraphAddVtx( result, vtx, &dstvtx )); in cvCloneGraph()
3721 flag_buffer[k] = dstvtx->flags = vtx->flags; in cvCloneGraph()
3722 vtx->flags = k; in cvCloneGraph()
3736 CvGraphVtx* new_org = ptr_buffer[edge->vtx[0]->flags]; in cvCloneGraph()
3737 CvGraphVtx* new_dst = ptr_buffer[edge->vtx[1]->flags]; in cvCloneGraph()
3750 CvGraphVtx* vtx = (CvGraphVtx*)reader.ptr; in cvCloneGraph() local
3751 vtx->flags = flag_buffer[k++]; in cvCloneGraph()