ImageVerifierCode 换一换
格式:DOCX , 页数:24 ,大小:705.63KB ,
资源ID:7928915      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-7928915.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(VTK62 在VS下亲手安装过程Word文档格式.docx)为本站会员(b****4)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

VTK62 在VS下亲手安装过程Word文档格式.docx

1、VTK下载地址:http:/www.cmake.orgvtk-6.2.0.zip 源程序vtkdata-5.0.4.zip 数据下载cmake文件网址为http:/www.itk.org/HTML/Download.php 依然选择了版本较低的2.4.x版本。注意:此版本不支持QT4版本。但最新的cmake2.8版本支持QT4。3,安装cmake建议在安装过程中选择 Add CMake to the system PATH for all users建议将安装路径改为C:CMake然后Next。安装完毕。4,解压VTK相关文件建议在D盘根目下建立名为MyVtkProjects的文件夹并在MyV

2、tkProjects文件夹下新建VTK-bin文件夹。将vtk-6.0.zip解压缩到D:MyVtkProjectsVTK-src将vtkdata-5.0.4.zip 解压缩到D:MyVtkProjectsVTK-srcvtkdata设置sourse code目录为D:MyVtkProjectsVTK-src, build目录为D:MyVtkProjectsVTK-bin 按 configure 按钮,cmake 软件会让你选择需要使用的编译器,这里我们选vs2008,然后cmake会描所需要的文件,停下来之后,我们就可以修改 cmake选项了。6,Vs环境设置 经过上述步骤后,在D:MyVt

3、kProjectsVTK-bin目录下会生成VTK.sln文件,用Vs2008打开,直接build当出现Build All 之后,将C:vtkbinbinDebug里生成的dll文件都拷到windows/system目录下。(在camke中BUILD_SHARED_LIBS参数选择了ON)打开C:vtkbinExamplesAllVTKExamples.dsw,选择Cone项目(Cone classes),右键set as active project(设为活动工程),然后,build,run. 这时应该能正确运行了。 工程-设置,打开如下界面修改Project setting(设置)-C/C

4、+ -Category(分类)-Preprocessor(预处理器)-Additional include directories(附加包含路径):Vtk自带例子中include配置D:MyVtkProjectsVTK-installincludevtk-6.2MyVtkProjectsVTK-binImagingCore;MyVtkProjectsVTK-srcImagingCore;MyVtkProjectsVTK-binCommonDataModel;MyVtkProjectsVTK-srcCommonDataModel;MyVtkProjectsVTK-binCommonMath;My

5、VtkProjectsVTK-srcCommonMath;MyVtkProjectsVTK-binCommonCore;MyVtkProjectsVTK-srcCommonCore;MyVtkProjectsVTK-binUtilitiesKWSys;MyVtkProjectsVTK-srcUtilitiesKWSys;MyVtkProjectsVTK-binCommonMisc;MyVtkProjectsVTK-srcCommonMisc;MyVtkProjectsVTK-binCommonSystem;MyVtkProjectsVTK-srcCommonSystem;MyVtkProjec

6、tsVTK-binCommonTransforms;MyVtkProjectsVTK-srcCommonTransforms;MyVtkProjectsVTK-binCommonExecutionModel;MyVtkProjectsVTK-srcCommonExecutionModel;MyVtkProjectsVTK-binRenderingCore;MyVtkProjectsVTK-srcRenderingCore;MyVtkProjectsVTK-binCommonColor;MyVtkProjectsVTK-srcCommonColor;MyVtkProjectsVTK-binFil

7、tersExtraction;MyVtkProjectsVTK-srcFiltersExtraction;MyVtkProjectsVTK-binFiltersCore;MyVtkProjectsVTK-srcFiltersCore;MyVtkProjectsVTK-binFiltersGeneral;MyVtkProjectsVTK-srcFiltersGeneral;MyVtkProjectsVTK-binCommonComputationalGeometry;MyVtkProjectsVTK-srcCommonComputationalGeometry;MyVtkProjectsVTK-

8、binFiltersStatistics;MyVtkProjectsVTK-srcFiltersStatistics;MyVtkProjectsVTK-binImagingFourier;MyVtkProjectsVTK-srcImagingFourier;MyVtkProjectsVTK-binThirdPartyalglib;MyVtkProjectsVTK-srcThirdPartyalglib;MyVtkProjectsVTK-binFiltersGeometry;MyVtkProjectsVTK-srcFiltersGeometry;MyVtkProjectsVTK-binFilte

9、rsSources;MyVtkProjectsVTK-srcFiltersSources;MyVtkProjectsVTK-binRenderingVolume;MyVtkProjectsVTK-srcRenderingVolume;VTK自带例子中的linker lib配置$(NOINHERIT) kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib D:MyVtkProjectsVTK-binlibRelease

10、vtkFiltersSources-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonComputationalGeometry-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonDataModel-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonMath-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonCore-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtks

11、ys-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonMisc-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonSystem-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonTransforms-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkFiltersGeneral-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkFiltersCore-6.2.lib D:MyVt

12、kProjectsVTK-binlibReleasevtkCommonExecutionModel-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkInteractionStyle-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkFiltersExtraction-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkFiltersStatistics-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkImagingFourier-6.2.lib D:

13、MyVtkProjectsVTK-binlibReleasevtkImagingCore-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkalglib-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkRenderingCore-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkCommonColor-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkFiltersGeometry-6.2.lib D:MyVtkProjectsVTK-binlibR

14、eleasevtkRenderingOpenGL-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkImagingHybrid-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkIOImage-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkDICOMParser-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkIOCore-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkzlib-6.2.lib D:MyVt

15、kProjectsVTK-binlibReleasevtkmetaio-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkjpeg-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtkpng-6.2.lib D:MyVtkProjectsVTK-binlibReleasevtktiff-6.2.lib ws2_32.lib Psapi.lib comctl32.lib wsock32.lib glu32.lib opengl32.lib参考:MyVtkProjectsVTK-srcIO;MyVtkProjectsVTK-bi

16、n;MyVtkProjectsVTK-srcRendering;MyVtkProjectsVTK-srcGraphics;MyVtkProjectsVTK-srcVolumeRendering;MyVtkProjectsVTK-srcImaging;MyVtkProjectsVTK-srcHybrid;MyVtkProjectsVTK-srcGUISupport;MyVtkProjectsVTK-srcParallel;MyVtkProjectsVTK-srcWidgets;MyVtkProjectsVTK-installlib; D:MyVtkProjectsVTK-installinclu

17、devtk-6.2;MyVtkProjectsVTK-srcCharts;MyVtkProjectsVTK-srcGeovis;MyVtkProjectsVTK-srcInfovis;MyVtkProjectsVTK-srcTextAnalysis;MyVtkProjectsVTK-srcViews来源C:vtkvtkGenericFiltering,C:vtkvtkCommon,C:vtkvtkIO,C:vtkvtkFiltering,C:vtkbin,C:vtkvtkRendering,C:vtkvtkGraphics,C:vtkvtkVolumeRendering,C:vtkvtkIma

18、ging,C:vtkvtkHybrid,C:vtkvtkGUISupport,C:vtkvtkincludevtk-5.0,C:vtkvtkParallel,C:vtkvtklib,C:vtkvtkWidgets 修改Project setting(设置)-Link(连接)-Input(输入)-Object/library modules(对象/库模块):opengl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib

19、uuid.lib odbc32.lib vtkCommon.lib vtkDICOMParser.lib vtkexoIIc.lib vtkexpat.lib vtkFiltering.lib vtkfreetype.lib vtkftgl.lib vtkGenericFiltering.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vtkjpeg.lib vtkNetCDF.lib vtkpng.lib vtkRendering.lib vtksys.lib vtktiff.lib vtkVolumeRendering.

20、lib vtkWidgets.lib vtkzlib.lib还有Additional library path(附加库路径):C:vtkbinbinDebug 新建一个project, win32 console application, an empty project, 生成后给source files加一个myVTK,把下面的代码放进去:#include vtkConeSource.hvtkPolyDataMapper.hvtkRenderWindow.hvtkCamera.hvtkActor.hvtkRenderer.hvtkProperty.hint main() vtkConeSo

21、urce *cone = vtkConeSource:New(); cone-SetHeight( 3.0 );SetRadius( 1.0 );SetResolution( 10 ); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper: coneMapper-SetInputConnection( cone-GetOutputPort() ); vtkActor *coneActor = vtkActor: coneActor-SetMapper( coneMapper ); vtkRenderer *ren1= vtkRenderer: r

22、en1-AddActor( coneActor );SetBackground( 0.1, 0.2, 0.4 ); vtkRenderWindow *renWin = vtkRenderWindow: renWin-AddRenderer( ren1 );SetSize( 300, 300 ); int i; for (i = 0; i Render(); ren1-GetActiveCamera()-Azimuth( i ); Delete(); return 0;在编译之前,进行上一步说的配置好了,编译,运行。祝你好运!大家可参考一下附加的原作者的网页。同时还打包了在VC下配置的txt文件、cmake安装程序,以及vc的验证程序myVTK。 注意,这里有问题,我照样把代码考进去,但是运行的时候总说:无法打开包括文件:“vtkConeSo

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2