[vtkusers] how to use vtk code in MFC
John Platt
jcplatt at lineone.net
Fri Nov 5 04:05:43 EST 2004
Peter,
This is an extract from the ML posted by Dean which may be relevant.
I have added three new classes to VTK for viewing/placing orientation
markers in a scene. The two markers are vtkAxesActor, based on
Paraview's vtkPVAxesActor, and vtkAnnotatedCubeActor which looks pretty
much like the corner annotation marker seen in VolView 2 but uses
vtkVectorText ivars for the face text.
Either of these markers can be added to a widget that
affords interactive manipulation of the placement and size
of the marker in addition to causing the camera view of the marker to
match that of the camera view of a main renderer's
scene: vtkOrientationMarkerWidget, which is again based on
a Paraview class (vtkPVAxesWidget). The implementation of
this widget is such that combinations of markers can be added to the
widget or, in general, any vtkProp with symmetric bounds.
John.
-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of Peter Wallin
Sent: 03 November 2004 12:57
To: vtkusers at vtk.org
Subject: [vtkusers] how to use vtk code in MFC
hello vtkUsers!
I have a question regarding a thread posted in february this year
regarding implementing a vtk example into MFC.
http://public.kitware.com/pipermail/vtkusers/2004-February/071615.html
It´s about how to use an oriented Axis that follows the main object when
it´s being rotated. I have a working version with the Axis where I just
use vtk , but when I want to combine it with my MFC application I do not
get the Axis callback to work(it doesnt move when I rotate the
object).Maybe it doesnt work because I dont exactly know where to put
the AxisUpdate() function which the CommandCallback function uses,and
how to call on it. In my current MFC application have I implemented
everything in the viewDoc as in the vtkSDI example that ships with VTK.
It seems that James that wrote the thread managed to do it, but I havent
been able to reach him so perhaps someone could help me out!
Kind Regards
/Peter
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list