qcring / quickvtk Goto Github PK
View Code? Open in Web Editor NEWA VTK prototyping application based on QtQuick/QML
License: BSD 3-Clause "New" or "Revised" License
A VTK prototyping application based on QtQuick/QML
License: BSD 3-Clause "New" or "Revised" License
Since OpenGL2 is the default rendering backend for VTK >= 7.0, this should be supported in QuickVtk.
if the text exceeds the TextEdit's width, it gets cut off and horizontal scrolling isn't working.
I still haven't figured out the best way of implementing a decent Code Editor in QML...
The QML TextEdit object provides access to a QQuickTextDocument instance, but the docs say that You are not allowed to modify the document...
. So my guess is that the QTextCursor API can't be used for text processing. So there's still some research to do..
I just rebuild the project with VTK 8.2.0 and Qt 5.12.3 on Ubuntu 18.04, and it seems the vtk windows is just 1 white pixel. When I resize it is sometimes shows some weird colored blocks. Do you experience the same on Linux?
src/Core/Vtk/Internal/quickVtkFboOffscreenWindow.cpp:77:19: error: ‘class quick::Vtk::FboOffscreenWindow’ has no member named ‘TextureObjects’; did you mean ‘NoiseTextureObject’
My environment:
Debian 10
g++ 8.3.0-6. I
VTK-8.20
Are these member variables of the parents class (perhaps only using iOS?)
After successful build, qiuckVTK freezes, when you type something in the editor.
Maybe de-activating the Div, when no qml file is opened?
Having all examples available from the application menu is more convenient than loading them from the res directory.
The CMake file demands VTK v7.1.0 but VTK only just recently released 7.0.0.. Am I missing something?
Thanks
How would one reuse a single actor in multiple render windows?
Row {
Vtk.Viewer {
Vtk.Actor { id: actor }
}
Vtk.Viewer {
// same actor
}
}
Of course you could instantiate the same actor twice, but I'd like to load it only once.
Maybe something like this?
Vtk.Actor {
id: actor
...
}
Row {
Vtk.Viewer {
Vtk.ActorReference {
actor: actor
}
}
Vtk.Viewer {
Vtk.ActorReference {
actor: actor
}
}
}
RayCaster not runable.
vtkOpenGLGPUVolumeRayCastMapper.cxx, line 4042
vtkOpenGLGPUVolumeRayCastMapper (0x10d19da00): Rendering failed because the following OpenGL extensions are required but not supported: OpenGL 1.3 is required but not supported
Thanks to José Jaramillo for reporting this issue
Hello,
i'm getting the following error on windows
error: invalid path 'res/fonts/Fira_Code/FiraCode-VariableFont:wght.ttf'
fatal: unable to checkout working tree
i think the filename contains invalid characters in windows
I compiled and ran QuickVtk on Windows using MSVC17 and Qt5.13 and Vtk8.2 with external module built.
I tried to resize the window which lead to the program locking up. It goes into an infinite loop doing re-layouts.
Initially, all glyphs are rendered correctly in QuickVtk. Displaying the viewer (rendering the FBO) for the first time results in font rendering glitches.
The editor text cursor can be moved outside of the visible area. The TextEdit
component should automatically adjust the scroll position so that the cursor remains visible to the user.
This happens when:
CMD
+ Up
)CMD
+ Down
)I've followed the build instructions but when I try to build and run in xcode the build succeeds but when it tries to run it appears to fail on line 72 in quickAppEngine.cpp:
auto rootObject = engine->rootObjects().at(0);
"index out of range"
I've tried with a Qt 12, 13 and the latest 14 with the same result. Happy to help you debug this as good as I can but I have limited experience with c++. If you point me in the right direction I might be able to get somewhere.
Seems like Qt 5.9.1 broke some things in QuickVtk... UI is broken and references to some C++ controllers are missing from the QML side. I'm on it.
Seems like the vtkRenderWindowInteractor causes a crash on Linux systems
The post-build command defined in CMake is not performed in Visual Studio unless the source is changed. This is a problem when editing only *qml files since changes won't be visible in the application until the next modification of c++ code.
The build path of vtk should be QuickVtk/denpendencies/src instead of QuickVtk/lib/src
Specs for the file: link
On Linux, the cmake files because the QuickVTK target isn't defined. I commented out the if
condition on line 130 and it got it to work.
Also, anyone building on Linux needs to define -DCMAKE_CXX_FLAGS="--std=c++11"
Assigning an interactor to the renderer results in a nullptr exception on Windows but works fine on Mac OS X.
Hi, great work!
QuickVtk is one of the few programs I found allowing to embed vtk into a qml application.
It would be interesting to have a standalone library with only the classes needed to embed vtk inside qt/qml. Do you think it would be possible to separate that part from the core of the application?
Thanks!
Is it possible to use vtkplanewidget & vtksplinewidget, etc. ?
When click on QuickVtk.exe, message boxes pop out saying that some dlls are not found, like vtkRenderingExternal-7.1.dll, vtkFiltersTexture-7.1.dll
But I'm sure I have had these DLLs and I have added the path to them to debugging->environment
I build QuickVtk under Windows
Atm "QML_BAD_GUI_RENDER_LOOP" forces the application to run the UI on the main thread because forwarding QML events to VTK crashes the application.
Is it possible to use Vtk9.0.0, since I know Vtk9.0.0 fixed many issues.
Hi Q
I am trying to extend your project by introducing pickers. I am thinking something in the line of
Vtk.Viewer {
Vtk.CellPicker {
id: picker
// automatically registered to parent object
}
Vtk.AxesActor }
id: axes
Component.onCompleted: {
picker.addPicker(axes) // The actor is assigned to the list of pickable objects
}
}
}
How would you recommend distributing the functionality for picking objects between Viewer, Interactor, Renderer?
If you have any input, let me know.
Thanks in advance
Hey,guys!
Can i include this in my project as 3rd party libs? My app is written in qml.
I use CMake 3.16.12.
During configure project, CMake Error at CMakeLists.txt:107 (AddApplicationSources):
Unknown CMake command "AddApplicationSources". error occurred.
I have to disable auto-format function of my code editor when I modify code to keep the code style, a code formatter may help with this.
Clang-tidy is a good choice.
I noticed all QML types like vtk.actor are registered to qmlengine by qmlRegisterType family functions in c++ code.Have you cansidered to make them a standalone QML module use qmldir so everyone can use it in QML like the native QML types without register it in c++ code.?
After I installed, the QuickVTK couldn't find file:///home/matt/workspace/QuickVtk/Resources/qml/App/window.qml: File not found
I found this file in QuickVtk/res/qml/App/window.qml
, so I made a simlink to get around this for now.
Some actions like CMD
+ N
should require a confirmation before dumping text from the editor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.