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

Method type

src/Gui/VectorAnimationComplex/SmartKeyEdgeSet.cpp:35–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35SmartConnectedKeyEdgeSet::EdgeSetType SmartConnectedKeyEdgeSet::type() const
36{
37 KeyEdge * singleEdge = edge();
38
39 if(edgeSet_.size() == 0)
40 {
41 return EMPTY;
42 }
43 else if(singleEdge)
44 {
45 if(singleEdge->isClosed())
46 {
47 return CLOSED_EDGE;
48 }
49 else if(singleEdge->isSplittedLoop())
50 {
51 return OPEN_EDGE_LOOP;
52 }
53 else
54 {
55 return OPEN_EDGE_PATH;
56 }
57 }
58 else if(path_.isValid())
59 {
60 return SIMPLE_PATH;
61 }
62 else if(loop_.isValid())
63 {
64 return SIMPLE_LOOP;
65 }
66 else if(hole_.isValid())
67 {
68 return PATH_LOOP_DECOMPOSITION;
69 }
70 else
71 {
72 return GENERAL;
73 }
74}
75
76KeyEdge * SmartConnectedKeyEdgeSet::edge() const
77{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
isClosedMethod · 0.45
isSplittedLoopMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected