------------------------------------------------------------------------------
| 1599 | |
| 1600 | //------------------------------------------------------------------------------ |
| 1601 | void 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 | //------------------------------------------------------------------------------ |
| 1622 | void vtkSVGContextDevice2D::SetupClippingAndTransform() |
no test coverage detected