資源簡介
請注意是源碼!不是書……內容包括書中所有章節相關……

代碼片段和文件信息
#include?“vtkConeSource.h“
#include?“vtkPolyDataMapper.h“
#include?“vtkRenderWindow.h“
#include?“vtkActor.h“
#include?“vtkRenderer.h“
int?main()
{
??//?創建一個圓錐,并設置其參數:高度、底面半徑和分辨率。
??vtkConeSource?*cone?=?vtkConeSource::New();
??cone->SetHeight(?3.0?);
??cone->SetRadius(?1.0?);
??cone->SetResolution(?10?);
??
??//?創建一個多邊形映射器,用于把多邊形數據映射為可被計算機渲染的圖元。
??vtkPolyDataMapper?*coneMapper?=?vtkPolyDataMapper::New();
??coneMapper->SetInputConnection(?cone->GetOutputPort()?);
??//?創建一個演員,并關聯一個映射器,從而確定了演員的形狀。
??vtkActor?*coneActor?=?vtkActor::New();
??coneActor->SetMapper(?coneMapper?);
??//?創建一個渲染器,添加要被渲染的演員,設置背景顏色。
??vtkRenderer?*ren1=?vtkRenderer::New();
??ren1->AddActor(?coneActor?);
??ren1->SetBackground(?0.1?0.2?0.4?);
??//?創建渲染窗口,供渲染器渲染用。
??vtkRenderWindow?*renWin?=?vtkRenderWindow::New();
??renWin->AddRenderer(?ren1?);
??renWin->SetSize(?300?300?);
??//?渲染360次,這里主要是為了延時。
??int?i;
??for?(i?=?0;?i?360;?++i)??renWin->Render();
??
??//?清除對象。
??cone->Delete();
??coneMapper->Delete();
??coneActor->Delete();
??ren1->Delete();
??renWin->Delete();
??return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????435??2010-04-15?15:47??《醫學圖像編程技術》源碼\Code\Chapter?1\1_3\CMakeLists.txt
?????文件???????1347??2010-04-16?16:57??《醫學圖像編程技術》源碼\Code\Chapter?1\1_3\myProject.cxx
?????文件???????1263??2010-04-13?11:07??《醫學圖像編程技術》源碼\Code\Chapter?2\2_01\2_01.cpp
?????文件???????4156??2010-04-26?09:50??《醫學圖像編程技術》源碼\Code\Chapter?2\2_01\2_01.dsp
?????文件????????533??2010-04-13?10:49??《醫學圖像編程技術》源碼\Code\Chapter?2\2_01\2_01.dsw
?????文件??????41984??2010-04-26?10:04??《醫學圖像編程技術》源碼\Code\Chapter?2\2_01\2_01.ncb
?????文件??????51712??2010-04-26?10:03??《醫學圖像編程技術》源碼\Code\Chapter?2\2_01\2_01.opt
?????文件????????980??2010-04-13?11:12??《醫學圖像編程技術》源碼\Code\Chapter?2\2_02\2_02.cpp
?????文件???????4156??2010-04-26?09:51??《醫學圖像編程技術》源碼\Code\Chapter?2\2_02\2_02.dsp
?????文件????????533??2010-04-13?11:10??《醫學圖像編程技術》源碼\Code\Chapter?2\2_02\2_02.dsw
?????文件??????41984??2010-04-26?09:51??《醫學圖像編程技術》源碼\Code\Chapter?2\2_02\2_02.ncb
?????文件??????51712??2010-04-26?09:51??《醫學圖像編程技術》源碼\Code\Chapter?2\2_02\2_02.opt
?????文件???????1621??2010-04-13?12:55??《醫學圖像編程技術》源碼\Code\Chapter?2\2_03\2_03.cpp
?????文件???????4444??2010-04-13?12:56??《醫學圖像編程技術》源碼\Code\Chapter?2\2_03\2_03.dsp
?????文件????????533??2010-04-13?11:13??《醫學圖像編程技術》源碼\Code\Chapter?2\2_03\2_03.dsw
?????文件??????41984??2010-04-26?09:52??《醫學圖像編程技術》源碼\Code\Chapter?2\2_03\2_03.ncb
?????文件??????51712??2010-04-26?09:52??《醫學圖像編程技術》源碼\Code\Chapter?2\2_03\2_03.opt
?????文件???????1417??2010-04-13?12:57??《醫學圖像編程技術》源碼\Code\Chapter?2\2_04\2_04.cpp
?????文件???????4156??2010-04-26?09:53??《醫學圖像編程技術》源碼\Code\Chapter?2\2_04\2_04.dsp
?????文件????????533??2010-04-13?12:56??《醫學圖像編程技術》源碼\Code\Chapter?2\2_04\2_04.dsw
?????文件??????41984??2010-04-26?09:53??《醫學圖像編程技術》源碼\Code\Chapter?2\2_04\2_04.ncb
?????文件??????51712??2010-04-26?09:53??《醫學圖像編程技術》源碼\Code\Chapter?2\2_04\2_04.opt
?????文件???????1808??2010-04-13?12:59??《醫學圖像編程技術》源碼\Code\Chapter?2\2_05\2_05.cpp
?????文件???????4156??2010-04-26?09:54??《醫學圖像編程技術》源碼\Code\Chapter?2\2_05\2_05.dsp
?????文件????????533??2010-04-13?12:58??《醫學圖像編程技術》源碼\Code\Chapter?2\2_05\2_05.dsw
?????文件??????41984??2010-04-26?09:54??《醫學圖像編程技術》源碼\Code\Chapter?2\2_05\2_05.ncb
?????文件??????51712??2010-04-26?09:54??《醫學圖像編程技術》源碼\Code\Chapter?2\2_05\2_05.opt
?????文件???????1535??2010-04-13?13:11??《醫學圖像編程技術》源碼\Code\Chapter?2\2_06\2_06_1\2_06_1.cpp
?????文件???????4180??2010-04-26?09:56??《醫學圖像編程技術》源碼\Code\Chapter?2\2_06\2_06_1\2_06_1.dsp
?????文件????????537??2010-04-13?13:08??《醫學圖像編程技術》源碼\Code\Chapter?2\2_06\2_06_1\2_06_1.dsw
............此處省略612個文件信息
- 上一篇:機械手課程設計
- 下一篇:thinkcmf短信驗證碼插件
評論
共有 條評論