ParaviewWeb學習記錄6——模型顏色問題2

1. vtk的Actor用來描述簡單的圖元,當數據首先讀入,然後filter(數據過濾,即對數據的處理),然後mapper(數據的映射,即把數據映射成爲可以繪製的圖元),最後再對圖形進行繪製;對圖形是通過Actor的GetProperty()來設置屬性,其中GetProperty()的SetColor(R,G,B)用來設置顏色值。


2.對編譯版本的paraview4.1追蹤,在main函數中設置斷點, vtkPLYReader, vtkPolyDataAlgorithm, vtkExecutive, vtkDemandDrivenPipeline, vtkCompsiteDataPipeline, vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, vtkCompsiteDataPipeline, vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, vtkDemandDrivenPipeline, vtkStreamingDemandDrivenPipeline, vtkSISourceProxy, vtkSISourceProxyClientServer, vtkClientServerInterpreter, vtkPVSessionCore, vtkPVSessionBase, vtkSMOutputPort, vtkSMSourceProxy, 然後到qt的函數


3. vtkPLYReader讀入數據,polys渲染信息,this當前模型的信息;面着色的模型,face存儲RGB值以及intensity(亮度),然後將信息保存到RBGCells裏面,通過RGBCells->GetValues()函數可以獲取顏色值;

vtkPolyDataAlgorithm向vtkPLYReader請求數據


4. D:\myWorks\paraView&VTK\ParaView-v4.1.0-source\ParaView-v4.1.0\Web\Core路徑下的vtkPVWebApplication文件定義了核心ParaViewWeb應用程序接口,包括對view的渲染,以及從後臺獲得圖片,還包括WebGL形式。

D:\myWorks\paraView&VTK\ParaView-v4.1.0-source\ParaView-v4.1.0\VTK\IO\PLY路徑下的vtkPLYReader文件,是對ply文件的讀取,要求ply文件有x, y, z 的定義,如果有RGB的定義的話,將讀入,然後存儲scalars。

D:\myWorks\paraView&VTK\ParaView-v4.1.0-source\ParaView-v4.1.0\ParaViewCore\ClientServerCore\Rendering路徑下的vtkGeometryRepresentation用來顯示多邊形幾何體。

D:\myWorks\paraView&VTK\ParaView-v4.1.0-source\ParaView-v4.1.0\ParaViewCore\ClientServerCore\Rendering路徑下的vtkPythonView通過python腳本展示3D圖形。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章