Questions tagged [qvtkwidget]

Use this tag for questions related to `qvtkwidget`, a class of the Visualization ToolKit (VTK) within the Qt Framework.

QVTKWidget displays a VTK window in a Qt window.

VTK (The Visualization ToolKit) is an software system for 3D computer graphics, image processing, and visualization. It consists of a C++ class library, and several interpreted interface layers including Tcl/Tk, Java, and Python.

Read more here.

110 questions
0
votes
2 answers

How to create a VTK Chart in a QVTKWidget

I tried now for 2 hours creating a simple chart with vtk without any success. It just does not render anything and I cannot call the view->getRenderer()->render () function. It results in an exception. What I understood so far is: vtkContextView*…
theRealCherry
  • 105
  • 1
  • 11
0
votes
1 answer

access violation exception when use VTK and QT multi-thread

I am using a QVtkWidget in my mainwindow. I generate a vtkRenderer in a new thread and when it is done, I send a signal which connect a slot of mainwindow to send the renderer back and update the QVtkWidget. Unfortunately, I got a "access…
Sun.Y
  • 11
  • 3
0
votes
0 answers

Cmake can't find qt when building vtk

I am getting the following error while trying to build vtk with qt support: CMake Error at CMakeLists.txt:370 (MESSAGE): Qt 4.5.0 or greater not found. Please check the QT_QMAKE_EXECUTABLE variable. this is how I am running cmake: mkdir…
Pendar
  • 81
  • 7
0
votes
1 answer

How to get angle value in vtkAngleWidget class?

I am using Visual Studio C# and i want to get angle with using vtkAngleWidget. VTK Angle Widget Sample - Image public void addAngleWidget() { angleWidget = new vtkAngleWidget(); angleWidget.SetInteractor(this.iren); …
M.Erol
  • 1
  • 1
0
votes
1 answer

change dicom image's window width and window level

Recently, I am working on process dicom image。I don't know how to change the WWWL of a dicom image. Also, I use dcmtk to convert dicom image to bmp and show it(I didn't use vtk to show the image). I really don't know if that is correct. I want to…
0
votes
1 answer

VTK Image slices to volume (C++)

I'm trying to display a volume slices-composed in QT5+VTK 7.0.0. However, I don't know why using vtkImageSlice+vtkImageStack only shows me one slice instead of five slices. This is the code I'm using it: /*This function receives an ultrasound image…
0
votes
0 answers

QVTKWidget error when linking Qt with VTK

I'm having the famous linking error when trying to combine Qt and VTK. I've done all the steps of installing Qt with VTK correctly so I don't know what could possibly be wrong. I'm using windows 8 with Qt5 and VTK 6.3 on visual studio. Here is the…
LBes
  • 3,366
  • 1
  • 32
  • 66
0
votes
0 answers

How to use vtkHardwareSelector?

I am building a simple tool for manipulating point clouds. I want to be able to do do a polygonal selection on mouse move. I am working with VTK 5.10 and QVTKWidget in Ubuntu 12.04. To do this, I built a polygonalSelector class by modifying the…
0
votes
2 answers

Segmentation fault when using graph function (vtk 6.1, Qt5.3, Ubuntu)

Update: Debug info I am working on a Qt 5.3 project and need to plot data in 2D and 3D coordinate systems. I've been looking into vtk 6.1 because it seems very powerful overall and I will also need to visualize image data at a later point. I have…
0
votes
1 answer

QT Qvtkwidget. Interactorstyle change

My application is using qvtkwidget and I'm trying to change its interactorstyle. With its default setting, holding down mouse wheel button moves objects, but I'd like it to be done by mouse right click. Does anyone know how to change it? Thanks.
user3734823
  • 99
  • 1
  • 1
  • 10
0
votes
1 answer

vtk chart - how to draw axis labels at the end of axis lines?

Is it possible to draw axis labels at the end of labels? See picture for details: http://habrastorage.org/files/94f/41a/b18/94f41ab1897a4bde815644bf287b4af9.png If it is possible, how? vtkNew contextView; vtkNew
Anton
  • 575
  • 2
  • 7
  • 27
0
votes
1 answer

QVTKWidgetPlugin makes QT creator crash

I'm trying to use VTK in Qt Creator. In Qt Designer, I have copied thelibQVTKWidgetPlugin.dylib into the plugin directory. Now I can create QVTKWidgets in Designer. However, when I copy libQVTKWidgetPlugin.dylib into the [QT dir]/QT…
0
votes
1 answer

QMainMenu behaves weirdly if QVTKWidget is the central widget of QMainWindow

Ok it took me a while to track this down, but I have no idea how to resolve it. The main menu in my Qt/vtk application is behaving weirdly. Clicking behaviour on the menu is as follows: First click: pop down Second click: pop up Third click: does…
B3ret
  • 597
  • 5
  • 19
0
votes
1 answer

How to apply color to mesh imported from Blender 2.69 to VTK 6.2 + Qt 5.3

I am new to vtk and Qt. I have created a cube in blender with 3 faces red and 1 face green and exported as cube.ply to preserve color information: ply format ascii 1.0 comment Created by Blender 2.69 (sub 0) - www.blender.org, source file:…
Maelstorm
  • 580
  • 2
  • 10
  • 29
0
votes
1 answer

How to draw a line or select something in using qvtkwidget?

I successfully made a program by using qvtkwidget, showing a few lines and points. And everything works perfectly. Next, I want to add an edit mode to my program, so that I can draw a line on it, or select some points or lines from it. Could anyone…
Daniel
  • 2,576
  • 7
  • 37
  • 51