[zlf@localhost build]$
[zlf@localhost build]$
[zlf@localhost build]$ gdb ITK_VTK_QT_SLOT
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-100.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/zlf/Documents/ITK_VTK_QT_SLOT/build/ITK_VTK_QT_SLOT...done.
(gdb) l
warning: Source file is more recent than executable.
1 #include "itk_vtk_qt_slot.h"
2 #include <QApplication>
3
4
5
6 int main(int argc, char *argv[])
7 {
8 QApplication a(argc, argv);
9 int b = 1;
10 //创建一个 ITK_VTK_QT_SLOT 类的对象 w
(gdb) l
11 ITK_VTK_QT_SLOT w(b);
12 w.show();
13
14 return a.exec();
15 }
(gdb) b 8
Breakpoint 1 at 0x449c59: file /home/zlf/Documents/ITK_VTK_QT_SLOT/main.cpp, line 8.
(gdb) r
Starting program: /home/zlf/Documents/ITK_VTK_QT_SLOT/build/ITK_VTK_QT_SLOT
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Breakpoint 1, main (argc=1, argv=0x7fffffffe068) at /home/zlf/Documents/ITK_VTK_QT_SLOT/main.cpp:8
8 QApplication a(argc, argv);
Missing separate debuginfos, use: debuginfo-install expat-2.1.0-10.el7_3.x86_64 freetype-2.4.11-15.el7.x86_64 glib2-2.50.3-3.el7.x86_64 glibc-2.17-196.el7.x86_64 graphite2-1.3.10-1.el7_3.x86_64 harfbuzz-1.3.2-1.el7.x86_64 libICE-1.0.9-9.el7.x86_64 libSM-1.2.2-2.el7.x86_64 libX11-1.6.5-1.el7.x86_64 libXau-1.0.8-2.1.el7.x86_64 libXdamage-1.1.4-4.1.el7.x86_64 libXext-1.3.3-3.el7.x86_64 libXfixes-5.0.3-1.el7.x86_64 libXt-1.1.5-3.el7.x86_64 libXxf86vm-1.1.4-1.el7.x86_64 libdrm-2.4.74-1.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libicu-50.1.2-15.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64 libselinux-2.5-11.el7.x86_64 libstdc++-4.8.5-16.el7.x86_64 libuuid-2.23.2-43.el7.x86_64 libxcb-1.12-1.el7.x86_64 libxshmfence-1.2-1.el7.x86_64 mesa-libGL-17.0.1-6.20170307.el7.x86_64 mesa-libGLU-9.0.0-4.el7.x86_64 mesa-libglapi-17.0.1-6.20170307.el7.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) n
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
[New Thread 0x7fffc78a9700 (LWP 25618)]
[New Thread 0x7fffbdba3700 (LWP 25619)]
[New Thread 0x7fffbd3a2700 (LWP 25620)]
9 int b = 1;
Missing separate debuginfos, use: debuginfo-install PackageKit-gtk3-module-1.1.5-1.el7.centos.x86_64 at-spi2-atk-2.22.0-2.el7.x86_64 at-spi2-core-2.22.0-1.el7.x86_64 atk-2.22.0-3.el7.x86_64 cairo-1.14.8-2.el7.x86_64 cairo-gobject-1.14.8-2.el7.x86_64 dbus-libs-1.6.12-17.el7.x86_64 fontconfig-2.10.95-11.el7.x86_64 gdk-pixbuf2-2.36.5-1.el7.x86_64 gtk3-3.22.10-4.el7.x86_64 gvfs-client-1.30.4-3.el7.x86_64 libXcomposite-0.4.4-4.1.el7.x86_64 libXcursor-1.1.14-8.el7.x86_64 libXi-1.7.9-1.el7.x86_64 libXinerama-1.1.3-2.1.el7.x86_64 libXrandr-1.5.1-2.el7.x86_64 libXrender-0.9.10-1.el7.x86_64 libblkid-2.23.2-43.el7.x86_64 libcanberra-0.30-5.el7.x86_64 libcanberra-gtk3-0.30-5.el7.x86_64 libepoxy-1.3.1-1.el7.x86_64 libffi-3.0.13-18.el7.x86_64 libmount-2.23.2-43.el7.x86_64 libogg-1.3.0-7.el7.x86_64 libtdb-1.3.12-2.el7.x86_64 libthai-0.1.14-9.el7.x86_64 libtool-ltdl-2.4.2-22.el7_3.x86_64 libvorbis-1.3.3-8.el7.x86_64 mesa-libEGL-17.0.1-6.20170307.el7.x86_64 mesa-libgbm-17.0.1-6.20170307.el7.x86_64 nss-softokn-freebl-3.28.3-8.el7_4.x86_64 pango-1.40.4-1.el7.x86_64 pixman-0.34.0-1.el7.x86_64
(gdb) s
11 ITK_VTK_QT_SLOT w(b);
(gdb) s
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:19
19 ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT(int b)
(gdb) s
QFlags<Qt::WindowType>::QFlags (this=0x7fffffffde90)
at /home/zlf/mySoftware/qt-everywhere-opensource-src-5.8.0_Install/include/QtCore/qflags.h:118
118 Q_DECL_CONSTEXPR inline QFlags(Zero = Q_NULLPTR) Q_DECL_NOTHROW : i(0) {}
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:21
21 this->ui = new Ui_ITK_VTK_QT_SLOT;
(gdb) s
22 this->ui->setupUi(this);
(gdb) s
Ui_ITK_VTK_QT_SLOT::setupUi (this=0xcd1ca0, ITK_VTK_QT_SLOT=0x7fffffffdf10)
at /home/zlf/Documents/ITK_VTK_QT_SLOT/build/ui_itk_vtk_qt_slot.h:48
48 if (ITK_VTK_QT_SLOT->objectName().isEmpty())
(gdb) n
49 ITK_VTK_QT_SLOT->setObjectName(QStringLiteral("ITK_VTK_QT_SLOT"));
(gdb) n
50 ITK_VTK_QT_SLOT->resize(553, 523);
(gdb) n
51 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
(gdb) n
52 sizePolicy.setHorizontalStretch(0);
(gdb) n
53 sizePolicy.setVerticalStretch(0);
(gdb) n
54 sizePolicy.setHeightForWidth(ITK_VTK_QT_SLOT->sizePolicy().hasHeightForWidth());
(gdb) n
55 ITK_VTK_QT_SLOT->setSizePolicy(sizePolicy);
(gdb) n
56 actionImage = new QAction(ITK_VTK_QT_SLOT);
(gdb) n
57 actionImage->setObjectName(QStringLiteral("actionImage"));
(gdb) n
58 centralWidget = new QWidget(ITK_VTK_QT_SLOT);
(gdb) n
59 centralWidget->setObjectName(QStringLiteral("centralWidget"));
(gdb) n
60 QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Expanding);
(gdb) n
61 sizePolicy1.setHorizontalStretch(0);
(gdb) n
62 sizePolicy1.setVerticalStretch(0);
(gdb) n
63 sizePolicy1.setHeightForWidth(centralWidget->sizePolicy().hasHeightForWidth());
(gdb) n
64 centralWidget->setSizePolicy(sizePolicy1);
(gdb) n
65 horizontalLayout = new QHBoxLayout(centralWidget);
(gdb) n
66 horizontalLayout->setSpacing(6);
(gdb) n
67 horizontalLayout->setContentsMargins(11, 11, 11, 11);
(gdb) n
68 horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
(gdb) n
69 gridLayout = new QGridLayout();
(gdb) n
70 gridLayout->setSpacing(6);
(gdb) n
71 gridLayout->setObjectName(QStringLiteral("gridLayout"));
(gdb) n
72 widget_2 = new QVTKWidget(centralWidget);
(gdb) n
73 widget_2->setObjectName(QStringLiteral("widget_2"));
(gdb) n
74 QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
(gdb) n
75 sizePolicy2.setHorizontalStretch(0);
(gdb) n
76 sizePolicy2.setVerticalStretch(0);
(gdb) n
77 sizePolicy2.setHeightForWidth(widget_2->sizePolicy().hasHeightForWidth());
(gdb) n
78 widget_2->setSizePolicy(sizePolicy2);
(gdb) n
80 gridLayout->addWidget(widget_2, 0, 1, 1, 1);
(gdb) n
82 widget = new QVTKWidget(centralWidget);
(gdb) n
83 widget->setObjectName(QStringLiteral("widget"));
(gdb) n
84 sizePolicy2.setHeightForWidth(widget->sizePolicy().hasHeightForWidth());
(gdb) n
85 widget->setSizePolicy(sizePolicy2);
(gdb) n
87 gridLayout->addWidget(widget, 0, 0, 1, 1);
(gdb) n
89 widget_3 = new QVTKWidget(centralWidget);
(gdb) n
90 widget_3->setObjectName(QStringLiteral("widget_3"));
(gdb) n
91 sizePolicy2.setHeightForWidth(widget_3->sizePolicy().hasHeightForWidth());
(gdb) n
92 widget_3->setSizePolicy(sizePolicy2);
(gdb) n
94 gridLayout->addWidget(widget_3, 1, 0, 1, 1);
(gdb) n
96 widget_4 = new QVTKWidget(centralWidget);
(gdb) n
97 widget_4->setObjectName(QStringLiteral("widget_4"));
(gdb) n
98 sizePolicy2.setHeightForWidth(widget_4->sizePolicy().hasHeightForWidth());
(gdb) n
99 widget_4->setSizePolicy(sizePolicy2);
(gdb) n
101 gridLayout->addWidget(widget_4, 1, 1, 1, 1);
(gdb) n
104 horizontalLayout->addLayout(gridLayout);
(gdb) n
106 ITK_VTK_QT_SLOT->setCentralWidget(centralWidget);
(gdb) n
107 menuBar = new QMenuBar(ITK_VTK_QT_SLOT);
(gdb) n
[New Thread 0x7fffb7370700 (LWP 25923)]
108 menuBar->setObjectName(QStringLiteral("menuBar"));
(gdb) n
109 menuBar->setGeometry(QRect(0, 0, 553, 28));
(gdb) n
110 menuFile = new QMenu(menuBar);
(gdb) n
111 menuFile->setObjectName(QStringLiteral("menuFile"));
(gdb) n
112 menuNew = new QMenu(menuFile);
(gdb) n
113 menuNew->setObjectName(QStringLiteral("menuNew"));
(gdb) n
114 ITK_VTK_QT_SLOT->setMenuBar(menuBar);
(gdb) n
115 mainToolBar = new QToolBar(ITK_VTK_QT_SLOT);
(gdb) n
116 mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
(gdb) n
117 ITK_VTK_QT_SLOT->addToolBar(Qt::TopToolBarArea, mainToolBar);
(gdb) n
118 statusBar = new QStatusBar(ITK_VTK_QT_SLOT);
(gdb) n
119 statusBar->setObjectName(QStringLiteral("statusBar"));
(gdb) n
120 ITK_VTK_QT_SLOT->setStatusBar(statusBar);
(gdb) n
122 menuBar->addAction(menuFile->menuAction());
(gdb) n
123 menuFile->addAction(menuNew->menuAction());
(gdb) n
124 menuNew->addAction(actionImage);
(gdb) n
126 retranslateUi(ITK_VTK_QT_SLOT);
(gdb) n
128 QMetaObject::connectSlotsByName(ITK_VTK_QT_SLOT);
(gdb) n
129 } // setupUi
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:26
26 const unsigned int Dimension = 2; //定义图像维数
(gdb) n
35 ReaderType::Pointer reader = ReaderType::New();
(gdb) n
37 const char * filename1 = "/home/zlf/Documents/VTK/VTKCODE/ITKReadWrite_VTKShow/娄倬瑜1.jpg";
(gdb) n
39 reader->SetFileName( filename1 );
(gdb) n
41 reader->Update();
(gdb) n
48 itkTovtkFilterType::Pointer itkTovtkImageFilter = itkTovtkFilterType::New();
(gdb) n
49 itkTovtkImageFilter->SetInput(reader->GetOutput());//设置图像数据从ITK转向VTK
(gdb) n
50 itkTovtkImageFilter->Update();
(gdb) n
54 vtkSmartPointer <vtkImageFlip> imageflip =vtkSmartPointer<vtkImageFlip>::New();
(gdb) n
55 imageflip->SetInputData(itkTovtkImageFilter->GetOutput());
(gdb) n
56 imageflip->SetFilteredAxes(1);//Y轴
(gdb) n
57 imageflip->Update();
(gdb) n
[New Thread 0x7fffb6739700 (LWP 25924)]
[Thread 0x7fffb6739700 (LWP 25924) exited]
62 vtkImageViewer2 *viewer1 = vtkImageViewer2::New();
(gdb) s
vtkImageViewer2::New () at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:31
31 vtkStandardNewMacro(vtkImageViewer2);
(gdb) s
vtkImageViewer2::vtkImageViewer2 (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:34
34 vtkImageViewer2::vtkImageViewer2()
(gdb) s
vtkObject::vtkObject (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObject.cxx:139
139 vtkObject::vtkObject()
(gdb) s
vtkObjectBase::vtkObjectBase (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObjectBase.cxx:74
74 vtkObjectBase::vtkObjectBase()
(gdb) s
vtkAtomic<int>::vtkAtomic (this=0xd8de08) at /home/zlf/mySoftware/VTK-7.1.1_build/Common/Core/vtkAtomic.h:361
warning: Source file is more recent than executable.
361 vtkAtomic() : Atomic(0)
(gdb) finish
Run till exit from #0 vtkAtomic<int>::vtkAtomic (this=0xd8de08) at /home/zlf/mySoftware/VTK-7.1.1_build/Common/Core/vtkAtomic.h:361
vtkObjectBase::vtkObjectBase (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObjectBase.cxx:76
76 this->ReferenceCount = 1;
(gdb) finish
Run till exit from #0 vtkObjectBase::vtkObjectBase (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObjectBase.cxx:76
0x00007fffd60e4263 in vtkObject::vtkObject (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObject.cxx:139
139 vtkObject::vtkObject()
(gdb) finish
Run till exit from #0 0x00007fffd60e4263 in vtkObject::vtkObject (this=0xd8de00)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/Core/vtkObject.cxx:139
0x00007fffee1d2f05 in vtkImageViewer2::vtkImageViewer2 (this=0xd8de00)
at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:34
34 vtkImageViewer2::vtkImageViewer2()
(gdb) s
36 this->RenderWindow = NULL;
(gdb) n
37 this->Renderer = NULL;
(gdb) n
38 this->ImageActor = vtkImageActor::New();
(gdb) n
39 this->WindowLevel = vtkImageMapToWindowLevelColors::New();
(gdb) n
40 this->Interactor = NULL;
(gdb) n
41 this->InteractorStyle = NULL;
(gdb) n
43 this->Slice = 0;
(gdb) n
44 this->FirstRender = 1;
(gdb) n
45 this->SliceOrientation = vtkImageViewer2::SLICE_ORIENTATION_XY;
(gdb) n
49 vtkRenderWindow *renwin = vtkRenderWindow::New();
(gdb) n
50 this->SetRenderWindow(renwin);
(gdb) n
51 renwin->Delete();
(gdb) n
53 vtkRenderer *ren = vtkRenderer::New();
(gdb) n
54 this->SetRenderer(ren);
(gdb) n
55 ren->Delete();
(gdb) n
57 this->InstallPipeline();
(gdb) n
58 }
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:63
63 viewer1->SetInputData(imageflip->GetOutput());
(gdb) s
vtkSmartPointer<vtkImageFlip>::operator-> (this=0x7fffffffde60)
at /home/zlf/mySoftware/VTK-7.1.1_Install/include/vtk-7.1/vtkSmartPointer.h:112
112 return static_cast<T*>(this->Object);
(gdb) s
113 }
(gdb) s
vtkImageAlgorithm::GetOutput (this=0xe20e00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkImageAlgorithm.cxx:363
363 return this->GetOutput(0);
(gdb) s
vtkImageAlgorithm::GetOutput (this=0xe20e00, port=0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkImageAlgorithm.cxx:369
369 return vtkImageData::SafeDownCast(this->GetOutputDataObject(port));
(gdb) s
vtkAlgorithm::GetOutputDataObject (this=0xe20e00, port=0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:970
970 return this->GetExecutive()->GetOutputData(port);
(gdb) s
vtkAlgorithm::GetExecutive (this=0xe20e00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:656
656 if(!this->HasExecutive())
(gdb) n
662 return this->Executive;
(gdb) n
663 }
(gdb) n
vtkAlgorithm::GetOutputDataObject (this=0xe20e00, port=0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:971
971 }
(gdb) n
vtkImageAlgorithm::GetOutput (this=0xe20e00, port=0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkImageAlgorithm.cxx:370
370 }
(gdb) n
vtkImageAlgorithm::GetOutput (this=0xe20e00) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkImageAlgorithm.cxx:364
364 }
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:64
64 viewer1->SetRenderWindow(ui->widget->GetRenderWindow());
(gdb) s
QVTKWidget::GetRenderWindow (this=0xc54510) at /home/zlf/mySoftware/VTK-7.1.1_src/GUISupport/Qt/QVTKWidget.cxx:164
164 if (!this->mRenWin)
(gdb) s
167 vtkRenderWindow* win = vtkRenderWindow::New();
(gdb) s
vtkRenderWindow::New () at /home/zlf/mySoftware/VTK-7.1.1_src/Rendering/Core/vtkRenderWindow.cxx:40
40 vtkAbstractObjectFactoryNewMacro(vtkRenderWindow)
(gdb) n
QVTKWidget::GetRenderWindow (this=0xc54510) at /home/zlf/mySoftware/VTK-7.1.1_src/GUISupport/Qt/QVTKWidget.cxx:168
168 this->SetRenderWindow(win);
(gdb) n
169 win->Delete();
Missing separate debuginfos, use: debuginfo-install libpciaccess-0.13.4-3.el7_3.x86_64 mesa-dri-drivers-17.0.1-6.20170307.el7.x86_64
(gdb) n
172 return this->mRenWin;
(gdb) n
173 }
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:65
65 viewer1->Render();
(gdb) s
vtkImageViewer2::Render (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:645
645 if (this->FirstRender)
(gdb) n
649 vtkAlgorithm *input = this->GetInputAlgorithm();
(gdb) s
vtkImageViewer2::GetInputAlgorithm (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:735
735 return this->WindowLevel->GetInputAlgorithm();
(gdb) s
vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.h:487
487 return this->GetInputAlgorithm(0, 0);
(gdb) s
vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0, port=0, index=0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1372
1372 return this->GetInputAlgorithm(port, index, dummy);
(gdb) s
vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0, port=0, index=0, algPort=@0x7fffffffddac: 0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1380
1380 vtkAlgorithmOutput* aoutput = this->GetInputConnection(port, index);
(gdb) s
vtkAlgorithm::GetInputConnection (this=0xe1cba0, port=0, index=0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1416
1416 if(index < 0 || index >= this->GetNumberOfInputConnections(port))
(gdb) finish
Run till exit from #0 vtkAlgorithm::GetInputConnection (this=0xe1cba0, port=0, index=0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1416
0x00007fffd7a27702 in vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0, port=0, index=0, algPort=@0x7fffffffddac: 0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1380
1380 vtkAlgorithmOutput* aoutput = this->GetInputConnection(port, index);
Value returned is $1 = (vtkAlgorithmOutput *) 0xc7c9e0
(gdb) n
1381 if (!aoutput)
(gdb) n
1385 algPort = aoutput->GetIndex();
(gdb) n
1386 return aoutput->GetProducer();
(gdb) n
1387 }
(gdb) n
vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0, port=0, index=0)
at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.cxx:1373
1373 }
(gdb) n
vtkAlgorithm::GetInputAlgorithm (this=0xe1cba0) at /home/zlf/mySoftware/VTK-7.1.1_src/Common/ExecutionModel/vtkAlgorithm.h:488
488 }
(gdb) n
vtkImageViewer2::GetInputAlgorithm (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:736
736 }
(gdb) n
vtkImageViewer2::Render (this=0xd8de00) at /home/zlf/mySoftware/VTK-7.1.1_src/Interaction/Image/vtkImageViewer2.cxx:650
650 if (input)
(gdb) n
652 input->UpdateInformation();
(gdb) n
654 vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT());
(gdb) n
655 int xs = 0, ys = 0;
(gdb) n
657 switch (this->SliceOrientation)
(gdb) n
661 xs = w_ext[1] - w_ext[0] + 1;
(gdb) n
662 ys = w_ext[3] - w_ext[2] + 1;
(gdb) n
663 break;
(gdb) n
677 if (this->RenderWindow->GetSize()[0] == 0)
(gdb) n
683 if (this->Renderer)
(gdb) n
685 this->Renderer->ResetCamera();
(gdb) n
687 xs < 150 ? 75 : (xs - 1 ) / 2.0);
(gdb) n
689 this->FirstRender = 0;
(gdb) n
692 if (this->GetInput())
(gdb) n
694 this->RenderWindow->Render();
(gdb) n
696 }
(gdb) n
ITK_VTK_QT_SLOT::ITK_VTK_QT_SLOT (this=0x7fffffffdf10, b=1) at /home/zlf/Documents/ITK_VTK_QT_SLOT/itk_vtk_qt_slot.cpp:67
67 vtkImageViewer2 *viewer2 = vtkImageViewer2::New();
(gdb) p viewer1
$2 = (vtkImageViewer2 *) 0xd8de00
(gdb) p *(vtkImageViewer2 *) 0xd8de00
$3 = {<vtkObject> = {<vtkObjectBase> = {_vptr.vtkObjectBase = 0x7fffee3e1210 <vtable for vtkImageViewer2+16>,
ReferenceCount = {<vtk::atomic::detail::IntegralType<int>> = {c = {<No data fields>}}, Atomic = 1}, WeakPointers = 0x0},
Debug = false, MTime = {ModifiedTime = 683}, SubjectHelper = 0x0}, WindowLevel = 0xe1cba0, RenderWindow = 0xec2fe0, Renderer =
0xe45bb0, ImageActor = 0xcc5cf0, Interactor = 0x0, InteractorStyle = 0x0, SliceOrientation = 2, FirstRender = 0, Slice = 0}
(gdb) set print pretty on
(gdb) p *(vtkImageViewer2 *) 0xd8de00
$4 = {
<vtkObject> = {
<vtkObjectBase> = {
_vptr.vtkObjectBase = 0x7fffee3e1210 <vtable for vtkImageViewer2+16>,
ReferenceCount = {
<vtk::atomic::detail::IntegralType<int>> = {
c = {<No data fields>}
},
members of vtkAtomic<int>:
Atomic = 1
},
WeakPointers = 0x0
},
members of vtkObject:
Debug = false,
MTime = {
ModifiedTime = 683
},
SubjectHelper = 0x0
},
members of vtkImageViewer2:
WindowLevel = 0xe1cba0,
RenderWindow = 0xec2fe0,
Renderer = 0xe45bb0,
ImageActor = 0xcc5cf0,
Interactor = 0x0,
InteractorStyle = 0x0,
SliceOrientation = 2,
FirstRender = 0,
Slice = 0
}
(gdb) p WindowLevel
No symbol "WindowLevel" in current context.
(gdb) p *WindowLevel = 0xe1cba0
No symbol "WindowLevel" in current context.
(gdb) p *0xe1cba0
$5 = -611825008
(gdb) q
A debugging session is active.
Inferior 1 [process 25614] will be killed.
Quit anyway? (y or n) y
[zlf@localhost build]$