学习VTK优秀培训书.pptVIP

  • 9
  • 0
  • 约9.12千字
  • 约 32页
  • 2017-02-09 发布于江苏
  • 举报
学习VTK优秀培训书

一起学习VTK-第7讲 vol-GetPointData()-SetScalars(scalars); scalars-Delete(); vtkContourFilter *contour = vtkContourFilter::New(); contour-SetInput(vol); contour-SetValue(0,0.0); vtkPolyDataMapper *volMapper = vtkPolyDataMapper::New(); volMapper-SetInput(contour-GetOutput()); volMapper-ScalarVisibilityOff(); vtkActor *volActor = vtkActor::New(); volActor-SetMapper(volMapper); renderer-AddActor(volActor); renderer-SetBackground(1,1,1); renWin-SetSize(450,450); // interact with data renWin-Render(); iren-Start(); // Clean up renderer-Delete(); renWin-Delete(); iren-Delete(); vol-Delete(); scalars-Delete(); contour-Delete(); volMapper-Delete(); volActor-Delete(); return 0; } All Rights Reserved by 水灵 一起学习VTK-第7讲 致谢: 贾富仓 博士,研究员 中科院深圳先进技术研究院 All Rights Reserved by 水灵 Company Logo LOGO Study VTK Together 一起学习VTK All Rights Reserved by 水灵 一起学习VTK-第7讲 主要内容: 1. The Visualization Model 2. vtkDataObject and vtkDataSet 3. Visualization Data All Rights Reserved by 水灵 一起学习VTK-第7讲 The Visualization Model Graphical Data Pictures Graphics pipeline Visualization Data Data Flow Visualization Pipeline is responsible for constructing Geometric representation that is then rendered by the Graphic pipeline. Visualization pipeline All Rights Reserved by 水灵 一起学习VTK-第7讲 Visualization data 可视化数据(Visualization data)的特征: 1. visualization data is discrete. ---Interpolation: linear, quadratic, cubic, spline or other interpolation functions. 2. visualization datas structure may be regular or irregular(alternatively, structured or unstructured). ---regular data can save computer memory; irregular data gives us more freedom in representing data and can represent data that has no regular patterns. 3. visualization data has a topological dimension. ---The dimension of the data is important because it implies appropriate methods for visualization and data representation. All Rights Reserved by 水灵 一起学习VTK-第7讲 The Visualization Model Data Flow

文档评论(0)

1亿VIP精品文档

相关文档