MCPcopy Create free account
hub / github.com/dalboris/vpaint / InbetweenEdge

Method InbetweenEdge

src/Gui/VectorAnimationComplex/InbetweenEdge.cpp:70–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70InbetweenEdge::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
107InbetweenEdge::InbetweenEdge(VAC * vac,
108 const Cycle & beforeCycle,

Callers

nothing calls this directly

Calls 11

setStartingPointMethod · 0.80
foreachFunction · 0.70
isValidMethod · 0.45
timeMethod · 0.45
startVertexMethod · 0.45
beforeVertexMethod · 0.45
afterVertexMethod · 0.45
endVertexMethod · 0.45
fromStringMethod · 0.45
toStringMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected