from . import SceneNode

from Cura.View.Renderer import Renderer
from Cura.MeshHandling.MeshData import MeshData

class ToolHandle(SceneNode.SceneNode):
    def __init__(self, parent = None):
        super().__init__(parent)

        self.setMeshData(MeshData())

    def render(self, renderer):
        renderer.setDepthTesting(False)
        renderer.renderLines(self.getGlobalTransformation(), self.getMeshData())
        renderer.setDepthTesting(True)
        return True

Add a ToolHandle class that can be used as base class for tool handles