2-D drawing

(Kevin Hall) #1

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.

(Cory Quammen (Kitware)) #2

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.

(Kevin Hall) #3

Thank you!