使用/学习 VTK 和 C++ 的开发环境

发布于 2024-08-25 16:49:37 字数 241 浏览 4 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

通知家属抬走 2024-09-01 16:49:37

我使用 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.

生活了然无味 2024-09-01 16:49:37

您可能想查看 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文