<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7170858097677223865</id><updated>2012-02-08T14:03:44.131-08:00</updated><category term='install'/><category term='vtkArrowSource'/><category term='MyVTKLinePlotter'/><category term='vtkCylinderSource'/><category term='MSys'/><category term='tool'/><category term='vtkConeSource'/><category term='tutorial'/><category term='vtkLinearExtrusionFilter'/><category term='Build'/><category term='minimal'/><category term='Announcement'/><category term='MinGW'/><category term='vtkTextActor'/><category term='vtkDiskSource'/><category term='vtkInteractorStyle'/><category term='MyVTKPointPlotter'/><category term='vtktcl2cpp'/><category term='vtkCubeSource'/><category term='vtkRenderer'/><category term='vtkVectorText'/><category term='vtkCamera'/><category term='vtkdata'/><category term='examples'/><category term='vtkSphereSource'/><title type='text'>VTK tutorial</title><subtitle type='html'>Tutorials related to Visualization Toolkit

&lt;em&gt;(For C++ programmers)&lt;/em&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-1332724483827748539</id><published>2008-05-22T09:40:00.000-07:00</published><updated>2008-05-22T09:51:42.185-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><title type='text'>[Installer] Automatic installer for the pre-compiled libraries of VTK-5.0.2 in MinGW, Windows XP</title><content type='html'>Compilation of VTK in MinGW is even harder. It is really troublesome to get the libraries bulit.&lt;br /&gt;&lt;br /&gt;The automatic installer for the MinGW version of pre-compiled libraries of VTK-5.0.2 in MinGW on Windows XP is also available now.&lt;br /&gt;&lt;br /&gt;The download link can be found here:&lt;br /&gt;&lt;a href="http://www.driveway.com/n6i5y6n8o1"&gt;http://www.driveway.com/n6i5y6n8o1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The screenshot of the installer is here (with embeded license of VTK):&lt;br /&gt;&lt;br /&gt;&lt;img src="http://code.hkpeterpeter.googlepages.com/vtk_mingw_winxp_install.png" /&gt;&lt;br /&gt;&lt;br /&gt;For path settings, please view the install guide.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-1332724483827748539?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/1332724483827748539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=1332724483827748539' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1332724483827748539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1332724483827748539'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2008/05/installer-automatic-installer-for-pre_22.html' title='[Installer] Automatic installer for the pre-compiled libraries of VTK-5.0.2 in MinGW, Windows XP'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-7575872658575061152</id><published>2008-05-21T19:19:00.001-07:00</published><updated>2008-05-21T21:09:21.756-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><title type='text'>[Installer] Automatic installer for the pre-compiled libraries of VTK-5.0.2 in Visual Studio 7.1 (2003), Windows XP</title><content type='html'>After reviewing the license in VTK, I figured out that it is possible (and legal) to redistribute pre-compiled libraries in VTK.&lt;br /&gt;&lt;br /&gt;I know it is very troublesome to compile the libraries by users. So, I have packed up the automatic installer for the pre-compiled libraries of VTK.&lt;br /&gt;&lt;br /&gt;Currently, it is only available for VTK-5.0.2 in Visual Studio 7.1 (2003), Windows XP (But, it should be compatitable with future versions of Visual Studio compilers). I will add more kinds of distributions on request.&lt;br /&gt;&lt;br /&gt;The download link can be found here: &lt;a href="http://www.driveway.com/r2c6e0s6v0"&gt;http://www.driveway.com/r2c6e0s6v0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The screenshot of the installer is here (with embeded license of VTK):&lt;br /&gt;&lt;img alt="Screenshot of the installer" src="http://code.hkpeterpeter.googlepages.com/vtk_vc7_1_winxp_install.png" /&gt;&lt;br /&gt;&lt;br /&gt;After installing the libraries, you need to set up the search pathes (i.e. include path and libraries path) for the IDE (in this case, Visual Studio 7.1). Please see the previous "Build VTK in Visual Studio" guideline to learn how to set up the pathes &lt;strong&gt;(Actually, you are not needed to go into the detail. You can just view the bottom few figures in the install guide).&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The un-installer is provided in the install directory you specified.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-7575872658575061152?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/7575872658575061152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=7575872658575061152' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/7575872658575061152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/7575872658575061152'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2008/05/installer-automatic-installer-for-pre.html' title='[Installer] Automatic installer for the pre-compiled libraries of VTK-5.0.2 in Visual Studio 7.1 (2003), Windows XP'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-307338907166345134</id><published>2008-05-14T02:47:00.000-07:00</published><updated>2008-05-14T03:33:44.724-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MSys'/><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='Build'/><category scheme='http://www.blogger.com/atom/ns#' term='MinGW'/><category scheme='http://www.blogger.com/atom/ns#' term='minimal'/><title type='text'>Build VTK from source using MinGW/MSys</title><content type='html'>Here is the reference document on how to build VTK from source in MinGW/MSys&lt;br /&gt;&lt;!-- Install guide: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/vtk_build_mingw.pdf" title="Install guide - Using MinGW/MSys to build VTK" desp="VTK build from source in MinGW/MSys"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The minimal project for MinGW/MSys can be found here:&lt;br /&gt;&lt;!-- Minimal project: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/vtk_minimal_mingw.zip" title="Minimal VTK project in MinGW" desp="Minimal VTK project in MinGW"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Two files are potentially useful in the build process:&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/CMakeLists.txt"&gt;&lt;br /&gt;http://code.hkpeterpeter.googlepages.com/CMakeLists.txt&lt;/a&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/jconfig.h"&gt;&lt;br /&gt;http://code.hkpeterpeter.googlepages.com/jconfig.h&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Note: Although not quite accurate, you can think &lt;span style="font-weight: bold;"&gt;MinGW &lt;/span&gt;is a thin abstraction layer which allows you to port softwares in Unix-like environment to Windows with the minimal changes of code. &lt;span style="font-weight: bold;"&gt;MSys &lt;/span&gt;provides a Unix-like shell environment, just like bash/csh).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-307338907166345134?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/307338907166345134/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=307338907166345134' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/307338907166345134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/307338907166345134'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2008/05/build-vtk-from-source-using-mingwmsys.html' title='Build VTK from source using MinGW/MSys'/><author><name>Peter</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-4887451113249215691</id><published>2008-05-07T17:14:00.000-07:00</published><updated>2008-05-07T17:55:07.660-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Announcement'/><title type='text'>[Announcement] Invitation of editor</title><content type='html'>Dear all,&lt;br /&gt;&lt;br /&gt;I have not updated for nearly a year. My previous goal is to accompany the weakness of the VTK mailing list. The mailing list is good source of information, but unfortunately lacking organized structure. The example programs given in the VTK source distributions are also nice, but most of them are written in scripting language which may not be suitable for C++ developers. That is the reason why I would like to write up some illustrative examples with demo figures and source codes using C++ programming language (instead of scripting language such as TCL and Python).&lt;br /&gt;&lt;br /&gt; Dues to some personal issues, I can't fit this goal yet. For example, I am not an expert in medical imaging, but I have been asking some examples in C++ related to this field.&lt;br /&gt;&lt;br /&gt;So, I would like to invite some volunteers to design and write some tutorials with are in similar format. The invited editors have ability to post some new articles, or edit the previous articles.&lt;br /&gt;&lt;br /&gt; The requirements for the content are&lt;br /&gt;===========================&lt;br /&gt; 1. Programming language (Must be C++)&lt;br /&gt; 2. Preferred codebase (Pure VTK is preferable, adding other libraries are okay, but need to explain how to get them in the post)&lt;br /&gt; 3. Platform (May not need to in Windows, other platforms are okay)&lt;br /&gt; 4. Source codes (Must include the source code - zipped or in a single cpp file, you can upload them to some free web spaces - e.g. &lt;a href="http://www.google.com/url?sa=t&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fpages.google.com%2F&amp;amp;ei=7UoiSK71DoaM6gOWu7HyAw&amp;amp;usg=AFQjCNFH8adsA2hkzCqPNs3LoBIvq15aWQ&amp;amp;sig2=XyS7kHr5mX4Um7OxgQT0rw"&gt;Google Page Creator&lt;/a&gt;)&lt;br /&gt; 5. How to compile and build&lt;br /&gt;6. (Optional) With a single image/video clip to illustrate what it is (to save time of viewers...)&lt;br /&gt;&lt;br /&gt;Some possible topics may be interesting&lt;br /&gt;============================&lt;br /&gt;1. A survey of how to use VTK with other GUI libraries (e.g. such as FLTK, Qt)&lt;br /&gt;2. Many illustrative examples of how to use VTK in different fields (such as volume rendering, medical imaging....)&lt;br /&gt;3. Some latest features in VTK (such as GPU acceleration using shaders)&lt;br /&gt;4. Using VTK with ITK (how to bridge them)&lt;br /&gt;5. More....&lt;br /&gt;&lt;br /&gt; For volunteers who are interested, please feel free to contact me via hkpeterpeter@gmail.com. I can grant the editing permission of this blog for volunteers.&lt;br /&gt;&lt;br /&gt;Peter&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-4887451113249215691?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/4887451113249215691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=4887451113249215691' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/4887451113249215691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/4887451113249215691'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2008/05/announcement-invitation-of-editor.html' title='[Announcement] Invitation of editor'/><author><name>Peter</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-1804182368309893860</id><published>2007-06-13T19:44:00.000-07:00</published><updated>2007-06-13T20:02:03.580-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MyVTKPointPlotter'/><category scheme='http://www.blogger.com/atom/ns#' term='MyVTKLinePlotter'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>Point and Line Plotter in VTK - A simple wrapper class</title><content type='html'>&lt;span class="dropcap"&gt;*&lt;/span&gt;Purpose: Beginners of VTK usually create a lot of actors for some primitive geometric objects (e.g. such as some simple points and lines). It is a waste to construct so many high level objects. Instead, we can always group multiple geometric primitives into a single actor. The rendering speed increases a lot when you do so. &lt;br /&gt;&lt;br /&gt;I have created two simple wrapper classes to help us do the job. Their names are MyVTKPointPlotter and MyVTKLinePlotter. The classes are not well designed yet, but it works for many cases. &lt;br /&gt;&lt;br /&gt;Sample usage:&lt;br /&gt;&lt;code&gt; // In demo.cpp&lt;br /&gt;&lt;br /&gt;// Generate some random line and random points to plot&lt;br /&gt;for (....)&lt;br /&gt;{&lt;br /&gt;   pointPlotter.PlotPoint(....)&lt;br /&gt;   linePlotter.PlotLine(....)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// Add actors to the renderer&lt;br /&gt;ren-&gt;AddActor(pointPlotter.CreateActor());&lt;br /&gt;ren-&gt;AddActor(linePlotter.CreateActor());&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_point_line_plotter.zip" title="Source code" desp="Source code for this project"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png"  /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_point_line_plotter.png" /&gt;&lt;/img&gt;&lt;br /&gt;&lt;br /&gt;(P.S.) I haven't update this blog for almost a month. Sorry~&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-1804182368309893860?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/1804182368309893860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=1804182368309893860' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1804182368309893860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1804182368309893860'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/06/point-and-line-plotter-in-vtk-simple.html' title='Point and Line Plotter in VTK - A simple wrapper class'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-1208704622698685837</id><published>2007-05-01T09:53:00.000-07:00</published><updated>2008-11-12T23:42:07.028-08:00</updated><title type='text'>How to improve this blog?</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_8bPLWSlGVBw/RjdxOpf9wtI/AAAAAAAAAAM/p4EfTbn6rnU/s1600-h/visit.png"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_8bPLWSlGVBw/RjdxOpf9wtI/AAAAAAAAAAM/p4EfTbn6rnU/s320/visit.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5059637202846073554" /&gt;&lt;/a&gt;&lt;br /&gt;The blog lanuches for about a month. The visiting rate is not good. I am busying with other stuff and unable to think of more interesting materials. I think that my materials are not interesting enough. What kind of things I should place here to make fun in VTK?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-1208704622698685837?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/1208704622698685837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=1208704622698685837' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1208704622698685837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/1208704622698685837'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/05/how-to-improve-this-blog.html' title='How to improve this blog?'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_8bPLWSlGVBw/RjdxOpf9wtI/AAAAAAAAAAM/p4EfTbn6rnU/s72-c/visit.png' height='72' width='72'/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-8533146400985635158</id><published>2007-04-19T23:55:00.000-07:00</published><updated>2007-04-20T00:20:38.154-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkCamera'/><title type='text'>Camera model in VTK</title><content type='html'>&lt;span class="dropcap"&gt;*&lt;/span&gt;Purpose: There are two wonderful examples to explain the camera model used in the VTK textbook. Unfortunately, they are in tcl scripts and not ready to run using C++. I have made some modifications and ported them to C++.&lt;br /&gt;&lt;br /&gt;You can notice that we have only one version of roll (they are the same no matter you are at the camera position or at the focal point)!&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_camera_1.zip" title="Source code|Source code for camera 1"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png"  /&gt;&lt;/a&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_camera_2.zip" title="Source code|Source code for camera 2"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png"  /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_camera_1.png" /&gt;&lt;/img&gt;&lt;br /&gt;&lt;img class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_camera_2.png" /&gt;&lt;/img&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-8533146400985635158?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/8533146400985635158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=8533146400985635158' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/8533146400985635158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/8533146400985635158'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/camera-model-in-vtk.html' title='Camera model in VTK'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-128713680920983199</id><published>2007-04-15T22:49:00.000-07:00</published><updated>2007-04-16T18:11:18.053-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vtkLinearExtrusionFilter'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkVectorText'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkTextActor'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>Text output in VTK (2D and 3D)</title><content type='html'>&lt;span class="dropcap"&gt;*&lt;/span&gt;Purpose: VTK supports both 2D and 3D text rendering. For 2D, it usually uses vtkTextActor. We can control its font, shadow and display position (in 2D screen coordinates). For 3D, many possible options can be used. One favorable option is to use vtkVectorText with vtkLinearExtrusionFilter. It gives high-quality 3D text rendering.&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_text_output.zip" title="Source code" desp="Source code for this project"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png"  /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_text_output.png" /&gt;&lt;/img&gt;&lt;br /&gt;&lt;br /&gt;There major VTK classes are used in this demo: vtkTextActor, vtkVectorText, vtkLinearExtrusionFilter.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-128713680920983199?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/128713680920983199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=128713680920983199' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/128713680920983199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/128713680920983199'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/text-output-in-vtk-2d-and-3d.html' title='Text output in VTK (2D and 3D)'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-6975939978580698265</id><published>2007-04-13T06:49:00.000-07:00</published><updated>2008-05-22T09:16:22.240-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='examples'/><title type='text'>Examples package (ALL in C++)</title><content type='html'>&lt;span class="dropcap"&gt;L&lt;/span&gt;earning VTK in C++ may be difficult, because there are few C++ VTK examples with the standard source code package. Instead, it contains many tcl scripts which needs quite a lot of time to convert back to C++ source code.&lt;br /&gt;&lt;br /&gt;I have written a converter to help the conversion. Here is the examples package &lt;span class="pullout"&gt;(ALL in C++)&lt;/span&gt; that I have been ported. It contains more than 35 c++ examples.&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;span style="FONT-WEIGHT: bold"&gt;Examples package (ALL in C++):&lt;/span&gt; &lt;a title="Example packageVTK example package (ALL in C++)" href="http://code.hkpeterpeter.googlepages.com/vtk_minimal_demo_pack.zip"&gt;&lt;br /&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Many examples in this pack need VTK data package. Please download it from &lt;a href="http://public.kitware.com/VTK/get-software.php#latest"&gt;http://public.kitware.com/VTK/get-software.php#latest&lt;/a&gt; and extract to any folder you preferred.&lt;br /&gt;&lt;br /&gt;Then open project_config.h, locate the following source code and make changes&lt;br /&gt;&lt;br /&gt;&lt;code&gt;// In project_configure.h&lt;br /&gt;&lt;br /&gt;#define VTK_DATA_ROOT "D:\\Users\\Peter\\bin\\VTKData\\Data\\"&lt;br /&gt;&lt;br /&gt;// Change it into ...&lt;br /&gt;&lt;br /&gt;#define VTK_DATA_ROOT &amp;lt;your VTK Data directory&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-6975939978580698265?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/6975939978580698265/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=6975939978580698265' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/6975939978580698265'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/6975939978580698265'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/examplepack-examples-package-all-in-c.html' title='Examples package (ALL in C++)'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-2749030586113913808</id><published>2007-04-13T06:34:00.000-07:00</published><updated>2007-04-16T19:37:46.286-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tool'/><category scheme='http://www.blogger.com/atom/ns#' term='vtktcl2cpp'/><title type='text'>VTK: TCL script to C++ source code conversion</title><content type='html'>&lt;span class="dropcap"&gt;I&lt;/span&gt; have used C++ and FLTK to write up a simple tcl script to C++ source code converter. The conversion is quite primitive, but it saves me a lot of time to learn VTK. &lt;br /&gt;&lt;br /&gt;Here is my test version of vtktcl2cpp converter (binary in Windows):&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/vtktcl2cpp_alpha.zip" title="Tool:vtktcl2cpp|VTK: tcl script to cpp source converter" &gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;Features currently supported:&lt;/b&gt; &lt;br&gt; &lt;br /&gt;   Simple GUI or Command line processing (vtktcl2cpp [in.txt] [out.txt] [header.txt])&lt;br&gt;&lt;br /&gt;   Generate header files &lt;br&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Comments are welcomed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-2749030586113913808?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/2749030586113913808/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=2749030586113913808' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/2749030586113913808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/2749030586113913808'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/tool-vtk-tcl-script-to-c-source-code.html' title='VTK: TCL script to C++ source code conversion'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-6560531018004490469</id><published>2007-04-13T06:29:00.000-07:00</published><updated>2007-04-15T16:18:14.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkdata'/><title type='text'>Download VTK data</title><content type='html'>&lt;span class="dropcap"&gt;B&lt;/span&gt;esides download VTK source code from the VTK homepage, we can also download the VTK dataset to help us learning VTK. &lt;br /&gt;&lt;br /&gt;&lt;a href="#" onclick="return GB_show('VTK Data', 'http://public.kitware.com/VTK/get-software.php#latest', 400, 600)"&gt;http://public.kitware.com/VTK/get-software.php#latest&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-6560531018004490469?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/6560531018004490469/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=6560531018004490469' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/6560531018004490469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/6560531018004490469'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/install-download-vtk-data.html' title='Download VTK data'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-2294597009454552007</id><published>2007-04-13T06:20:00.000-07:00</published><updated>2007-04-16T18:03:30.542-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vtkSphereSource'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkArrowSource'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkCubeSource'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkRenderer'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkDiskSource'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkCylinderSource'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkConeSource'/><title type='text'>Multiple vtkRenderers</title><content type='html'>&lt;span class="dropcap"&gt;*&lt;/span&gt;Purpose: Create simple source objects. Demo the functionalities of multiple renderers.&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;!-- Source code: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_mult_renderer.zip" title="Source code" desp="Source code for this project"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;img  class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_mult_renderer.png" /&gt;&lt;/img&gt;&lt;br /&gt;&lt;br /&gt;Many standard objects are used in this demo: cone, sphere, cube, disk, cylinder and arrow.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-2294597009454552007?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/2294597009454552007/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=2294597009454552007' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/2294597009454552007'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/2294597009454552007'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/tutorial-multiple-renderer-in-single.html' title='Multiple vtkRenderers'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-9202361310457422493</id><published>2007-04-13T06:05:00.000-07:00</published><updated>2007-04-16T18:02:28.061-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vtkInteractorStyle'/><category scheme='http://www.blogger.com/atom/ns#' term='vtkSphereSource'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><title type='text'>A simple interactive sphere in VTK</title><content type='html'>&lt;span class="dropcap"&gt;*&lt;/span&gt;Purpose: Create a simple sphere, users can interact with it.&lt;br /&gt;&lt;br /&gt;(Please first follow the VTK installation guide to build VTK from source)&lt;br /&gt;&lt;!-- Source code: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/demo_vtk_simple_sphere.zip" title="Source code" desp="Source code for this project"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img class="tutorial" src="http://code.hkpeterpeter.googlepages.com/demo_vtk_simple_sphere.png" /&gt;&lt;/img&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Basic interaction functionalities: &lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;em&gt;Mouse: zoom, pan, rotate...&lt;br /&gt;'w': wireframe&lt;br /&gt;'s': surface rendering&lt;br /&gt;'p': picking - highlight the bounding box of selected object&lt;br /&gt;'+': increase resolution of the sphere&lt;br /&gt;'-': decrease resolution of the sphere&lt;br /&gt;'c': choose a random color for the sphere&lt;/em&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-9202361310457422493?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/9202361310457422493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=9202361310457422493' title='39 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/9202361310457422493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/9202361310457422493'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/tutorial-create-simple-interactive.html' title='A simple interactive sphere in VTK'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>39</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7170858097677223865.post-4164850720345271702</id><published>2007-04-13T05:53:00.000-07:00</published><updated>2008-05-14T03:03:13.943-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='install'/><category scheme='http://www.blogger.com/atom/ns#' term='Build'/><category scheme='http://www.blogger.com/atom/ns#' term='minimal'/><title type='text'>Build VTK from source in Visual Studio</title><content type='html'>&lt;span class="dropcap"&gt;H&lt;/span&gt;ere is the reference document on how to build VTK from source in Visual Studio and configure Visual Studio IDE&lt;br /&gt;&lt;!-- Install guide: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/vtk_build_vc.pdf" title="Install guide" desp="VTK build from source in Visual Studio"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After you installed VTK and configure Visual Studio IDE. You can use this minimal project file to test your installation.&lt;br /&gt;&lt;!-- Minimal project: --&gt;&lt;br /&gt;&lt;a href="http://code.hkpeterpeter.googlepages.com/vtk_minimal.zip" title="Minimal project" desp="VTK minimal project"&gt;&lt;img src="http://hkpeterpeter.googlepages.com/icon_web_down.png" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7170858097677223865-4164850720345271702?l=vtkblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vtkblog.blogspot.com/feeds/4164850720345271702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7170858097677223865&amp;postID=4164850720345271702' title='35 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/4164850720345271702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7170858097677223865/posts/default/4164850720345271702'/><link rel='alternate' type='text/html' href='http://vtkblog.blogspot.com/2007/04/install-build-vtk-from-source-in-visual.html' title='Build VTK from source in Visual Studio'/><author><name>Peter (admin)</name><uri>http://www.blogger.com/profile/06167999858870718572</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://ihome.ust.hk/~cspeter/web/mypic.JPG'/></author><thr:total>35</thr:total></entry></feed>
