'Set up the graphics.'

def setupGraphics(self):

    shape_rect = QRectF((-24), (-24), 48, 48)
    self.shapeItem = NodeBodyItem(self)
    self.shapeItem.setShapeRect(shape_rect)
    self.shapeItem.setAnimationEnabled(self.__animationEnabled)
    anchor_rect = QRectF((-31), (-31), 62, 62)
    self.inputAnchorItem = SinkAnchorItem(self)
    input_path = QPainterPath()
    start_angle = (180 - (self.ANCHOR_SPAN_ANGLE / 2))
    input_path.arcMoveTo(anchor_rect, start_angle)
    input_path.arcTo(anchor_rect, start_angle, self.ANCHOR_SPAN_ANGLE)
    self.inputAnchorItem.setAnchorPath(input_path)
    self.outputAnchorItem = SourceAnchorItem(self)
    output_path = QPainterPath()
    start_angle = (self.ANCHOR_SPAN_ANGLE / 2)
    output_path.arcMoveTo(anchor_rect, start_angle)
    output_path.arcTo(anchor_rect, start_angle, (- self.ANCHOR_SPAN_ANGLE))
    self.outputAnchorItem.setAnchorPath(output_path)
    self.inputAnchorItem.hide()
    self.outputAnchorItem.hide()
    self.captionTextItem = NameTextItem(self)
    self.captionTextItem.setPlainText('')
    self.captionTextItem.setPos(0, 33)
    def iconItem(standard_pixmap):
        item = GraphicsIconItem(self, icon=standard_icon(standard_pixmap), iconSize=QSize(16, 16))
        item.hide()
        return item
    self.errorItem = iconItem(QStyle.SP_MessageBoxCritical)
    self.warningItem = iconItem(QStyle.SP_MessageBoxWarning)
    self.infoItem = iconItem(QStyle.SP_MessageBoxInformation)
    self.prepareGeometryChange()
    self.__boundingRect = None
