| 68 | } |
| 69 | |
| 70 | InbetweenEdge::InbetweenEdge(VAC * vac, |
| 71 | const Path & beforePath, |
| 72 | const Path & afterPath, |
| 73 | const AnimatedVertex & startAnimatedVertex, |
| 74 | const AnimatedVertex & endAnimatedVertex) : |
| 75 | Cell(vac), |
| 76 | InbetweenCell(vac), |
| 77 | EdgeCell(vac), |
| 78 | |
| 79 | beforePath_(beforePath), |
| 80 | afterPath_(afterPath), |
| 81 | startAnimatedVertex_(startAnimatedVertex), |
| 82 | endAnimatedVertex_(endAnimatedVertex) |
| 83 | |
| 84 | { |
| 85 | // Check pre-conditions |
| 86 | assert(beforePath_.isValid()); |
| 87 | assert(afterPath_.isValid()); |
| 88 | assert(beforePath_.time() < afterPath_.time()); |
| 89 | assert(startAnimatedVertex_.isValid()); |
| 90 | assert(endAnimatedVertex_.isValid()); |
| 91 | assert(beforePath_.startVertex() == startAnimatedVertex_.beforeVertex()); |
| 92 | assert(afterPath_.startVertex() == startAnimatedVertex_.afterVertex()); |
| 93 | assert(beforePath_.endVertex() == endAnimatedVertex_.beforeVertex()); |
| 94 | assert(afterPath_.endVertex() == endAnimatedVertex_.afterVertex()); |
| 95 | |
| 96 | // Cache star |
| 97 | foreach(VertexCell * vertex, startVertices()) |
| 98 | addMeToSpatialStarOf_(vertex); |
| 99 | foreach(VertexCell * vertex, endVertices()) |
| 100 | addMeToSpatialStarOf_(vertex); |
| 101 | foreach(KeyCell * kcell, beforeCells()) |
| 102 | addMeToTemporalStarAfterOf_(kcell); |
| 103 | foreach(KeyCell * kcell, afterCells()) |
| 104 | addMeToTemporalStarBeforeOf_(kcell); |
| 105 | } |
| 106 | |
| 107 | InbetweenEdge::InbetweenEdge(VAC * vac, |
| 108 | const Cycle & beforeCycle, |
nothing calls this directly
no test coverage detected