| 37 | { |
| 38 | |
| 39 | KeyEdge::KeyEdge(VAC * vac, Time time, |
| 40 | KeyVertex * startVertex, |
| 41 | KeyVertex * endVertex, |
| 42 | EdgeGeometry * geometry) : |
| 43 | Cell(vac), |
| 44 | KeyCell(vac, time), |
| 45 | EdgeCell(vac), |
| 46 | startVertex_(startVertex), |
| 47 | endVertex_(endVertex), |
| 48 | geometry_(geometry) |
| 49 | { |
| 50 | if(startVertex_) |
| 51 | addMeToSpatialStarOf_(startVertex_); |
| 52 | if(endVertex_) |
| 53 | addMeToSpatialStarOf_(endVertex_); |
| 54 | |
| 55 | // todo: if geometry == 0, create it, store that it has been |
| 56 | // created automatically, delete it in ~KeyEdge |
| 57 | |
| 58 | } |
| 59 | |
| 60 | KeyEdge::KeyEdge(VAC * vac, Time time, |
| 61 | EdgeGeometry * geometry) : |