[vtkusers] RenderWindowInteractor when ActiViz/COM control placed in MDI child window using VB 2003?
SKoch at trinityconsultants.com
SKoch at trinityconsultants.com
Fri Apr 21 11:40:29 EDT 2006
Hello VTK community,
We are trying to evaluate the ActiViz/COM control for our VB 2003
applications. All is going well except we are stuck trying to change the
'RenderWindowInteractor' when we place the control in a MDI child window
(see image).
The default interactor (i.e. InteractorStyleJoystickCamera) is working but
we can not change the interactor style or setup event observers. The
following code works if the control is placed in the main window container
but has no effect when placed in a child window.....
renWin = CType(AxvtkRenderWindowControl1.GetRenderWindow,
vtkRenderWindow)
renCol = renWin.GetRenderers
renCol.InitTraversal()
ren1 = renCol.GetNextItem
ren1.SetBackground(0, 0, 0)
rwi = renWin.GetInteractor
rwiStyleTBC = New vtkInteractorStyleTrackballCamera
rwi.SetInteractorStyle(rwiStyleTBC)
Steve Koch
TRINITY CONSULTANTS, INC.
Applications Developer
breeze-software.com
skoch at trinityconsultants.com
phone: 972-661-8881 x1332
fax: +214-615-7425
_________________________________________________________________________
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
Received this in error, please contact the sender and delete the material
from any computer.
_________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060421/6153c76f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 48205 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060421/6153c76f/attachment.gif>
More information about the vtkusers
mailing list