[vtkusers] vtk annotations/MFC drawing on the CDC
Ted Christiansen
ted at caept.com
Wed Feb 6 14:09:43 EST 2002
Hello,
Is it possible to draw on the CDC in the OnDraw function:
MyGLview::OnDraw(CDC *pDC)
{
vtkMFCRenderView::OnDraw(pDC);
pDC->MoveTo(50,50);
pDC->LineTo(100,100);
}
I tried it but as soon as any transformations happen then the drawing
disappears. Anybody else tried this? I need to do some annotation in
the view - text and a leader (line with arrow head). If anyone has an
example of how to do this using vtk classes I would appreciate it.
Thanks.
Ted
More information about the vtkusers
mailing list