MCPcopy Create free account
hub / github.com/Kitware/VTK / PopGraphicsState

Method PopGraphicsState

IO/Export/vtkSVGContextDevice2D.cxx:1601–1619  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1599
1600//------------------------------------------------------------------------------
1601void vtkSVGContextDevice2D::PopGraphicsState()
1602{
1603 if (this->ActiveNode == this->ContextNode)
1604 {
1605 vtkErrorMacro("Internal error: Attempting to pop graphics state past "
1606 "context node. This likely means there's a pop with no "
1607 "corresponding push.");
1608 return;
1609 }
1610
1611 vtkXMLDataElement* oldActive = this->ActiveNode;
1612 this->ActiveNode = this->ActiveNode->GetParent();
1613
1614 // If the old active node is empty, remove it completely:
1615 if (oldActive->GetNumberOfNestedElements() == 0)
1616 {
1617 this->ActiveNode->RemoveNestedElement(oldActive);
1618 }
1619}
1620
1621//------------------------------------------------------------------------------
1622void vtkSVGContextDevice2D::SetupClippingAndTransform()

Callers 5

DrawPolyMethod · 0.95
DrawLinesMethod · 0.95
DrawPointsMethod · 0.95
DrawMarkersMethod · 0.95

Calls 3

RemoveNestedElementMethod · 0.80
GetParentMethod · 0.45

Tested by

no test coverage detected