使用/学习 VTK 和 C++ 的开发环境
我是 VTK 和 C++ 的新手(但精通概念/Java 等)。我最终需要在我的项目中同时使用 QT 和 VTK。我想知道是否有类似 VTK Designer 的 VTK 开发环境或编辑器(使用 C++) ?对于 VTK Designer,我非常失望,因为没有将 VTK 输出转换为 C++ 代码的功能。
I am a newbie with VTK and C++ (but am well versed in the concepts/Java etc). I will eventually need to use both QT and VTK for my project. I would like to know if there is a development environment or editor for VTK (using C++) similar to VTK Designer? With VTK Designer I am very disappointed that there is no feature to convert the VTK output into C++ code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 VTK/Qt 一段时间了,我怀疑是否有像 VTK Designer 这样的东西可以将管道转换为 C++ 代码。
一切都需要手动编码 - 而且相当简单。如果您不确定管道的确切 C++ 实现,我建议您查看 VTK 示例/测试 http://www.vtk.org/doc/nightly/html/classes.html
例如,如果您想为流线实现 vtkStreamLine 过滤器,请转至 Doxygen 页面类( http://www.vtk.org/doc/nightly/html /classvtkStreamLine.html )并单击 “测试”链接查看该类的现有实现,其中包含如何设置管道的示例。
I've been working with VTK/Qt for a while, and I doubt there is something like VTK Designer that will convert a pipeline to C++ code.
Everything will need to be hand coded in - and its fairly simple. If you are not sure about the exact C++ implementation of your pipeline, I recommend looking at the VTK samples / tests at http://www.vtk.org/doc/nightly/html/classes.html
For example, if you would like to implement the vtkStreamLine filter for streamlines, go to the Doxygen page for the class ( http://www.vtk.org/doc/nightly/html/classvtkStreamLine.html ) and click on the "Tests" link to look at existing implementations of the class that has examples of how to setup the pipeline.
您可能想查看 VTK 示例,因为它们提供了大量示例(主要是 C++ 语言) )。您还可以查看您感兴趣的类的 Doxygen 页面、测试和示例。
ParaView 使用 VTK ,您可以跟踪在 ParaView 中所做的操作以获取 Python 代码(工具 -> Python Shell -> 跟踪)。我认为 ParaView 及其跟踪功能可能会让您接近您想要的。当然还有其他资源,例如 VTK 书籍、wiki、邮件列表等。
You might want to check out the VTK examples as they provide numerous examples (largely in C++). You can also look at the Doxygen pages, tests and examples for the classes you are interested in.
ParaView uses VTK, and you can trace what you do in ParaView to get Python code out (Tools->Python Shell->Trace). I think ParaView with its trace functionality may get you close to what you want. There are of course other resources such as the VTK books, wiki, mailing lists, etc.