首页 VTK-Designer-User-Manual

VTK-Designer-User-Manual

举报
开通vip

VTK-Designer-User-Manual VTK Designer 2.0 User Manual User Manual, Version 1.0 (Beta) http://www.vcreatelogic.com/oss/vtkdesigner Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 1 of 48 VTK Designer ...

VTK-Designer-User-Manual
VTK Designer 2.0 User Manual User Manual, Version 1.0 (Beta) http://www.vcreatelogic.com/oss/vtkdesigner Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 1 of 48 VTK Designer 2.0 User Manual VTK Designer 2.0, User Manual Version 1.0 Copyright Notice © 2005 – 2007, VCreate Logic (P) Ltd. You are free ● to Share – to copy, distribute and transmit the work. ● to Remix – to adapt the work. Under the following conditions ● For any reuse, remix or distribution, you must make clear to others the license terms of this work. You must also mention the product name “VTK Designer 2”, the company's name “VCreate Logic (P) Ltd” and provide a link to this URL: http://www.vcreatelogic.com/oss/vtkdesigner ● Nothing impacts or restricts the author's moral rights. Trademarks and Copyrights Qt, Qtopia are trademarks of Trolltech ASA (www.trolltech.com) VTK is an open source software managed by Kitware Inc. (www.kitware.com) 3D Touch, ClayTools, FreeForm, FreeForm Concept, FreeForm Modeling, FreeForm Modeling Plus, FreeForm Mold, GHOST, HapticExtender, HapticSound, OpenHaptics, PHANTOM, PHANTOM Desktop, PHANTOM Omni, SensAble, SensAble Technologies, Inc., Splodge, Splodge design, TextureKiln and WebTouch are trademarks or registered trademarks of SensAble Technologies, Inc. (www.sensable.com) “VTK Designer”, “VISEN”, “GCF” are copyrights of VCreate Logic (P) Ltd. (www.vcreatelogic.com) All other brands and product names of their respective owners. Warranties and Disclaimers VCreate Logic does not warrant that this document is error free. This document could contain technical, typographical and other errors. VCreate Logic may make changes to this document at anytime without notice. Questions and Comments If you have questions and comments you can write to info@vcreatelogic.com or support@vcreatelogic.com or drop a snail mail to: VCreate Logic Private Limited, #177, 5th Cross, 50 Feet Road, Opposite BDA Park, Avalahalli, Banashankari III Stage, Bengalooru - 560 085 INDIA Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 2 of 48 VTK Designer 2.0 User Manual Preface This guide explains the usage aspects of “VTK Designer 2” from VCreate Logic. The document will help you understand the user interface of VTK Designer, create visualization networks, execute them, script them, import and script custom UI forms. What is VTK Designer? VTK Designer is a platform for creating, configuring and developing VTK applications to perform scientific/data visualization. VTK or Visualization Toolkit is an open source 3D scientific C++ visualization framework founded and managed by Kitware, and developed by a world wide team of visualization experts. While VTK requires you to program visualization networks in C++, VTK Designer helps you to graphically assemble VTK components. History VTK Designer started off as an open source project in the year 2004. The first release of VTK Designer was made in October of 2004. Since then five new revisions of VTK Designer were made, each revision only added a few bug fixes and features. From January 2007, the core team of VTK Designer began working on a new version that would enhance the visualization experience for its users. As a result of all these efforts, today we have VTK Designer 2. Purpose VTK is a fantastic C++ framework for performing 3D visualization. Several software systems have been written to visualize data for different domains. Kitware has Paraview which is a powerful, general purpose data visualization system. While these systems make it easy to visualize data, it can be tricky to assemble a custom visualization scenario. The founders of the “VTK Designer” project wanted to develop a system that would help its users to custom assemble a visualization scenario and program it to achieve their goals. In many ways “VTK Designer” is like Visual Basic, but for the 3D Visualization world. It provides simple drag and drop mechanisms to create visualization networks and execute them. It also provides an inbuilt script editor and script evaluator to program the network for achieving custom results. Audience This document is targeted at people who have had some experience in 3D programming. While knowledge of VTK is surely a plus point, it is not however absolutely necessary to understand the content of this manual. However this manual does not dwell into the science of visualization or VTK itself. Related concepts are introduced as and when required, but an in depth description is beyond the scope of this manual. If you have any questions on VTK Designer, you can always write an email to us at info@vcreatelogic.com or support@vcreatelogic.com Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 3 of 48 VTK Designer 2.0 User Manual We encourage to learn VTK to truly capture the power of VTK Designer. We encourage you to read “The Visualization Toolkit An Object-Oriented Approach To 3D Graphics, 4th Edition” to learn about VTK. This book is written by Will Schroeder, Ken Martin and Bill Lorensen and is available from Kitware itself. The book comes with a CDROM media that has the complete source code and API documentation for VTK 5.0.2. Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 4 of 48 VTK Designer 2.0 User Manual TABLE OF CONTENTS VTK Designer 2.0, User Manual Version 1.0..........................................................................................................................2 Copyright Notice...........................................................................................................................................................................2 Trademarks and Copyrights........................................................................................................................................................2 Warranties and Disclaimers......................................................................................................................................................2 Questions and Comments.........................................................................................................................................................2 Preface....................................................................................................................................................................3 What is VTK Designer?..............................................................................................................................................................3 History.............................................................................................................................................................................................3 Purpose............................................................................................................................................................................................3 Audience.........................................................................................................................................................................................3 Introducing the VTK Designer User Interface...............................................................................................7 Elements of the user interface...................................................................................................................................................7 VTK Designer Components......................................................................................................................................................9 Cone Source – Your First Pipeline in VTK Designer..................................................................................11 Visualizing a Cone in 3D.........................................................................................................................................................11 Step by step walkthrough...........................................................................................................................................................12 Wrapper Classes and Class Factories....................................................................................................................................16 Wrapper Classes..........................................................................................................................................................................16 Wrapper Class Factory................................................................................................................................................................16 Editing the “Cone Source” pipeline.......................................................................................................................................17 Animating the cone using ECMA Scripts.............................................................................................................................19 Importing QtDesigner forms..................................................................................................................................................22 Loading and Saving Pipelines................................................................................................................................................25 Summary....................................................................................................................................................................................25 Mathematical Function Visualization............................................................................................................26 Visualizing mathematical functions......................................................................................................................................26 Union, Difference and Intersection of mathematical functions.........................................................................................27 Extracting multiple surfaces in a function............................................................................................................................28 Improving the visual appearance...........................................................................................................................................30 Visualizing custom mathematical functions........................................................................................................................31 Visualizing Meshes, Line Sets and Point Sets.............................................................................................35 Source Algorithms....................................................................................................................................................................35 Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 5 of 48 VTK Designer 2.0 User Manual PointSet Source Algorithms....................................................................................................................................................... 35 LineSet Source Algorithms.........................................................................................................................................................36 Polygonal Dataset Source Algorithms......................................................................................................................................36 Image Dataset Sources................................................................................................................................................................ 37 Filter Algorithms.......................................................................................................................................................................38 Mapper Algorithms..................................................................................................................................................................38 Custom Sources.........................................................................................................................................................................39 Summary....................................................................................................................................................................................41 Data Set Filters in VTK Designer................................................................................................................... 42 Glyph Filter................................................................................................................................................................................42 Clipping Filter...........................................................................................................................................................................43 Custom Filters...........................................................................................................................................................................44 Summary....................................................................................................................................................................................48 Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 6 of 48 VTK Designer 2.0 User Manual Introducing the VTK Designer User Interface The user interface for VTK Designer is designed to help its users develop complex visualization scenarios and to allow deployment of custom visualization applications on it. Towards this the UI looks both like an integrated development environment and like a application shell. In this chapter we introduce the user interface of VTK Designer. When VTK Designer is started for the first time, it would look like the window shown below. Elements of the user interface. The User interface consists of 1. A Menu Strip on which all UI actions are attractively placed. 2. A Tool Box on which you can find tools and options exposed by different components of VTK Designer. Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 7 of 48 VTK Designer 2.0 User Manual 3. A Workspace on which you can find all sorts of editors and output viewers. 4. A Configuration Panel where you can configure objects chosen in the “Visualization System Canvas” 5. A Message Area where debug, warning and critical messages from all components in VTK Designer are shown. Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 8 of 48 VTK Designer 2.0 User Manual 6. A pipeline progress monitor panel that shows the processing time consumed by different algorithms in the visualization network. VTK Designer Components VTK Designer is composed of several components. The Generic Component Framework (or GCF)1 provides the necessary software infrastructure to assemble VTK Designer from its components. The basic VTK Designer comes with the following components 1. VTK Designer IDE 2. Class Explorer 3. Visualization System Canvas 4. VTK Class Factory 5. Property Editor 6. Message Log Window 7. Configuration Dialog Box. 8. Project Manager. 9. Scripting Environment VTK Designer's About Box shows you the list of available components 1 GCF is an award winning Qt based UI component framework from VCreate Logic. GCF is available under the GNU/GPL v2 License. You can download it from http://www.vcreatelogic.com/oss/gcf. Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 9 of 48 VTK Designer 2.0 User Manual We also have custom components for that will help enhance your experience with VTK Designer and also allows you to do more than just assembling visualization networks. 1. Reporting Framework (not for release yet) Using the reporting framework, you can create PDF reports consisting of detailed technical information from your visualization experiment. More about this in a later chapter. 2. OpenHaptics Integration (not for release yet) Using the OpenHaptics Integration plugin, you will be able to use SensAble Technology's Haptic Devices with their OpenHaptics toolkit to haptically render your visualization on to the device. This means that you will be able to touch and feel your visualization and also perform meaningful haptics visualization. More about this in a later chapter. 3. Distributed/Parallel Visualization (not for release yet) Using the Distributed/Parallel Visualization plugin, you will be able to split your visualization network into several nodes in your cluster or into several processes on your local system to speed your visualization processes. 4. Volumetric Visualization Support (not for release yet) Using the Volumetric Visualization plugin, you will be able to perform volumetric visualization using specialized ray tracing algorithms from VTK. Copyright: VCreate Logic (P) Ltd, Bangalore, India www.vcreatelogic.com 10 of 48 VTK Designer 2.0 User Manual Cone Source – Your First Pipeline in VTK Designer The primary purpose of VTK Designer is to help construct complex visualization networks or pipelines consisting of VTK algorithms to perform a visualization task. A pipeline, in VTK, consists of the following elements 1. Data Source: The source forms the starting point of visualization. As the name suggests the source provides data that needs to be visualized. The data source can provide this data by reading a file, socket or any input device; or by mathematically evaluating an equation. The function of the source it to simply provide raw data. 2. Data Filter: Data sources may provide unwanted data at times. A data filter takes the data provided by the source, and filters out the unwanted data in it. The filtered data can then be passed on to the next stages in the pipeline. 3. Mapper: A mapper is the geometric representation of an actor. 4. Actor: An actor represents an object rendered in the scene, along with its properties and position. It can be treated as logical entity in the scene. 5. Renderer: A renderer coordinates the rendering process involving lights, cameras and actors. 6. Render Window: Manages a window on the display device, where the rendered graphics will be draw. The above elements when connected in sequence forms a pipeline. When elements of the type described above are brought together, connected appropriately and executed, we can perform some meaningful visualization. Visualizing a Cone in 3D Using the concepts learned so far lets visualize a 3D cone. To do this we need the following algorithms. 1. vtkConeSource : This algorithm in VTK generates the data required to visualize a cone. 2. vtkPolyDataMapper : This algorithm accepts the data generated by vtkConeSource and renders it into OpenGL. 3. vtkActor : This algorithm sets the material properties for the cone object. 4. vtkRenderer : This algorithm prepares the OpenGL viewport into which the actor would be rendered. Essentially it sets up the lights and camera. 5. vtkRenderWindow : This algorithm provides a rectangular space on to which all the output is d
本文档为【VTK-Designer-User-Manual】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
下载需要: 免费 已有0 人下载
最新资料
资料动态
专题动态
is_745490
暂无简介~
格式:pdf
大小:2MB
软件:PDF阅读器
页数:48
分类:互联网
上传时间:2011-08-14
浏览量:27