[vtkusers] VTK ActiViz 6.2 Native WPF Render Window

Mark DeArman mark at cascadeacoustic.com
Sun Nov 29 08:29:53 EST 2015


If anyone else has been following my recent work with ActiViz, 
 I thought I would share my native WPF RenderWindow host.
  
 This also borrows some work done by the guys with Gemini Project
 which can be found on NuGet.  I have marked the appropriate files
 with their copyright marks.
  
 The idea behind this HelloWorld program was to segment ActiViz to 
 fit with the normal WPF MVVM datamodel.
  
 ClippingHwndHost can be used in XAML markup to place the Render window in 
the object tree.
 The Content property on the ClippingHwndHost can be databound to the 
VtkRenderWindowControl.
  
 VtkRenderWindowControl can be placed in the viewmodel and has access to 
the underlying 
 vtkRenderWindow.
  
 This is just a starting place, but most of the hard work is done.  Just 
hook up the services you need by
 overriding the appropriate methods.  It is a little more elegant than 
other methods I've seen online
 and doesn't suffer from clipping issues when hosted inside a MDI docking 
window environment.
  
 It might also make more sense to rearrange things a bit to keep the actual 
render Window on the
 View side and only bind data objects, have fun.  Download link is bellow.
   
 
https://onedrive.live.com/redir?resid=C21891647818579A!179950&authkey=!AL0zh
L3z_VE6EWg&ithint=file%2czip
  
 Mark DeArman
 Cascade Acoustic Research
 http://www.cascadeacoustic.com
 (253) 200-5353


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151129/fa63434b/attachment.html>


More information about the vtkusers mailing list