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

Method nodeType

src/Gui/VectorAnimationComplex/AnimatedCycle.cpp:45–67  ·  view source on GitHub ↗

Type

Source from the content-addressed store, hash-verified

43
44// Type
45AnimatedCycleNode::NodeType AnimatedCycleNode::nodeType() const
46{
47 if(cell_->toKeyVertex())
48 return KeyVertexNode;
49 else if(cell_->toInbetweenVertex())
50 return InbetweenVertexNode;
51 else if(cell_->toKeyEdge())
52 {
53 if(cell_->toKeyEdge()->isClosed())
54 return KeyClosedEdgeNode;
55 else
56 return KeyOpenEdgeNode;
57 }
58 else if(cell_->toInbetweenEdge())
59 {
60 if(cell_->toInbetweenEdge()->isClosed())
61 return InbetweenClosedEdgeNode;
62 else
63 return InbetweenOpenEdgeNode;
64 }
65 else
66 return InvalidNode;
67}
68AnimatedCycleNode::CycleType AnimatedCycleNode::cycleType(Time time) const
69{
70 assert(cell()->exists(time));

Callers 1

sampleMethod · 0.80

Calls 5

toKeyVertexMethod · 0.80
toInbetweenVertexMethod · 0.80
toKeyEdgeMethod · 0.80
toInbetweenEdgeMethod · 0.80
isClosedMethod · 0.45

Tested by

no test coverage detected