2-D drawing

I’m investigating using VTK for some 3-d model animations, but the application I’m working on also needs a 2-d drawing area with ability to draw straight lines, points, and text. Does VTK easily support this type of 2-d drawing area? If so, what classes should I start looking at?

Thank you for the help. I’ve searched online for tutorials and information on this, but I couldn’t find anything. Thanks again.

vtkImageCanvasSouce2D might be helpful. I haven’t used it, though. This class generates a vtkImageData that you would then need to display.

vtkContext2D may also be helpful. It is a more direct way to render 2D primitives.

Thank you!