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

Method KeyEdge

src/Gui/VectorAnimationComplex/KeyEdge.cpp:39–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38
39KeyEdge::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
60KeyEdge::KeyEdge(VAC * vac, Time time,
61 EdgeGeometry * geometry) :

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected